mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-30 03:00:51 +01:00
Merge branch 'main' into @update/widgets
This commit is contained in:
commit
dafd567b9a
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@nitrots/nitro-renderer",
|
"name": "@nitrots/nitro-renderer",
|
||||||
"description": "Javascript library for rendering Nitro in the browser using PixiJS",
|
"description": "Javascript library for rendering Nitro in the browser using PixiJS",
|
||||||
"version": "1.2.3",
|
"version": "1.2.4",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
export class NitroVersion
|
export class NitroVersion
|
||||||
{
|
{
|
||||||
public static RENDERER_VERSION: string = '1.2.3';
|
public static RENDERER_VERSION: string = '1.2.4';
|
||||||
public static UI_VERSION: string = '';
|
public static UI_VERSION: string = '';
|
||||||
}
|
}
|
||||||
|
@ -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