Merge branch 'main' into @update/widgets

This commit is contained in:
Bill 2022-04-23 23:44:32 -04:00
commit dafd567b9a
6 changed files with 35 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "@nitrots/nitro-renderer",
"description": "Javascript library for rendering Nitro in the browser using PixiJS",
"version": "1.2.3",
"version": "1.2.4",
"publishConfig": {
"access": "public"
},

View File

@ -1,5 +1,5 @@
export class NitroVersion
{
public static RENDERER_VERSION: string = '1.2.3';
public static RENDERER_VERSION: string = '1.2.4';
public static UI_VERSION: string = '';
}

View File

@ -184,6 +184,7 @@ import { PetFigureUpdateEvent } from './messages/incoming/room/pet/PetFigureUpda
import { PetInfoEvent } from './messages/incoming/room/pet/PetInfoEvent';
import { PetStatusUpdateEvent } from './messages/incoming/room/pet/PetStatusUpdateEvent';
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 { RemainingMuteEvent } from './messages/incoming/room/unit/chat/RemainingMuteEvent';
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.FURNITURE_GROUP_CONTEXT_MENU_INFO, GroupFurniContextMenuInfoMessageEvent);
this._events.set(IncomingHeader.FURNITURE_POSTIT_STICKY_POLE_OPEN, FurniturePostItStickyPoleOpenEvent);
this._events.set(IncomingHeader.ROOM_SPECTATOR, YouAreSpectatorMessageEvent);
// ROOM SETTINGS
this._events.set(IncomingHeader.ROOM_RIGHTS_LIST, FlatControllersEvent);

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -1 +1,2 @@
export * from './YouArePlayingGameParser';
export * from './YouAreSpectatorMessageParser';