mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-23 08:00:51 +01:00
Merge branch 'composer-setclothing' of https://github.com/oobjectt/nitro-renderer into oobjectt-composer-setclothing
This commit is contained in:
commit
ebf97e0356
File diff suppressed because one or more lines are too long
@ -442,6 +442,7 @@ export class OutgoingHeader
|
|||||||
public static SCR_GET_KICKBACK_INFO = 869;
|
public static SCR_GET_KICKBACK_INFO = 869;
|
||||||
public static COMPOST_PLANT = 3835;
|
public static COMPOST_PLANT = 3835;
|
||||||
public static HARVEST_PET = 1521;
|
public static HARVEST_PET = 1521;
|
||||||
|
public static SET_CLOTHING_CHANGE_DATA = 924;
|
||||||
public static GROUP_UNFAVORITE = 1820;
|
public static GROUP_UNFAVORITE = 1820;
|
||||||
public static NEW_USER_EXPERIENCE_GET_GIFTS = 1822;
|
public static NEW_USER_EXPERIENCE_GET_GIFTS = 1822;
|
||||||
public static HANDSHAKE_INIT_DIFFIE = 3110;
|
public static HANDSHAKE_INIT_DIFFIE = 3110;
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../../api';
|
||||||
|
|
||||||
|
export class SetClothingChangeDataMessageComposer implements IMessageComposer<ConstructorParameters<typeof SetClothingChangeDataMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof SetClothingChangeDataMessageComposer>;
|
||||||
|
|
||||||
|
constructor(objectId: number, gender: string, look: string = '')
|
||||||
|
{
|
||||||
|
this._data = [objectId, gender, look];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -9,5 +9,6 @@ export * from './PetMoveComposer';
|
|||||||
export * from './PetPlaceComposer';
|
export * from './PetPlaceComposer';
|
||||||
export * from './PetRemoveComposer';
|
export * from './PetRemoveComposer';
|
||||||
export * from './RemoveWallItemComposer';
|
export * from './RemoveWallItemComposer';
|
||||||
|
export * from './SetClothingChangeDataMessageComposer';
|
||||||
export * from './SetItemDataMessageComposer';
|
export * from './SetItemDataMessageComposer';
|
||||||
export * from './SetObjectDataMessageComposer';
|
export * from './SetObjectDataMessageComposer';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { IConnection, IRoomSession, RoomControllerLevel, RoomTradingLevelEnum } from '../../api';
|
import { IConnection, IRoomSession, RoomControllerLevel, RoomTradingLevelEnum } from '../../api';
|
||||||
import { Disposable } from '../../core';
|
import { Disposable } from '../../core';
|
||||||
import { RoomSessionEvent } from '../../events';
|
import { RoomSessionEvent } from '../../events';
|
||||||
import { BotRemoveComposer, CompostPlantMessageComposer, FurnitureMultiStateComposer, GetPetCommandsComposer, HarvestPetMessageComposer, MoodlightSettingsComposer, MoodlightSettingsSaveComposer, MoodlightTogggleStateComposer, OpenPetPackageMessageComposer, OpenPresentComposer, PetMountComposer, PetRemoveComposer, PollAnswerComposer, PollRejectComposer, PollStartComposer, RemovePetSaddleComposer, RoomAmbassadorAlertComposer, RoomBanUserComposer, RoomDoorbellAccessComposer, RoomEnterComposer, RoomGiveRightsComposer, RoomKickUserComposer, RoomModerationSettings, RoomMuteUserComposer, RoomTakeRightsComposer, RoomUnitActionComposer, RoomUnitChatComposer, RoomUnitChatShoutComposer, RoomUnitChatWhisperComposer, RoomUnitDanceComposer, RoomUnitPostureComposer, RoomUnitSignComposer, RoomUnitTypingStartComposer, RoomUnitTypingStopComposer, TogglePetBreedingComposer, TogglePetRidingComposer, UsePetProductComposer, UserMottoComposer } from '../communication';
|
import { BotRemoveComposer, CompostPlantMessageComposer, FurnitureMultiStateComposer, GetPetCommandsComposer, HarvestPetMessageComposer, MoodlightSettingsComposer, MoodlightSettingsSaveComposer, MoodlightTogggleStateComposer, OpenPetPackageMessageComposer, OpenPresentComposer, PetMountComposer, PetRemoveComposer, PollAnswerComposer, PollRejectComposer, PollStartComposer, RemovePetSaddleComposer, RoomAmbassadorAlertComposer, RoomBanUserComposer, RoomDoorbellAccessComposer, RoomEnterComposer, RoomGiveRightsComposer, RoomKickUserComposer, RoomModerationSettings, RoomMuteUserComposer, RoomTakeRightsComposer, RoomUnitActionComposer, RoomUnitChatComposer, RoomUnitChatShoutComposer, RoomUnitChatWhisperComposer, RoomUnitDanceComposer, RoomUnitPostureComposer, RoomUnitSignComposer, RoomUnitTypingStartComposer, RoomUnitTypingStopComposer, SetClothingChangeDataMessageComposer, TogglePetBreedingComposer, TogglePetRidingComposer, UsePetProductComposer, UserMottoComposer } from '../communication';
|
||||||
import { UserDataManager } from './UserDataManager';
|
import { UserDataManager } from './UserDataManager';
|
||||||
|
|
||||||
export class RoomSession extends Disposable implements IRoomSession
|
export class RoomSession extends Disposable implements IRoomSession
|
||||||
@ -306,6 +306,11 @@ export class RoomSession extends Disposable implements IRoomSession
|
|||||||
this._connection.send(new GetPetCommandsComposer(id));
|
this._connection.send(new GetPetCommandsComposer(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public sendUpdateClothingChangeFurniture(objectId: number, gender: string, look: string):void
|
||||||
|
{
|
||||||
|
this._connection.send(new SetClothingChangeDataMessageComposer(objectId, gender, look));
|
||||||
|
}
|
||||||
|
|
||||||
public get connection(): IConnection
|
public get connection(): IConnection
|
||||||
{
|
{
|
||||||
return this._connection;
|
return this._connection;
|
||||||
|
Loading…
Reference in New Issue
Block a user