added jukebox outgoing packets

This commit is contained in:
dank074 2021-08-22 01:50:51 -05:00
parent bff0151301
commit a364af0985
13 changed files with 221 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import { IMessageConfiguration } from '../../core/communication/messages/IMessageConfiguration'; import { IMessageConfiguration } from '../../core/communication/messages/IMessageConfiguration';
import { AchievementNotificationMessageEvent, ApproveNameMessageComposer, BadgeReceivedEvent, BonusRareInfoMessageEvent, CatalogApproveNameResultEvent, ChangeUserNameResultMessageEvent, FurnitureGuildInfoComposer, GetBonusRareInfoMessageComposer, MysteryBoxKeysEvent, PetExperienceEvent, PetMountComposer, PetSupplementComposer, RemoveAllRightsMessageComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, RoomUnitGiveHandItemPetComposer, SellablePetPalettesEvent, TogglePetBreedingComposer, TogglePetRidingComposer, UnseenResetCategoryComposer, UnseenResetItemsComposer, UsePetProductComposer } from './messages'; import { AchievementNotificationMessageEvent, AddJukeboxDiskComposer, ApproveNameMessageComposer, BadgeReceivedEvent, BonusRareInfoMessageEvent, CatalogApproveNameResultEvent, ChangeUserNameResultMessageEvent, FurnitureGuildInfoComposer, GetBonusRareInfoMessageComposer, GetJukeboxPlayListMessageComposer, GetNowPlayingMessageComposer, GetOfficialSongIdMessageComposer, GetSongInfoMessageComposer, GetSoundMachinePlayListMessageComposer, GetUserSongDisksMessageComposer, MysteryBoxKeysEvent, PetExperienceEvent, PetMountComposer, PetSupplementComposer, RemoveAllRightsMessageComposer, RemoveJukeboxDiskComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, RoomUnitGiveHandItemPetComposer, SellablePetPalettesEvent, TogglePetBreedingComposer, TogglePetRidingComposer, UnseenResetCategoryComposer, UnseenResetItemsComposer, UsePetProductComposer } from './messages';
import { AvailabilityStatusMessageEvent } from './messages/incoming/availability/AvailabilityStatusMessageEvent'; import { AvailabilityStatusMessageEvent } from './messages/incoming/availability/AvailabilityStatusMessageEvent';
import { CameraPublishStatusMessageEvent } from './messages/incoming/camera/CameraPublishStatusMessageEvent'; import { CameraPublishStatusMessageEvent } from './messages/incoming/camera/CameraPublishStatusMessageEvent';
import { CameraPurchaseOKMessageEvent } from './messages/incoming/camera/CameraPurchaseOKMessageEvent'; import { CameraPurchaseOKMessageEvent } from './messages/incoming/camera/CameraPurchaseOKMessageEvent';
@ -436,6 +436,7 @@ import { RoomMuteComposer } from './messages/outgoing/roomevents/RoomMuteCompose
import { UpdateActionMessageComposer } from './messages/outgoing/roomevents/UpdateActionMessageComposer'; import { UpdateActionMessageComposer } from './messages/outgoing/roomevents/UpdateActionMessageComposer';
import { UpdateConditionMessageComposer } from './messages/outgoing/roomevents/UpdateConditionMessageComposer'; import { UpdateConditionMessageComposer } from './messages/outgoing/roomevents/UpdateConditionMessageComposer';
import { UpdateTriggerMessageComposer } from './messages/outgoing/roomevents/UpdateTriggerMessageComposer'; import { UpdateTriggerMessageComposer } from './messages/outgoing/roomevents/UpdateTriggerMessageComposer';
import { GetSoundSettingsComposer } from './messages/outgoing/sound/GetSoundSettingsComposer';
import { GetIgnoredUsersComposer } from './messages/outgoing/user/data/GetIgnoredUsersComposer'; import { GetIgnoredUsersComposer } from './messages/outgoing/user/data/GetIgnoredUsersComposer';
import { IgnoreUserComposer } from './messages/outgoing/user/data/IgnoreUserComposer'; import { IgnoreUserComposer } from './messages/outgoing/user/data/IgnoreUserComposer';
import { IgnoreUserIdComposer } from './messages/outgoing/user/data/IgnoreUserIdComposer'; import { IgnoreUserIdComposer } from './messages/outgoing/user/data/IgnoreUserIdComposer';
@ -1164,6 +1165,17 @@ export class NitroMessages implements IMessageConfiguration
this._composers.set(OutgoingHeader.PURCHASE_PHOTO, PurchasePhotoMessageComposer); this._composers.set(OutgoingHeader.PURCHASE_PHOTO, PurchasePhotoMessageComposer);
this._composers.set(OutgoingHeader.PUBLISH_PHOTO, PublishPhotoMessageComposer); this._composers.set(OutgoingHeader.PUBLISH_PHOTO, PublishPhotoMessageComposer);
this._composers.set(OutgoingHeader.PHOTO_COMPETITION, PhotoCompetitionMessageComposer); this._composers.set(OutgoingHeader.PHOTO_COMPETITION, PhotoCompetitionMessageComposer);
// SOUNDS
this._composers.set(OutgoingHeader.GET_SOUND_SETTINGS, GetSoundSettingsComposer);
this._composers.set(OutgoingHeader.ADD_JUKEBOX_DISK, AddJukeboxDiskComposer);
this._composers.set(OutgoingHeader.GET_JUKEBOX_PLAYLIST, GetJukeboxPlayListMessageComposer);
this._composers.set(OutgoingHeader.GET_NOW_PLAYING, GetNowPlayingMessageComposer);
this._composers.set(OutgoingHeader.GET_OFFICIAL_SONG_ID, GetOfficialSongIdMessageComposer);
this._composers.set(OutgoingHeader.GET_SONG_INFO, GetSongInfoMessageComposer);
this._composers.set(OutgoingHeader.GET_SOUND_MACHINE_PLAYLIST, GetSoundMachinePlayListMessageComposer);
this._composers.set(OutgoingHeader.GET_USER_SONG_DISKS, GetUserSongDisksMessageComposer);
this._composers.set(OutgoingHeader.REMOVE_JUKEBOX_DISK, RemoveJukeboxDiskComposer);
} }
public get events(): Map<number, Function> public get events(): Map<number, Function>

View File

@ -177,7 +177,7 @@ export class OutgoingHeader
public static USER_PETS = 3095; public static USER_PETS = 3095;
public static USER_PROFILE = 3265; public static USER_PROFILE = 3265;
public static USER_RESPECT = 2694; public static USER_RESPECT = 2694;
public static USER_SETTINGS = 2388; public static GET_SOUND_SETTINGS = 2388;
public static USER_SETTINGS_CAMERA = 1461; public static USER_SETTINGS_CAMERA = 1461;
public static USER_SETTINGS_CHAT_STYLE = 1030; public static USER_SETTINGS_CHAT_STYLE = 1030;
public static USER_SETTINGS_INVITES = 1086; public static USER_SETTINGS_INVITES = 1086;
@ -271,4 +271,12 @@ export class OutgoingHeader
public static RENDER_ROOM = 3226; public static RENDER_ROOM = 3226;
public static RENDER_ROOM_THUMBNAIL = 1982; public static RENDER_ROOM_THUMBNAIL = 1982;
public static REQUEST_CAMERA_CONFIGURATION = 796; public static REQUEST_CAMERA_CONFIGURATION = 796;
public static ADD_JUKEBOX_DISK = 753;
public static GET_JUKEBOX_PLAYLIST = 1435;
public static GET_NOW_PLAYING = 1325;
public static GET_OFFICIAL_SONG_ID = 3189;
public static GET_SONG_INFO = 3082;
public static GET_SOUND_MACHINE_PLAYLIST = 3498;
public static GET_USER_SONG_DISKS = 2304;
public static REMOVE_JUKEBOX_DISK = 3050;
} }

View File

@ -15,4 +15,5 @@ export * from './pet';
export * from './quest'; export * from './quest';
export * from './room'; export * from './room';
export * from './roomevents'; export * from './roomevents';
export * from './sound';
export * from './user'; export * from './user';

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,9 @@
export * from './AddJukeboxDiskComposer';
export * from './GetJukeboxPlayListMessageComposer';
export * from './GetNowPlayingMessageComposer';
export * from './GetOfficialSongIdMessageComposer';
export * from './GetSongInfoMessageComposer';
export * from './GetSoundMachinePlayListMessageComposer';
export * from './GetSoundSettingsComposer';
export * from './GetUserSongDisksMessageComposer';
export * from './RemoveJukeboxDiskComposer';