mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-31 11:12:35 +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 { OpenPresentComposer } from './messages/outgoing/room/furniture/presents/OpenPresentComposer';
|
||||||
import { ApplyTonerComposer } from './messages/outgoing/room/furniture/toner/ApplyTonerComposer';
|
import { ApplyTonerComposer } from './messages/outgoing/room/furniture/toner/ApplyTonerComposer';
|
||||||
import { FurnitureWallUpdateComposer } from './messages/outgoing/room/furniture/wall/FurnitureWallUpdateComposer';
|
import { FurnitureWallUpdateComposer } from './messages/outgoing/room/furniture/wall/FurnitureWallUpdateComposer';
|
||||||
import { RoomBlockedTilesComposer } from './messages/outgoing/room/mapping/RoomBlockedTilesComposer';
|
import { GetOccupiedTilesMessageComposer } from './messages/outgoing/room/layout/GetOccupiedTilesMessageComposer';
|
||||||
import { RoomDoorSettingsComposer } from './messages/outgoing/room/mapping/RoomDoorSettingsComposer';
|
import { GetRoomEntryDataMessageComposer } from './messages/outgoing/room/layout/GetRoomEntryDataMessageComposer';
|
||||||
import { RoomModelComposer } from './messages/outgoing/room/mapping/RoomModelComposer';
|
import { GetRoomEntryTileMessageComposer } from './messages/outgoing/room/layout/GetRoomEntryTileMessageComposer';
|
||||||
import { RoomModelSaveComposer } from './messages/outgoing/room/mapping/RoomModelSaveComposer';
|
import { UpdateFloorPropertiesMessageComposer } from './messages/outgoing/room/layout/UpdateFloorPropertiesMessageComposer';
|
||||||
import { RedeemItemClothingComposer } from './messages/outgoing/room/RedeemItemClothingComposer';
|
import { RedeemItemClothingComposer } from './messages/outgoing/room/RedeemItemClothingComposer';
|
||||||
import { RoomCreateComposer } from './messages/outgoing/room/RoomCreateComposer';
|
import { RoomCreateComposer } from './messages/outgoing/room/RoomCreateComposer';
|
||||||
import { RoomUnitChatComposer } from './messages/outgoing/room/unit/chat/RoomUnitChatComposer';
|
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_EXCHANGE_REDEEM, FurnitureExchangeComposer);
|
||||||
this._composers.set(OutgoingHeader.ITEM_CLOTHING_REDEEM, RedeemItemClothingComposer);
|
this._composers.set(OutgoingHeader.ITEM_CLOTHING_REDEEM, RedeemItemClothingComposer);
|
||||||
|
|
||||||
// MAPPING
|
// LAYOUT
|
||||||
this._composers.set(OutgoingHeader.ROOM_MODEL, RoomModelComposer);
|
this._composers.set(OutgoingHeader.ROOM_MODEL, GetRoomEntryDataMessageComposer);
|
||||||
this._composers.set(OutgoingHeader.ROOM_MODEL_BLOCKED_TILES, RoomBlockedTilesComposer);
|
this._composers.set(OutgoingHeader.GET_OCCUPIED_TILES, GetOccupiedTilesMessageComposer);
|
||||||
this._composers.set(OutgoingHeader.ROOM_MODEL_DOOR, RoomDoorSettingsComposer);
|
this._composers.set(OutgoingHeader.GET_ROOM_ENTRY_TILE, GetRoomEntryTileMessageComposer);
|
||||||
this._composers.set(OutgoingHeader.ROOM_MODEL_SAVE, RoomModelSaveComposer);
|
this._composers.set(OutgoingHeader.ROOM_MODEL_SAVE, UpdateFloorPropertiesMessageComposer);
|
||||||
|
|
||||||
// UNIT
|
// UNIT
|
||||||
this._composers.set(OutgoingHeader.UNIT_ACTION, RoomUnitActionComposer);
|
this._composers.set(OutgoingHeader.UNIT_ACTION, RoomUnitActionComposer);
|
||||||
|
@ -133,8 +133,8 @@ export class OutgoingHeader
|
|||||||
public static ROOM_KICK = 1320;
|
public static ROOM_KICK = 1320;
|
||||||
public static ROOM_LIKE = 3582;
|
public static ROOM_LIKE = 3582;
|
||||||
public static ROOM_MODEL = 2300;
|
public static ROOM_MODEL = 2300;
|
||||||
public static ROOM_MODEL_BLOCKED_TILES = 1687;
|
public static GET_OCCUPIED_TILES = 1687;
|
||||||
public static ROOM_MODEL_DOOR = 3559;
|
public static GET_ROOM_ENTRY_TILE = 3559;
|
||||||
public static ROOM_MODEL_SAVE = 875;
|
public static ROOM_MODEL_SAVE = 875;
|
||||||
public static ROOM_MUTE = 3637;
|
public static ROOM_MUTE = 3637;
|
||||||
public static ROOM_MUTE_USER = 3485;
|
public static ROOM_MUTE_USER = 3485;
|
||||||
|
@ -4,7 +4,7 @@ export * from './bots';
|
|||||||
export * from './data';
|
export * from './data';
|
||||||
export * from './engine';
|
export * from './engine';
|
||||||
export * from './furniture';
|
export * from './furniture';
|
||||||
export * from './mapping';
|
export * from './layout';
|
||||||
export * from './RedeemItemClothingComposer';
|
export * from './RedeemItemClothingComposer';
|
||||||
export * from './RoomCreateComposer';
|
export * from './RoomCreateComposer';
|
||||||
export * from './session';
|
export * from './session';
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
|
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()
|
constructor()
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
|
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()
|
constructor()
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
|
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()
|
constructor()
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
|
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)
|
constructor(model: string, doorX: number, doorY: number, doorDirection: number, thicknessWall: number, thicknessFloor: number, wallHeight: number)
|
||||||
{
|
{
|
@ -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 { UserInfoEvent } from '../communication/messages/incoming/user/data/UserInfoEvent';
|
||||||
import { IgnoreResultEvent } from '../communication/messages/incoming/user/IgnoreResultEvent';
|
import { IgnoreResultEvent } from '../communication/messages/incoming/user/IgnoreResultEvent';
|
||||||
import { FurnitureAliasesComposer } from '../communication/messages/outgoing/room/furniture/FurnitureAliasesComposer';
|
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 { FurnitureFloorDataParser } from '../communication/messages/parser/room/furniture/floor/FurnitureFloorDataParser';
|
||||||
import { FurnitureWallDataParser } from '../communication/messages/parser/room/furniture/wall/FurnitureWallDataParser';
|
import { FurnitureWallDataParser } from '../communication/messages/parser/room/furniture/wall/FurnitureWallDataParser';
|
||||||
import { RoomDoorParser } from '../communication/messages/parser/room/mapping/RoomDoorParser';
|
import { RoomDoorParser } from '../communication/messages/parser/room/mapping/RoomDoorParser';
|
||||||
@ -199,7 +199,7 @@ export class RoomMessageHandler extends Disposable
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
event.connection.send(new RoomModelComposer());
|
event.connection.send(new GetRoomEntryDataMessageComposer());
|
||||||
}
|
}
|
||||||
|
|
||||||
private onRoomPaintEvent(event: RoomPaintEvent): void
|
private onRoomPaintEvent(event: RoomPaintEvent): void
|
||||||
@ -482,7 +482,7 @@ export class RoomMessageHandler extends Disposable
|
|||||||
|
|
||||||
const alises = event.getParser().aliases;
|
const alises = event.getParser().aliases;
|
||||||
|
|
||||||
this._connection.send(new RoomModelComposer());
|
this._connection.send(new GetRoomEntryDataMessageComposer());
|
||||||
}
|
}
|
||||||
|
|
||||||
private onFurnitureFloorAddEvent(event: FurnitureFloorAddEvent): void
|
private onFurnitureFloorAddEvent(event: FurnitureFloorAddEvent): void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user