mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-19 06:46:28 +01:00
Add YouAreSpectatorMessageEvent
This commit is contained in:
parent
47f1b47416
commit
041177632f
@ -184,6 +184,7 @@ import { PetFigureUpdateEvent } from './messages/incoming/room/pet/PetFigureUpda
|
|||||||
import { PetInfoEvent } from './messages/incoming/room/pet/PetInfoEvent';
|
import { PetInfoEvent } from './messages/incoming/room/pet/PetInfoEvent';
|
||||||
import { PetStatusUpdateEvent } from './messages/incoming/room/pet/PetStatusUpdateEvent';
|
import { PetStatusUpdateEvent } from './messages/incoming/room/pet/PetStatusUpdateEvent';
|
||||||
import { YouArePlayingGameEvent } from './messages/incoming/room/session/YouArePlayingGameEvent';
|
import { YouArePlayingGameEvent } from './messages/incoming/room/session/YouArePlayingGameEvent';
|
||||||
|
import { YouAreSpectatorMessageEvent } from './messages/incoming/room/session/YouAreSpectatorMessageEvent';
|
||||||
import { FloodControlEvent } from './messages/incoming/room/unit/chat/FloodControlEvent';
|
import { FloodControlEvent } from './messages/incoming/room/unit/chat/FloodControlEvent';
|
||||||
import { RemainingMuteEvent } from './messages/incoming/room/unit/chat/RemainingMuteEvent';
|
import { RemainingMuteEvent } from './messages/incoming/room/unit/chat/RemainingMuteEvent';
|
||||||
import { RoomUnitChatEvent } from './messages/incoming/room/unit/chat/RoomUnitChatEvent';
|
import { RoomUnitChatEvent } from './messages/incoming/room/unit/chat/RoomUnitChatEvent';
|
||||||
@ -820,6 +821,7 @@ export class NitroMessages implements IMessageConfiguration
|
|||||||
this._events.set(IncomingHeader.OBJECTS_DATA_UPDATE, ObjectsDataUpdateEvent);
|
this._events.set(IncomingHeader.OBJECTS_DATA_UPDATE, ObjectsDataUpdateEvent);
|
||||||
this._events.set(IncomingHeader.FURNITURE_GROUP_CONTEXT_MENU_INFO, GroupFurniContextMenuInfoMessageEvent);
|
this._events.set(IncomingHeader.FURNITURE_GROUP_CONTEXT_MENU_INFO, GroupFurniContextMenuInfoMessageEvent);
|
||||||
this._events.set(IncomingHeader.FURNITURE_POSTIT_STICKY_POLE_OPEN, FurniturePostItStickyPoleOpenEvent);
|
this._events.set(IncomingHeader.FURNITURE_POSTIT_STICKY_POLE_OPEN, FurniturePostItStickyPoleOpenEvent);
|
||||||
|
this._events.set(IncomingHeader.ROOM_SPECTATOR, YouAreSpectatorMessageEvent);
|
||||||
|
|
||||||
// ROOM SETTINGS
|
// ROOM SETTINGS
|
||||||
this._events.set(IncomingHeader.ROOM_RIGHTS_LIST, FlatControllersEvent);
|
this._events.set(IncomingHeader.ROOM_RIGHTS_LIST, FlatControllersEvent);
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { YouAreSpectatorMessageParser } from '../../../parser/room/session/YouAreSpectatorMessageParser';
|
||||||
|
|
||||||
|
export class YouAreSpectatorMessageEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, YouAreSpectatorMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): YouAreSpectatorMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as YouAreSpectatorMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
import { IMessageDataWrapper, IMessageParser } from '../../../../../../core';
|
||||||
|
|
||||||
|
export class YouAreSpectatorMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
export * from './YouArePlayingGameParser';
|
export * from './YouArePlayingGameParser';
|
||||||
|
export * from './YouAreSpectatorMessageParser';
|
||||||
|
Loading…
Reference in New Issue
Block a user