mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +01:00
added advertisment and avatar packets
This commit is contained in:
parent
224b085079
commit
e66cdc585e
@ -1,5 +1,5 @@
|
||||
import { IMessageConfiguration } from '../../core/communication/messages/IMessageConfiguration';
|
||||
import { AchievementNotificationMessageEvent, ActivityPointNotificationMessageEvent, AddJukeboxDiskComposer, ApproveNameMessageComposer, AvailabilityTimeMessageEvent, BadgeReceivedEvent, BonusRareInfoMessageEvent, CatalogApproveNameResultEvent, ChangeUserNameResultMessageEvent, CheckUserNameResultMessageEvent, ClubGiftNotificationEvent, FigureUpdateEvent, FurnitureGuildInfoComposer, GetBonusRareInfoMessageComposer, GetJukeboxPlayListMessageComposer, GetNowPlayingMessageComposer, GetOfficialSongIdMessageComposer, GetSongInfoMessageComposer, GetSoundMachinePlayListMessageComposer, GetUserSongDisksMessageComposer, HotelClosedAndOpensEvent, HotelClosesAndWillOpenAtEvent, HotelWillCloseInMinutesEvent, InfoFeedEnableMessageEvent, InterstitialMessageEvent, JukeboxPlayListFullMessageEvent, JukeboxSongDisksMessageEvent, MaintenanceStatusMessageEvent, MysteryBoxKeysEvent, NowPlayingMessageEvent, OfficialSongIdMessageEvent, PetExperienceEvent, PetMountComposer, PetSupplementComposer, PlayListMessageEvent, PlayListSongAddedMessageEvent, RemoveAllRightsMessageComposer, RemoveJukeboxDiskComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, RoomAdErrorEvent, RoomUnitGiveHandItemPetComposer, SellablePetPalettesEvent, TogglePetBreedingComposer, TogglePetRidingComposer, TraxSongInfoMessageEvent, UnseenResetCategoryComposer, UnseenResetItemsComposer, UsePetProductComposer, UserSongDisksInventoryMessageEvent, WardrobeMessageEvent } from './messages';
|
||||
import { AchievementNotificationMessageEvent, ActivityPointNotificationMessageEvent, AddJukeboxDiskComposer, ApproveNameMessageComposer, AvailabilityTimeMessageEvent, BadgeReceivedEvent, BonusRareInfoMessageEvent, CatalogApproveNameResultEvent, ChangeUserNameMessageComposer, ChangeUserNameResultMessageEvent, CheckUserNameMessageComposer, CheckUserNameResultMessageEvent, ClubGiftNotificationEvent, FigureUpdateEvent, FurnitureGuildInfoComposer, GetBonusRareInfoMessageComposer, GetInterstitialMessageComposer, GetJukeboxPlayListMessageComposer, GetNowPlayingMessageComposer, GetOfficialSongIdMessageComposer, GetSongInfoMessageComposer, GetSoundMachinePlayListMessageComposer, GetUserSongDisksMessageComposer, HotelClosedAndOpensEvent, HotelClosesAndWillOpenAtEvent, HotelWillCloseInMinutesEvent, InfoFeedEnableMessageEvent, InterstitialMessageEvent, InterstitialShownMessageComposer, JukeboxPlayListFullMessageEvent, JukeboxSongDisksMessageEvent, MaintenanceStatusMessageEvent, MysteryBoxKeysEvent, NowPlayingMessageEvent, OfficialSongIdMessageEvent, PetExperienceEvent, PetMountComposer, PetSupplementComposer, PlayListMessageEvent, PlayListSongAddedMessageEvent, RemoveAllRightsMessageComposer, RemoveJukeboxDiskComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, RoomAdErrorEvent, RoomUnitGiveHandItemPetComposer, SellablePetPalettesEvent, TogglePetBreedingComposer, TogglePetRidingComposer, TraxSongInfoMessageEvent, UnseenResetCategoryComposer, UnseenResetItemsComposer, UsePetProductComposer, UserSongDisksInventoryMessageEvent, WardrobeMessageEvent } from './messages';
|
||||
import { AvailabilityStatusMessageEvent } from './messages/incoming/availability/AvailabilityStatusMessageEvent';
|
||||
import { CfhSanctionMessageEvent, CfhTopicsInitEvent, SanctionStatusEvent } from './messages/incoming/callforhelp';
|
||||
import { CameraPublishStatusMessageEvent } from './messages/incoming/camera/CameraPublishStatusMessageEvent';
|
||||
@ -228,6 +228,8 @@ import { UserSubscriptionEvent } from './messages/incoming/user/inventory/subscr
|
||||
import { RespectReceivedEvent } from './messages/incoming/user/RespectReceivedEvent';
|
||||
import { UserWardrobePageEvent } from './messages/incoming/user/wardrobe/UserWardrobePageEvent';
|
||||
import { RequestAchievementsMessageComposer } from './messages/outgoing/achievements/RequestAchievementsMessageComposer';
|
||||
import { GetWardrobeMessageComposer } from './messages/outgoing/avatar/GetWardrobeMessageComposer';
|
||||
import { SaveWardrobeOutfitMessageComposer } from './messages/outgoing/avatar/SaveWardrobeOutfitMessageComposer';
|
||||
import { PhotoCompetitionMessageComposer } from './messages/outgoing/camera/PhotoCompetitionMessageComposer';
|
||||
import { PublishPhotoMessageComposer } from './messages/outgoing/camera/PublishPhotoMessageComposer';
|
||||
import { PurchasePhotoMessageComposer } from './messages/outgoing/camera/PurchasePhotoMessageComposer';
|
||||
@ -453,8 +455,6 @@ import { UserSettingsOldChatComposer } from './messages/outgoing/user/settings/U
|
||||
import { UserSettingsRoomInvitesComposer } from './messages/outgoing/user/settings/UserSettingsRoomInvitesComposer';
|
||||
import { UserSettingsSoundComposer } from './messages/outgoing/user/settings/UserSettingsSoundComposer';
|
||||
import { UserRespectComposer } from './messages/outgoing/user/UserRespectComposer';
|
||||
import { UserWardrobePageComposer } from './messages/outgoing/user/wardrobe/UserWardrobePageComposer';
|
||||
import { UserWardrobeSaveComposer } from './messages/outgoing/user/wardrobe/UserWardrobeSaveComposer';
|
||||
import { MiniMailUnreadCountParser } from './messages/parser/friendlist/MiniMailUnreadCountParser';
|
||||
|
||||
export class NitroMessages implements IMessageConfiguration
|
||||
@ -848,6 +848,16 @@ export class NitroMessages implements IMessageConfiguration
|
||||
|
||||
private registerComposers(): void
|
||||
{
|
||||
// ADVERTISEMENT
|
||||
this._composers.set(OutgoingHeader.INTERSTITIAL_SHOWN, InterstitialShownMessageComposer);
|
||||
this._composers.set(OutgoingHeader.GET_INTERSTITIAL, GetInterstitialMessageComposer);
|
||||
|
||||
// AVATAR
|
||||
this._composers.set(OutgoingHeader.GET_WARDROBE, GetWardrobeMessageComposer);
|
||||
this._composers.set(OutgoingHeader.SAVE_WARDROBE_OUTFIT, SaveWardrobeOutfitMessageComposer);
|
||||
this._composers.set(OutgoingHeader.CHANGE_USERNAME, ChangeUserNameMessageComposer);
|
||||
this._composers.set(OutgoingHeader.CHECK_USERNAME, CheckUserNameMessageComposer);
|
||||
|
||||
// AUTHENTICATION
|
||||
this._composers.set(OutgoingHeader.AUTHENTICATION, AuthenticationMessageComposer);
|
||||
|
||||
@ -1146,10 +1156,6 @@ export class NitroMessages implements IMessageConfiguration
|
||||
this._composers.set(OutgoingHeader.MODTOOL_REQUEST_USER_ROOMS, ModtoolRequestUserRoomsComposer);
|
||||
this._composers.set(OutgoingHeader.MODTOOL_ROOM_ALERT, ModtoolRoomAlertComposer);
|
||||
|
||||
// WARDROBE
|
||||
this._composers.set(OutgoingHeader.USER_WARDROBE_PAGE, UserWardrobePageComposer);
|
||||
this._composers.set(OutgoingHeader.USER_WARDROBE_SAVE, UserWardrobeSaveComposer);
|
||||
|
||||
// SETTINGS
|
||||
this._composers.set(OutgoingHeader.USER_SETTINGS_CAMERA, UserSettingsCameraFollowComposer);
|
||||
this._composers.set(OutgoingHeader.USER_SETTINGS_OLD_CHAT, UserSettingsOldChatComposer);
|
||||
|
@ -172,8 +172,6 @@ export class OutgoingHeader
|
||||
public static USER_INFO = 357;
|
||||
public static USER_MOTTO = 2228;
|
||||
public static USER_IGNORED = 3878;
|
||||
public static USER_OUTFIT_SAVE = 800;
|
||||
public static USER_OUTFITS = 2742;
|
||||
public static USER_PETS = 3095;
|
||||
public static USER_PROFILE = 3265;
|
||||
public static USER_RESPECT = 2694;
|
||||
@ -184,8 +182,8 @@ export class OutgoingHeader
|
||||
public static USER_SETTINGS_OLD_CHAT = 1262;
|
||||
public static USER_SETTINGS_VOLUME = 1367;
|
||||
public static USER_SUBSCRIPTION = 3166;
|
||||
public static USER_WARDROBE_PAGE = 2742;
|
||||
public static USER_WARDROBE_SAVE = 800;
|
||||
public static GET_WARDROBE = 2742;
|
||||
public static SAVE_WARDROBE_OUTFIT = 800;
|
||||
public static USER_TAGS = 17;
|
||||
public static USER_VISIT = 2970;
|
||||
public static WIRED_ACTION_SAVE = 2281;
|
||||
@ -279,4 +277,8 @@ export class OutgoingHeader
|
||||
public static GET_SOUND_MACHINE_PLAYLIST = 3498;
|
||||
public static GET_USER_SONG_DISKS = 2304;
|
||||
public static REMOVE_JUKEBOX_DISK = 3050;
|
||||
public static INTERSTITIAL_SHOWN = 1109;
|
||||
public static GET_INTERSTITIAL = 2519;
|
||||
public static CHANGE_USERNAME = 2977;
|
||||
public static CHECK_USERNAME = 3950;
|
||||
}
|
||||
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core';
|
||||
|
||||
export class GetInterstitialMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetInterstitialMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GetInterstitialMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core';
|
||||
|
||||
export class InterstitialShownMessageComposer implements IMessageComposer<ConstructorParameters<typeof InterstitialShownMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof InterstitialShownMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
export * from './GetInterstitialMessageComposer';
|
||||
export * from './InterstitialShownMessageComposer';
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core';
|
||||
|
||||
export class ChangeUserNameMessageComposer implements IMessageComposer<ConstructorParameters<typeof ChangeUserNameMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof ChangeUserNameMessageComposer>;
|
||||
|
||||
constructor(name: string)
|
||||
{
|
||||
this._data = [ name ];
|
||||
}
|
||||
|
||||
dispose(): void
|
||||
{
|
||||
this._data = null;
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core';
|
||||
|
||||
export class CheckUserNameMessageComposer implements IMessageComposer<ConstructorParameters<typeof CheckUserNameMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof CheckUserNameMessageComposer>;
|
||||
|
||||
constructor(name: string)
|
||||
{
|
||||
this._data = [ name ];
|
||||
}
|
||||
|
||||
dispose(): void
|
||||
{
|
||||
this._data = null;
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GetWardrobeMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetWardrobeMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GetWardrobeMessageComposer>;
|
||||
|
||||
constructor(pageId: number = 0)
|
||||
{
|
||||
this._data = [ pageId ];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class SaveWardrobeOutfitMessageComposer implements IMessageComposer<ConstructorParameters<typeof SaveWardrobeOutfitMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof SaveWardrobeOutfitMessageComposer>;
|
||||
|
||||
constructor(slotId: number, look: string, gender: string)
|
||||
{
|
||||
this._data = [ slotId, look, gender ];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
export * from './ChangeUserNameMessageComposer';
|
||||
export * from './CheckUserNameMessageComposer';
|
||||
export * from './GetWardrobeMessageComposer';
|
||||
export * from './SaveWardrobeOutfitMessageComposer';
|
@ -1,4 +1,6 @@
|
||||
export * from './achievements';
|
||||
export * from './advertisement';
|
||||
export * from './avatar';
|
||||
export * from './camera';
|
||||
export * from './catalog';
|
||||
export * from './client';
|
||||
|
@ -1,21 +0,0 @@
|
||||
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class UserWardrobePageComposer implements IMessageComposer<ConstructorParameters<typeof UserWardrobePageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof UserWardrobePageComposer>;
|
||||
|
||||
constructor(pageId: number = 0)
|
||||
{
|
||||
this._data = [ pageId ];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class UserWardrobeSaveComposer implements IMessageComposer<ConstructorParameters<typeof UserWardrobeSaveComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof UserWardrobeSaveComposer>;
|
||||
|
||||
constructor(slotId: number, look: string, gender: string)
|
||||
{
|
||||
this._data = [ slotId, look, gender ];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
export * from './UserWardrobePageComposer';
|
||||
export * from './UserWardrobeSaveComposer';
|
Loading…
Reference in New Issue
Block a user