mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-29 18:50:51 +01:00
#29 - ChangeQueueMessageComposer added
This commit is contained in:
parent
e70d9cc804
commit
e29afd48d6
File diff suppressed because one or more lines are too long
@ -396,6 +396,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;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -1 +1,2 @@
|
||||
export * from './ChangeQueueMessageComposer';
|
||||
export * from './GoToFlatMessageComposer';
|
||||
|
@ -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, 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, ChangeQueueMessageComposer, CompostPlantMessageComposer, FurnitureMultiStateComposer, GetPetCommandsComposer, HarvestPetMessageComposer, MoodlightSettingsComposer, MoodlightSettingsSaveComposer, MoodlightTogggleStateComposer, 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 { UserDataManager } from './UserDataManager';
|
||||
|
||||
export class RoomSession extends Disposable implements IRoomSession
|
||||
@ -301,6 +301,13 @@ export class RoomSession extends Disposable implements IRoomSession
|
||||
this._connection.send(new GetPetCommandsComposer(id));
|
||||
}
|
||||
|
||||
public changeQueue(targetQueue: number): void
|
||||
{
|
||||
if(!this._connection) return;
|
||||
|
||||
this._connection.send(new ChangeQueueMessageComposer(targetQueue));
|
||||
}
|
||||
|
||||
public get connection(): IConnection
|
||||
{
|
||||
return this._connection;
|
||||
|
Loading…
Reference in New Issue
Block a user