Merge branch 'composer-change-queue' of https://github.com/oobjectt/nitro-renderer into oobjectt-composer-change-queue

This commit is contained in:
dank074 2023-01-03 03:02:10 -06:00
commit f379591c15
5 changed files with 31 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -407,6 +407,7 @@ export class OutgoingHeader
public static GET_YOUTUBE_DISPLAY_STATUS = 336;
public static SET_YOUTUBE_DISPLAY_PLAYLIST = 2069;
public static GO_TO_FLAT = 685;
public static CHANGE_QUEUE = 3093;
public static CALL_FOR_HELP_FROM_FORUM_MESSAGE = 1412;
public static CALL_FOR_HELP_FROM_FORUM_THREAD = 534;
public static CALL_FOR_HELP_FROM_IM = 2950;

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../../api';
export class ChangeQueueMessageComposer implements IMessageComposer<ConstructorParameters<typeof ChangeQueueMessageComposer>>
{
private _data: ConstructorParameters<typeof ChangeQueueMessageComposer>;
constructor(targetQueue: number)
{
this._data = [targetQueue];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -1 +1,2 @@
export * from './ChangeQueueMessageComposer';
export * from './GoToFlatMessageComposer';

View File

@ -1,7 +1,7 @@
import { IConnection, IRoomSession, RoomControllerLevel, RoomTradingLevelEnum } from '../../api';
import { Disposable } from '../../core';
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, SetClothingChangeDataMessageComposer, TogglePetBreedingComposer, TogglePetRidingComposer, UsePetProductComposer, UserMottoComposer } from '../communication';
import { BotRemoveComposer, ChangeQueueMessageComposer, 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';
export class RoomSession extends Disposable implements IRoomSession
@ -311,6 +311,11 @@ export class RoomSession extends Disposable implements IRoomSession
this._connection.send(new SetClothingChangeDataMessageComposer(objectId, gender, look));
}
public changeQueue(targetQueue: number): void
{
this._connection.send(new ChangeQueueMessageComposer(targetQueue));
}
public get connection(): IConnection
{
return this._connection;