#29 - ChangeQueueMessageComposer added

This commit is contained in:
oobjectt 2022-12-26 19:22:29 +01:00
parent e70d9cc804
commit e29afd48d6
5 changed files with 33 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -396,6 +396,7 @@ export class OutgoingHeader
public static GET_YOUTUBE_DISPLAY_STATUS = 336; public static GET_YOUTUBE_DISPLAY_STATUS = 336;
public static SET_YOUTUBE_DISPLAY_PLAYLIST = 2069; public static SET_YOUTUBE_DISPLAY_PLAYLIST = 2069;
public static GO_TO_FLAT = 685; 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_MESSAGE = 1412;
public static CALL_FOR_HELP_FROM_FORUM_THREAD = 534; public static CALL_FOR_HELP_FROM_FORUM_THREAD = 534;
public static CALL_FOR_HELP_FROM_IM = 2950; 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'; export * from './GoToFlatMessageComposer';

View File

@ -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, 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'; import { UserDataManager } from './UserDataManager';
export class RoomSession extends Disposable implements IRoomSession export class RoomSession extends Disposable implements IRoomSession
@ -301,6 +301,13 @@ export class RoomSession extends Disposable implements IRoomSession
this._connection.send(new GetPetCommandsComposer(id)); 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 public get connection(): IConnection
{ {
return this._connection; return this._connection;