mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
Rename packet
This commit is contained in:
parent
cda1946c29
commit
ae74c0354d
@ -151,6 +151,7 @@ import { RoomUsersWithRightsEvent } from './messages/incoming/room/data/RoomUser
|
||||
import { ObjectsDataUpdateEvent } from './messages/incoming/room/engine/ObjectsDataUpdateEvent';
|
||||
import { ObjectsRollingEvent } from './messages/incoming/room/engine/ObjectsRollingEvent';
|
||||
import { RoomCreatedEvent } from './messages/incoming/room/engine/RoomCreatedEvent';
|
||||
import { DiceValueMessageEvent } from './messages/incoming/room/furniture/DiceValueMessageEvent';
|
||||
import { FurnitureFloorAddEvent } from './messages/incoming/room/furniture/floor/FurnitureFloorAddEvent';
|
||||
import { FurnitureFloorEvent } from './messages/incoming/room/furniture/floor/FurnitureFloorEvent';
|
||||
import { FurnitureFloorRemoveEvent } from './messages/incoming/room/furniture/floor/FurnitureFloorRemoveEvent';
|
||||
@ -160,7 +161,6 @@ import { FurnitureDataEvent } from './messages/incoming/room/furniture/Furniture
|
||||
import { FurnitureItemDataEvent } from './messages/incoming/room/furniture/FurnitureItemDataEvent';
|
||||
import { FurniturePostItStickyPoleOpenEvent } from './messages/incoming/room/furniture/FurniturePostItStickyPoleOpenEvent';
|
||||
import { FurnitureStackHeightEvent } from './messages/incoming/room/furniture/FurnitureStackHeightEvent';
|
||||
import { FurnitureState2Event } from './messages/incoming/room/furniture/FurnitureState2Event';
|
||||
import { FurnitureStateEvent } from './messages/incoming/room/furniture/FurnitureStateEvent';
|
||||
import { GroupFurniContextMenuInfoMessageEvent } from './messages/incoming/room/furniture/GroupFurniContextMenuInfoMessageEvent';
|
||||
import { LoveLockFurniFinishedEvent } from './messages/incoming/room/furniture/LoveLockFurniFinishedEvent';
|
||||
@ -752,7 +752,7 @@ export class NitroMessages implements IMessageConfiguration
|
||||
this._events.set(IncomingHeader.ITEM_STACK_HELPER, FurnitureStackHeightEvent);
|
||||
this._events.set(IncomingHeader.FURNITURE_STATE, FurnitureStateEvent);
|
||||
this._events.set(IncomingHeader.ITEM_DIMMER_SETTINGS, RoomDimmerPresetsEvent);
|
||||
this._events.set(IncomingHeader.FURNITURE_STATE_2, FurnitureState2Event);
|
||||
this._events.set(IncomingHeader.FURNITURE_STATE_2, DiceValueMessageEvent);
|
||||
this._events.set(IncomingHeader.LOVELOCK_FURNI_FINISHED, LoveLockFurniFinishedEvent);
|
||||
this._events.set(IncomingHeader.LOVELOCK_FURNI_FRIEND_COMFIRMED, LoveLockFurniFriendConfirmedEvent);
|
||||
this._events.set(IncomingHeader.LOVELOCK_FURNI_START, LoveLockFurniStartEvent);
|
||||
|
@ -2,7 +2,7 @@ import { IMessageEvent } from '../../../../../../core/communication/messages/IMe
|
||||
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
|
||||
import { FurnitureState2Parser } from '../../../parser/room/furniture/FurnitureState2Parser';
|
||||
|
||||
export class FurnitureState2Event extends MessageEvent implements IMessageEvent
|
||||
export class DiceValueMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
@ -1,10 +1,10 @@
|
||||
export * from './DiceValueMessageEvent';
|
||||
export * from './floor';
|
||||
export * from './FurnitureAliasesEvent';
|
||||
export * from './FurnitureDataEvent';
|
||||
export * from './FurnitureItemDataEvent';
|
||||
export * from './FurniturePostItStickyPoleOpenEvent';
|
||||
export * from './FurnitureStackHeightEvent';
|
||||
export * from './FurnitureState2Event';
|
||||
export * from './FurnitureStateEvent';
|
||||
export * from './GroupFurniContextMenuInfoMessageEvent';
|
||||
export * from './LoveLockFurniFinishedEvent';
|
||||
|
@ -5,6 +5,7 @@ import { Vector3d } from '../../room/utils/Vector3d';
|
||||
import { PetType } from '../avatar/pets/PetType';
|
||||
import { ObjectsDataUpdateEvent, PetExperienceEvent } from '../communication';
|
||||
import { ObjectsRollingEvent } from '../communication/messages/incoming/room/engine/ObjectsRollingEvent';
|
||||
import { DiceValueMessageEvent } from '../communication/messages/incoming/room/furniture/DiceValueMessageEvent';
|
||||
import { FurnitureFloorAddEvent } from '../communication/messages/incoming/room/furniture/floor/FurnitureFloorAddEvent';
|
||||
import { FurnitureFloorEvent } from '../communication/messages/incoming/room/furniture/floor/FurnitureFloorEvent';
|
||||
import { FurnitureFloorRemoveEvent } from '../communication/messages/incoming/room/furniture/floor/FurnitureFloorRemoveEvent';
|
||||
@ -12,7 +13,6 @@ import { FurnitureFloorUpdateEvent } from '../communication/messages/incoming/ro
|
||||
import { FurnitureAliasesEvent } from '../communication/messages/incoming/room/furniture/FurnitureAliasesEvent';
|
||||
import { FurnitureDataEvent } from '../communication/messages/incoming/room/furniture/FurnitureDataEvent';
|
||||
import { FurnitureItemDataEvent } from '../communication/messages/incoming/room/furniture/FurnitureItemDataEvent';
|
||||
import { FurnitureState2Event } from '../communication/messages/incoming/room/furniture/FurnitureState2Event';
|
||||
import { FurnitureStateEvent } from '../communication/messages/incoming/room/furniture/FurnitureStateEvent';
|
||||
import { FurnitureWallAddEvent } from '../communication/messages/incoming/room/furniture/wall/FurnitureWallAddEvent';
|
||||
import { FurnitureWallEvent } from '../communication/messages/incoming/room/furniture/wall/FurnitureWallEvent';
|
||||
@ -144,7 +144,7 @@ export class RoomMessageHandler extends Disposable
|
||||
this._connection.addMessageEvent(new PetFigureUpdateEvent(this.onPetFigureUpdateEvent.bind(this)));
|
||||
this._connection.addMessageEvent(new PetExperienceEvent(this.onPetExperienceEvent.bind(this)));
|
||||
this._connection.addMessageEvent(new YouArePlayingGameEvent(this.onYouArePlayingGameEvent.bind(this)));
|
||||
this._connection.addMessageEvent(new FurnitureState2Event(this.onFurnitureState2Event.bind(this)));
|
||||
this._connection.addMessageEvent(new DiceValueMessageEvent(this.onDiceValueMessageEvent.bind(this)));
|
||||
this._connection.addMessageEvent(new IgnoreResultEvent(this.onIgnoreResultEvent.bind(this)));
|
||||
}
|
||||
|
||||
@ -645,9 +645,9 @@ export class RoomMessageHandler extends Disposable
|
||||
this._roomCreator.updateRoomObjectFloor(this._currentRoomId, parser.itemId, null, null, parser.state, new LegacyDataType());
|
||||
}
|
||||
|
||||
private onFurnitureState2Event(event: FurnitureState2Event): void
|
||||
private onDiceValueMessageEvent(event: DiceValueMessageEvent): void
|
||||
{
|
||||
if(!(event instanceof FurnitureState2Event) || !event.connection || !this._roomCreator) return;
|
||||
if(!(event instanceof DiceValueMessageEvent) || !event.connection || !this._roomCreator) return;
|
||||
|
||||
const parser = event.getParser();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user