mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +01:00
updated outgoing layout packets
This commit is contained in:
parent
28316de30f
commit
12f2a7613a
@ -409,10 +409,10 @@ import { FurnitureMannequinSaveNameComposer } from './messages/outgoing/room/fur
|
||||
import { OpenPresentComposer } from './messages/outgoing/room/furniture/presents/OpenPresentComposer';
|
||||
import { ApplyTonerComposer } from './messages/outgoing/room/furniture/toner/ApplyTonerComposer';
|
||||
import { FurnitureWallUpdateComposer } from './messages/outgoing/room/furniture/wall/FurnitureWallUpdateComposer';
|
||||
import { RoomBlockedTilesComposer } from './messages/outgoing/room/mapping/RoomBlockedTilesComposer';
|
||||
import { RoomDoorSettingsComposer } from './messages/outgoing/room/mapping/RoomDoorSettingsComposer';
|
||||
import { RoomModelComposer } from './messages/outgoing/room/mapping/RoomModelComposer';
|
||||
import { RoomModelSaveComposer } from './messages/outgoing/room/mapping/RoomModelSaveComposer';
|
||||
import { GetOccupiedTilesMessageComposer } from './messages/outgoing/room/layout/GetOccupiedTilesMessageComposer';
|
||||
import { GetRoomEntryDataMessageComposer } from './messages/outgoing/room/layout/GetRoomEntryDataMessageComposer';
|
||||
import { GetRoomEntryTileMessageComposer } from './messages/outgoing/room/layout/GetRoomEntryTileMessageComposer';
|
||||
import { UpdateFloorPropertiesMessageComposer } from './messages/outgoing/room/layout/UpdateFloorPropertiesMessageComposer';
|
||||
import { RedeemItemClothingComposer } from './messages/outgoing/room/RedeemItemClothingComposer';
|
||||
import { RoomCreateComposer } from './messages/outgoing/room/RoomCreateComposer';
|
||||
import { RoomUnitChatComposer } from './messages/outgoing/room/unit/chat/RoomUnitChatComposer';
|
||||
@ -1141,11 +1141,11 @@ export class NitroMessages implements IMessageConfiguration
|
||||
this._composers.set(OutgoingHeader.ITEM_EXCHANGE_REDEEM, FurnitureExchangeComposer);
|
||||
this._composers.set(OutgoingHeader.ITEM_CLOTHING_REDEEM, RedeemItemClothingComposer);
|
||||
|
||||
// MAPPING
|
||||
this._composers.set(OutgoingHeader.ROOM_MODEL, RoomModelComposer);
|
||||
this._composers.set(OutgoingHeader.ROOM_MODEL_BLOCKED_TILES, RoomBlockedTilesComposer);
|
||||
this._composers.set(OutgoingHeader.ROOM_MODEL_DOOR, RoomDoorSettingsComposer);
|
||||
this._composers.set(OutgoingHeader.ROOM_MODEL_SAVE, RoomModelSaveComposer);
|
||||
// LAYOUT
|
||||
this._composers.set(OutgoingHeader.ROOM_MODEL, GetRoomEntryDataMessageComposer);
|
||||
this._composers.set(OutgoingHeader.GET_OCCUPIED_TILES, GetOccupiedTilesMessageComposer);
|
||||
this._composers.set(OutgoingHeader.GET_ROOM_ENTRY_TILE, GetRoomEntryTileMessageComposer);
|
||||
this._composers.set(OutgoingHeader.ROOM_MODEL_SAVE, UpdateFloorPropertiesMessageComposer);
|
||||
|
||||
// UNIT
|
||||
this._composers.set(OutgoingHeader.UNIT_ACTION, RoomUnitActionComposer);
|
||||
|
@ -133,8 +133,8 @@ export class OutgoingHeader
|
||||
public static ROOM_KICK = 1320;
|
||||
public static ROOM_LIKE = 3582;
|
||||
public static ROOM_MODEL = 2300;
|
||||
public static ROOM_MODEL_BLOCKED_TILES = 1687;
|
||||
public static ROOM_MODEL_DOOR = 3559;
|
||||
public static GET_OCCUPIED_TILES = 1687;
|
||||
public static GET_ROOM_ENTRY_TILE = 3559;
|
||||
public static ROOM_MODEL_SAVE = 875;
|
||||
public static ROOM_MUTE = 3637;
|
||||
public static ROOM_MUTE_USER = 3485;
|
||||
|
@ -4,7 +4,7 @@ export * from './bots';
|
||||
export * from './data';
|
||||
export * from './engine';
|
||||
export * from './furniture';
|
||||
export * from './mapping';
|
||||
export * from './layout';
|
||||
export * from './RedeemItemClothingComposer';
|
||||
export * from './RoomCreateComposer';
|
||||
export * from './session';
|
||||
|
@ -1,8 +1,8 @@
|
||||
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class RoomBlockedTilesComposer implements IMessageComposer<ConstructorParameters<typeof RoomBlockedTilesComposer>>
|
||||
export class GetOccupiedTilesMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetOccupiedTilesMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof RoomBlockedTilesComposer>;
|
||||
private _data: ConstructorParameters<typeof GetOccupiedTilesMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
@ -18,4 +18,4 @@ export class RoomBlockedTilesComposer implements IMessageComposer<ConstructorPar
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class RoomDoorSettingsComposer implements IMessageComposer<ConstructorParameters<typeof RoomDoorSettingsComposer>>
|
||||
export class GetRoomEntryDataMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetRoomEntryDataMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof RoomDoorSettingsComposer>;
|
||||
private _data: ConstructorParameters<typeof GetRoomEntryDataMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
@ -18,4 +18,4 @@ export class RoomDoorSettingsComposer implements IMessageComposer<ConstructorPar
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class RoomModelComposer implements IMessageComposer<ConstructorParameters<typeof RoomModelComposer>>
|
||||
export class GetRoomEntryTileMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetRoomEntryTileMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof RoomModelComposer>;
|
||||
private _data: ConstructorParameters<typeof GetRoomEntryTileMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
@ -18,4 +18,4 @@ export class RoomModelComposer implements IMessageComposer<ConstructorParameters
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class RoomModelSaveComposer implements IMessageComposer<ConstructorParameters<typeof RoomModelSaveComposer>>
|
||||
export class UpdateFloorPropertiesMessageComposer implements IMessageComposer<ConstructorParameters<typeof UpdateFloorPropertiesMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof RoomModelSaveComposer>;
|
||||
private _data: ConstructorParameters<typeof UpdateFloorPropertiesMessageComposer>;
|
||||
|
||||
constructor(model: string, doorX: number, doorY: number, doorDirection: number, thicknessWall: number, thicknessFloor: number, wallHeight: number)
|
||||
{
|
||||
@ -18,4 +18,4 @@ export class RoomModelSaveComposer implements IMessageComposer<ConstructorParame
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
export * from './GetOccupiedTilesMessageComposer';
|
||||
export * from './GetRoomEntryDataMessageComposer';
|
||||
export * from './GetRoomEntryTileMessageComposer';
|
||||
export * from './UpdateFloorPropertiesMessageComposer';
|
@ -1,4 +0,0 @@
|
||||
export * from './RoomBlockedTilesComposer';
|
||||
export * from './RoomDoorSettingsComposer';
|
||||
export * from './RoomModelComposer';
|
||||
export * from './RoomModelSaveComposer';
|
@ -44,7 +44,7 @@ import { RoomUnitStatusEvent } from '../communication/messages/incoming/room/uni
|
||||
import { UserInfoEvent } from '../communication/messages/incoming/user/data/UserInfoEvent';
|
||||
import { IgnoreResultEvent } from '../communication/messages/incoming/user/IgnoreResultEvent';
|
||||
import { FurnitureAliasesComposer } from '../communication/messages/outgoing/room/furniture/FurnitureAliasesComposer';
|
||||
import { RoomModelComposer } from '../communication/messages/outgoing/room/mapping/RoomModelComposer';
|
||||
import { GetRoomEntryDataMessageComposer } from '../communication/messages/outgoing/room/layout/GetRoomEntryDataMessageComposer';
|
||||
import { FurnitureFloorDataParser } from '../communication/messages/parser/room/furniture/floor/FurnitureFloorDataParser';
|
||||
import { FurnitureWallDataParser } from '../communication/messages/parser/room/furniture/wall/FurnitureWallDataParser';
|
||||
import { RoomDoorParser } from '../communication/messages/parser/room/mapping/RoomDoorParser';
|
||||
@ -199,7 +199,7 @@ export class RoomMessageHandler extends Disposable
|
||||
return;
|
||||
}
|
||||
|
||||
event.connection.send(new RoomModelComposer());
|
||||
event.connection.send(new GetRoomEntryDataMessageComposer());
|
||||
}
|
||||
|
||||
private onRoomPaintEvent(event: RoomPaintEvent): void
|
||||
@ -482,7 +482,7 @@ export class RoomMessageHandler extends Disposable
|
||||
|
||||
const alises = event.getParser().aliases;
|
||||
|
||||
this._connection.send(new RoomModelComposer());
|
||||
this._connection.send(new GetRoomEntryDataMessageComposer());
|
||||
}
|
||||
|
||||
private onFurnitureFloorAddEvent(event: FurnitureFloorAddEvent): void
|
||||
|
Loading…
Reference in New Issue
Block a user