Send follow me request to all players

This commit is contained in:
PizZaKatZe 2021-12-12 00:24:39 +01:00
parent b30d0989c8
commit 1fca99c0d1
6 changed files with 59 additions and 0 deletions

View file

@ -8,6 +8,7 @@ import {
CharacterLayerMessage,
EmoteEventMessage,
EmotePromptMessage,
FollowMeRequestMessage,
GroupDeleteMessage,
ItemEventMessage,
JoinRoomMessage,
@ -269,6 +270,12 @@ export class SocketManager implements ZoneEventListener {
this.handleViewport(client, viewport.toObject());
}
handleFollowMeRequest(client: ExSocketInterface, requestMessage: FollowMeRequestMessage): void {
const pusherToBackMessage = new PusherToBackMessage();
pusherToBackMessage.setFollowmerequestmessage(requestMessage);
client.backConnection.write(pusherToBackMessage);
}
onEmote(emoteMessage: EmoteEventMessage, listener: ExSocketInterface): void {
const subMessage = new SubMessage();
subMessage.setEmoteeventmessage(emoteMessage);