mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-27 01:40:52 +01:00
added outgoing competition messages
This commit is contained in:
parent
b19fdb3570
commit
31bd772c53
@ -1,5 +1,5 @@
|
||||
import { IMessageConfiguration } from '../../core/communication/messages/IMessageConfiguration';
|
||||
import { AchievementNotificationMessageEvent, ActivityPointNotificationMessageEvent, AddJukeboxDiskComposer, ApproveNameMessageComposer, ApproveNameMessageEvent, AvailabilityTimeMessageEvent, BadgePointLimitsEvent, BadgeReceivedEvent, BonusRareInfoMessageEvent, BuildersClubFurniCountMessageEvent, BuildersClubSubscriptionStatusMessageEvent, BundleDiscountRulesetMessageEvent, ChangeUserNameMessageComposer, ChangeUserNameResultMessageEvent, CheckUserNameMessageComposer, CheckUserNameResultMessageEvent, ClubGiftNotificationEvent, DirectSMSClubBuyAvailableMessageEvent, FigureUpdateEvent, FurnitureGroupInfoComposer, GetBonusRareInfoMessageComposer, GetCatalogPageExpirationComposer, GetCatalogPageWithEarliestExpiryComposer, GetDirectClubBuyAvailableComposer, GetHabboBasicMembershipExtendOfferComposer, GetHabboClubExtendOfferMessageComposer, GetInterstitialMessageComposer, GetJukeboxPlayListMessageComposer, GetLimitedOfferAppearingNextComposer, GetNextTargetedOfferComposer, GetNowPlayingMessageComposer, GetOfficialSongIdMessageComposer, GetRoomAdPurchaseInfoComposer, GetSeasonalCalendarDailyOfferComposer, GetSongInfoMessageComposer, GetSoundMachinePlayListMessageComposer, GetUserSongDisksMessageComposer, GroupBadgesComposer, GroupBadgesEvent, HabboClubExtendOfferMessageEvent, HotelClosedAndOpensEvent, HotelClosesAndWillOpenAtEvent, HotelWillCloseInMinutesEvent, InfoFeedEnableMessageEvent, InterstitialMessageEvent, InterstitialShownMessageComposer, IsBadgeRequestFulfilledEvent, IsOfferGiftableMessageEvent, JukeboxPlayListFullMessageEvent, JukeboxSongDisksMessageEvent, LimitedOfferAppearingNextMessageEvent, MaintenanceStatusMessageEvent, MarkCatalogNewAdditionsPageOpenedComposer, MarketplaceBuyOfferComposer, MarketplaceRedeemCreditsComposer, MarketplaceRequesstItemStatsComposer, MarketplaceRequestComposer, MarketplaceRequestOffersComposer, MarketplaceRequestOwnItemsComposer, MarketplaceTakeItemBackComposer, MysteryBoxKeysEvent, NotEnoughBalanceMessageEvent, NowPlayingMessageEvent, OfficialSongIdMessageEvent, OpenCampaignCalendarDoorAsStaffComposer, OpenCampaignCalendarDoorComposer, PetExperienceEvent, PetMountComposer, PetSupplementComposer, PlayListMessageEvent, PlayListSongAddedMessageEvent, PurchaseBasicMembershipExtensionComposer, PurchaseRoomAdMessageComposer, PurchaseTargetedOfferComposer, PurchaseVipMembershipExtensionComposer, RemoveAllRightsMessageComposer, RemoveJukeboxDiskComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, RoomAdErrorEvent, RoomAdPurchaseInfoEvent, RoomUnitGiveHandItemPetComposer, SeasonalCalendarDailyOfferMessageEvent, SellablePetPalettesMessageEvent, SetTargetedOfferStateComposer, ShopTargetedOfferViewedComposer, TalentTrackEvent, TargetedOfferEvent, TargetedOfferNotFoundEvent, TogglePetBreedingComposer, TogglePetRidingComposer, TraxSongInfoMessageEvent, UnseenResetCategoryComposer, UnseenResetItemsComposer, UsePetProductComposer, UserSongDisksInventoryMessageEvent, WardrobeMessageEvent } from './messages';
|
||||
import { AchievementNotificationMessageEvent, ActivityPointNotificationMessageEvent, AddJukeboxDiskComposer, ApproveNameMessageComposer, ApproveNameMessageEvent, AvailabilityTimeMessageEvent, BadgePointLimitsEvent, BadgeReceivedEvent, BonusRareInfoMessageEvent, BuildersClubFurniCountMessageEvent, BuildersClubSubscriptionStatusMessageEvent, BundleDiscountRulesetMessageEvent, ChangeUserNameMessageComposer, ChangeUserNameResultMessageEvent, CheckUserNameMessageComposer, CheckUserNameResultMessageEvent, ClubGiftNotificationEvent, DirectSMSClubBuyAvailableMessageEvent, FigureUpdateEvent, ForwardToASubmittableRoomMessageComposer, ForwardToRandomCompetitionRoomMessageComposer, FurnitureGroupInfoComposer, GetBonusRareInfoMessageComposer, GetCatalogPageExpirationComposer, GetCatalogPageWithEarliestExpiryComposer, GetCurrentTimingCodeMessageComposer, GetDirectClubBuyAvailableComposer, GetHabboBasicMembershipExtendOfferComposer, GetHabboClubExtendOfferMessageComposer, GetInterstitialMessageComposer, GetJukeboxPlayListMessageComposer, GetLimitedOfferAppearingNextComposer, GetNextTargetedOfferComposer, GetNowPlayingMessageComposer, GetOfficialSongIdMessageComposer, GetRoomAdPurchaseInfoComposer, GetSeasonalCalendarDailyOfferComposer, GetSecondsUntilMessageComposer, GetSongInfoMessageComposer, GetSoundMachinePlayListMessageComposer, GetUserSongDisksMessageComposer, GroupBadgesComposer, GroupBadgesEvent, HabboClubExtendOfferMessageEvent, HotelClosedAndOpensEvent, HotelClosesAndWillOpenAtEvent, HotelWillCloseInMinutesEvent, InfoFeedEnableMessageEvent, InterstitialMessageEvent, InterstitialShownMessageComposer, IsBadgeRequestFulfilledEvent, IsOfferGiftableMessageEvent, JukeboxPlayListFullMessageEvent, JukeboxSongDisksMessageEvent, LimitedOfferAppearingNextMessageEvent, MaintenanceStatusMessageEvent, MarkCatalogNewAdditionsPageOpenedComposer, MarketplaceBuyOfferComposer, MarketplaceRedeemCreditsComposer, MarketplaceRequesstItemStatsComposer, MarketplaceRequestComposer, MarketplaceRequestOffersComposer, MarketplaceRequestOwnItemsComposer, MarketplaceTakeItemBackComposer, MysteryBoxKeysEvent, NotEnoughBalanceMessageEvent, NowPlayingMessageEvent, OfficialSongIdMessageEvent, OpenCampaignCalendarDoorAsStaffComposer, OpenCampaignCalendarDoorComposer, PetExperienceEvent, PetMountComposer, PetSupplementComposer, PlayListMessageEvent, PlayListSongAddedMessageEvent, PurchaseBasicMembershipExtensionComposer, PurchaseRoomAdMessageComposer, PurchaseTargetedOfferComposer, PurchaseVipMembershipExtensionComposer, RemoveAllRightsMessageComposer, RemoveJukeboxDiskComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, RoomAdErrorEvent, RoomAdPurchaseInfoEvent, RoomCompetitionInitMessageComposer, RoomUnitGiveHandItemPetComposer, SeasonalCalendarDailyOfferMessageEvent, SellablePetPalettesMessageEvent, SetTargetedOfferStateComposer, ShopTargetedOfferViewedComposer, SubmitRoomToCompetitionMessageComposer, TalentTrackEvent, TargetedOfferEvent, TargetedOfferNotFoundEvent, TogglePetBreedingComposer, TogglePetRidingComposer, TraxSongInfoMessageEvent, UnseenResetCategoryComposer, UnseenResetItemsComposer, UsePetProductComposer, UserSongDisksInventoryMessageEvent, VoteForRoomMessageComposer, 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';
|
||||
@ -251,6 +251,8 @@ import { RoomAdPurchaseInitiatedComposer } from './messages/outgoing/catalog/Roo
|
||||
import { SelectClubGiftComposer } from './messages/outgoing/catalog/SelectClubGiftComposer';
|
||||
import { ClientPongComposer } from './messages/outgoing/client/ClientPongComposer';
|
||||
import { ClientReleaseVersionComposer } from './messages/outgoing/client/ClientReleaseVersionComposer';
|
||||
import { ForwardToACompetitionRoomMessageComposer } from './messages/outgoing/competition/ForwardToACompetitionRoomMessageComposer';
|
||||
import { GetIsUserPartOfCompetitionMessageComposer } from './messages/outgoing/competition/GetIsUserPartOfCompetitionMessageComposer';
|
||||
import { CraftComposer } from './messages/outgoing/crafting/CraftComposer';
|
||||
import { CraftSecretComposer } from './messages/outgoing/crafting/CraftSecretComposer';
|
||||
import { GetCraftableProductsComposer } from './messages/outgoing/crafting/GetCraftableProductsComposer';
|
||||
@ -937,6 +939,17 @@ export class NitroMessages implements IMessageConfiguration
|
||||
this._composers.set(OutgoingHeader.SET_TARGETTED_OFFER_STATE, SetTargetedOfferStateComposer);
|
||||
this._composers.set(OutgoingHeader.SHOP_TARGETED_OFFER_VIEWED, ShopTargetedOfferViewedComposer);
|
||||
|
||||
// COMPETITION
|
||||
this._composers.set(OutgoingHeader.FORWARD_TO_A_COMPETITION_ROOM, ForwardToACompetitionRoomMessageComposer);
|
||||
this._composers.set(OutgoingHeader.FORWARD_TO_A_SUBMITTABLE_ROOM, ForwardToASubmittableRoomMessageComposer);
|
||||
this._composers.set(OutgoingHeader.FORWARD_TO_RANDOM_COMPETITION_ROOM, ForwardToRandomCompetitionRoomMessageComposer);
|
||||
this._composers.set(OutgoingHeader.GET_CURRENT_TIMING_CODE, GetCurrentTimingCodeMessageComposer);
|
||||
this._composers.set(OutgoingHeader.GET_IS_USER_PART_OF_COMPETITION, GetIsUserPartOfCompetitionMessageComposer);
|
||||
this._composers.set(OutgoingHeader.GET_SECONDS_UNTIL, GetSecondsUntilMessageComposer);
|
||||
this._composers.set(OutgoingHeader.ROOM_COMPETITION_INIT, RoomCompetitionInitMessageComposer);
|
||||
this._composers.set(OutgoingHeader.SUBMIT_ROOM_TO_COMPETITION, SubmitRoomToCompetitionMessageComposer);
|
||||
this._composers.set(OutgoingHeader.VOTE_FOR_ROOM, VoteForRoomMessageComposer);
|
||||
|
||||
// CLIENT
|
||||
this._composers.set(OutgoingHeader.CLIENT_PONG, ClientPongComposer);
|
||||
this._composers.set(OutgoingHeader.RELEASE_VERSION, ClientReleaseVersionComposer);
|
||||
|
@ -19,7 +19,7 @@ export class OutgoingHeader
|
||||
public static CLIENT_PONG = 2596;
|
||||
public static CLIENT_TOOLBAR_TOGGLE = 2313;
|
||||
public static CLIENT_VARIABLES = 1053;
|
||||
public static DESKTOP_CAMPAIGNS = 2912;
|
||||
public static GET_CURRENT_TIMING_CODE = 2912;
|
||||
public static DESKTOP_NEWS = 1827;
|
||||
public static DESKTOP_VIEW = 105;
|
||||
public static GET_BUNDLE_DISCOUNT_RULESET = 223;
|
||||
@ -308,4 +308,12 @@ export class OutgoingHeader
|
||||
public static SET_TARGETTED_OFFER_STATE = 2041;
|
||||
public static SHOP_TARGETED_OFFER_VIEWED = 3483;
|
||||
public static HELPER_TALENT_TRACK = 196;
|
||||
public static FORWARD_TO_A_COMPETITION_ROOM = 172;
|
||||
public static FORWARD_TO_A_SUBMITTABLE_ROOM = 1450;
|
||||
public static FORWARD_TO_RANDOM_COMPETITION_ROOM = 865;
|
||||
public static GET_IS_USER_PART_OF_COMPETITION = 2077;
|
||||
public static GET_SECONDS_UNTIL = 271;
|
||||
public static ROOM_COMPETITION_INIT = 1334;
|
||||
public static SUBMIT_ROOM_TO_COMPETITION = 2595;
|
||||
public static VOTE_FOR_ROOM = 143;
|
||||
}
|
||||
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core';
|
||||
|
||||
export class ForwardToACompetitionRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof ForwardToACompetitionRoomMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof ForwardToACompetitionRoomMessageComposer>;
|
||||
|
||||
constructor(k:string, _arg_2:number)
|
||||
{
|
||||
this._data = [ k, _arg_2 ];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core';
|
||||
|
||||
export class ForwardToASubmittableRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof ForwardToASubmittableRoomMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof ForwardToASubmittableRoomMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core';
|
||||
|
||||
export class ForwardToRandomCompetitionRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof ForwardToRandomCompetitionRoomMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof ForwardToRandomCompetitionRoomMessageComposer>;
|
||||
|
||||
constructor(k: string)
|
||||
{
|
||||
this._data = [ k];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core';
|
||||
|
||||
export class GetCurrentTimingCodeMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetCurrentTimingCodeMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GetCurrentTimingCodeMessageComposer>;
|
||||
|
||||
constructor(k: string)
|
||||
{
|
||||
this._data = [ k ];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core';
|
||||
|
||||
export class GetIsUserPartOfCompetitionMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetIsUserPartOfCompetitionMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GetIsUserPartOfCompetitionMessageComposer>;
|
||||
|
||||
constructor(k: string)
|
||||
{
|
||||
this._data = [ k ];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../..';
|
||||
|
||||
export class GetSecondsUntilMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetSecondsUntilMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GetSecondsUntilMessageComposer>;
|
||||
|
||||
constructor(k: string)
|
||||
{
|
||||
this._data = [ k ];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../..';
|
||||
|
||||
export class RoomCompetitionInitMessageComposer implements IMessageComposer<ConstructorParameters<typeof RoomCompetitionInitMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof RoomCompetitionInitMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
import { IMessageComposer } from '../../../../../core';
|
||||
|
||||
export class SubmitRoomToCompetitionMessageComposer implements IMessageComposer<ConstructorParameters<typeof SubmitRoomToCompetitionMessageComposer>>
|
||||
{
|
||||
public static readonly CONFIRM_LEVEL_NOT_ACCEPTED = 0;
|
||||
public static readonly CONFIRM_LEVEL_NOT_SUBMITTED = 1;
|
||||
public static readonly CONFIRM_LEVEL_NOT_CONFIRMED = 2;
|
||||
public static readonly CONFIRM_LEVEL_COMMIT = 3;
|
||||
|
||||
private _data: ConstructorParameters<typeof SubmitRoomToCompetitionMessageComposer>;
|
||||
|
||||
constructor(k: string, _arg_2: number)
|
||||
{
|
||||
this._data = [k, _arg_2];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../..';
|
||||
|
||||
export class VoteForRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof VoteForRoomMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof VoteForRoomMessageComposer>;
|
||||
|
||||
constructor(k: string)
|
||||
{
|
||||
this._data = [ k ];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
export * from './ForwardToACompetitionRoomMessageComposer';
|
||||
export * from './ForwardToASubmittableRoomMessageComposer';
|
||||
export * from './ForwardToRandomCompetitionRoomMessageComposer';
|
||||
export * from './GetCurrentTimingCodeMessageComposer';
|
||||
export * from './GetIsUserPartOfCompetitionMessageComposer';
|
||||
export * from './GetSecondsUntilMessageComposer';
|
||||
export * from './RoomCompetitionInitMessageComposer';
|
||||
export * from './SubmitRoomToCompetitionMessageComposer';
|
||||
export * from './VoteForRoomMessageComposer';
|
@ -4,6 +4,7 @@ export * from './camera';
|
||||
export * from './campaign';
|
||||
export * from './catalog';
|
||||
export * from './client';
|
||||
export * from './competition';
|
||||
export * from './desktop';
|
||||
export * from './friendlist';
|
||||
export * from './group';
|
||||
|
Loading…
Reference in New Issue
Block a user