added outgoing mod tool packets

This commit is contained in:
dank074 2021-10-20 14:53:45 -05:00
parent 56bd166875
commit 01ac63c964
23 changed files with 273 additions and 76 deletions

View File

@ -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, ControlYoutubeDisplayPlaybackMessageComposer, DirectSMSClubBuyAvailableMessageEvent, FigureUpdateEvent, ForwardToASubmittableRoomMessageComposer, ForwardToRandomCompetitionRoomMessageComposer, FurnitureGroupInfoComposer, GetBonusRareInfoMessageComposer, GetCatalogPageExpirationComposer, GetCatalogPageWithEarliestExpiryComposer, GetCurrentTimingCodeMessageComposer, GetDirectClubBuyAvailableComposer, GetForumsListMessageComposer, GetForumStatsMessageComposer, GetGiftMessageComposer, GetHabboBasicMembershipExtendOfferComposer, GetHabboClubExtendOfferMessageComposer, GetInterstitialMessageComposer, GetJukeboxPlayListMessageComposer, GetLimitedOfferAppearingNextComposer, GetMessagesMessageComposer, GetNextTargetedOfferComposer, GetNowPlayingMessageComposer, GetOfficialSongIdMessageComposer, GetRoomAdPurchaseInfoComposer, GetSeasonalCalendarDailyOfferComposer, GetSecondsUntilMessageComposer, GetSongInfoMessageComposer, GetSoundMachinePlayListMessageComposer, GetThreadMessageComposer, GetThreadsMessageComposer, GetUnreadForumsCountMessageComposer, GetUserSongDisksMessageComposer, GetYoutubeDisplayStatusMessageComposer, GoToFlatMessageComposer, GroupBadgesComposer, GroupBadgesEvent, HabboClubExtendOfferMessageEvent, HotelClosedAndOpensEvent, HotelClosesAndWillOpenAtEvent, HotelWillCloseInMinutesEvent, InfoFeedEnableMessageEvent, InterstitialMessageEvent, InterstitialShownMessageComposer, IsBadgeRequestFulfilledEvent, IsOfferGiftableMessageEvent, JukeboxPlayListFullMessageEvent, JukeboxSongDisksMessageEvent, LimitedOfferAppearingNextMessageEvent, MaintenanceStatusMessageEvent, MarkCatalogNewAdditionsPageOpenedComposer, MarketplaceBuyOfferComposer, MarketplaceRedeemCreditsComposer, MarketplaceRequesstItemStatsComposer, MarketplaceRequestComposer, MarketplaceRequestOffersComposer, MarketplaceRequestOwnItemsComposer, MarketplaceTakeItemBackComposer, ModerateMessageMessageComposer, ModerateThreadMessageComposer, MysteryBoxKeysEvent, NotEnoughBalanceMessageEvent, NowPlayingMessageEvent, OfficialSongIdMessageEvent, OpenCampaignCalendarDoorAsStaffComposer, OpenCampaignCalendarDoorComposer, PetExperienceEvent, PetMountComposer, PetSupplementComposer, PlayListMessageEvent, PlayListSongAddedMessageEvent, PostMessageMessageComposer, PurchaseBasicMembershipExtensionComposer, PurchaseRoomAdMessageComposer, PurchaseTargetedOfferComposer, PurchaseVipMembershipExtensionComposer, RemoveAllRightsMessageComposer, RemoveJukeboxDiskComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, ResetPhoneNumberStateMessageComposer, RoomAdErrorEvent, RoomAdPurchaseInfoEvent, RoomCompetitionInitMessageComposer, RoomUnitGiveHandItemPetComposer, SeasonalCalendarDailyOfferMessageEvent, SellablePetPalettesMessageEvent, SetPhoneNumberVerificationStatusMessageComposer, SetTargetedOfferStateComposer, SetYoutubeDisplayPlaylistMessageComposer, ShopTargetedOfferViewedComposer, SubmitRoomToCompetitionMessageComposer, TalentTrackEvent, TargetedOfferEvent, TargetedOfferNotFoundEvent, TogglePetBreedingComposer, TogglePetRidingComposer, TraxSongInfoMessageEvent, TryPhoneNumberMessageComposer, UnseenResetCategoryComposer, UnseenResetItemsComposer, UpdateForumReadMarkerMessageComposer, UpdateForumSettingsMessageComposer, UpdateThreadMessageComposer, UsePetProductComposer, UserSongDisksInventoryMessageEvent, VerifyCodeMessageComposer, VoteForRoomMessageComposer, WardrobeMessageEvent } from './messages';
import { AchievementNotificationMessageEvent, ActivityPointNotificationMessageEvent, AddJukeboxDiskComposer, ApproveNameMessageComposer, ApproveNameMessageEvent, AvailabilityTimeMessageEvent, BadgePointLimitsEvent, BadgeReceivedEvent, BonusRareInfoMessageEvent, BuildersClubFurniCountMessageEvent, BuildersClubSubscriptionStatusMessageEvent, BundleDiscountRulesetMessageEvent, ChangeUserNameMessageComposer, ChangeUserNameResultMessageEvent, CheckUserNameMessageComposer, CheckUserNameResultMessageEvent, CloseIssueDefaultActionMessageComposer, CloseIssuesMessageComposer, ClubGiftNotificationEvent, ControlYoutubeDisplayPlaybackMessageComposer, DirectSMSClubBuyAvailableMessageEvent, FigureUpdateEvent, ForwardToASubmittableRoomMessageComposer, ForwardToRandomCompetitionRoomMessageComposer, FurnitureGroupInfoComposer, GetBonusRareInfoMessageComposer, GetCatalogPageExpirationComposer, GetCatalogPageWithEarliestExpiryComposer, GetCfhChatlogMessageComposer, GetCurrentTimingCodeMessageComposer, GetDirectClubBuyAvailableComposer, GetForumsListMessageComposer, GetForumStatsMessageComposer, GetGiftMessageComposer, GetHabboBasicMembershipExtendOfferComposer, GetHabboClubExtendOfferMessageComposer, GetInterstitialMessageComposer, GetJukeboxPlayListMessageComposer, GetLimitedOfferAppearingNextComposer, GetMessagesMessageComposer, GetNextTargetedOfferComposer, GetNowPlayingMessageComposer, GetOfficialSongIdMessageComposer, GetRoomAdPurchaseInfoComposer, GetSeasonalCalendarDailyOfferComposer, GetSecondsUntilMessageComposer, GetSongInfoMessageComposer, GetSoundMachinePlayListMessageComposer, GetThreadMessageComposer, GetThreadsMessageComposer, GetUnreadForumsCountMessageComposer, GetUserSongDisksMessageComposer, GetYoutubeDisplayStatusMessageComposer, GoToFlatMessageComposer, GroupBadgesComposer, GroupBadgesEvent, HabboClubExtendOfferMessageEvent, HotelClosedAndOpensEvent, HotelClosesAndWillOpenAtEvent, HotelWillCloseInMinutesEvent, InfoFeedEnableMessageEvent, InterstitialMessageEvent, InterstitialShownMessageComposer, IsBadgeRequestFulfilledEvent, IsOfferGiftableMessageEvent, JukeboxPlayListFullMessageEvent, JukeboxSongDisksMessageEvent, LimitedOfferAppearingNextMessageEvent, MaintenanceStatusMessageEvent, MarkCatalogNewAdditionsPageOpenedComposer, MarketplaceBuyOfferComposer, MarketplaceRedeemCreditsComposer, MarketplaceRequesstItemStatsComposer, MarketplaceRequestComposer, MarketplaceRequestOffersComposer, MarketplaceRequestOwnItemsComposer, MarketplaceTakeItemBackComposer, ModerateMessageMessageComposer, ModerateThreadMessageComposer, ModToolPreferencesComposer, ModToolSanctionComposer, MysteryBoxKeysEvent, NotEnoughBalanceMessageEvent, NowPlayingMessageEvent, OfficialSongIdMessageEvent, OpenCampaignCalendarDoorAsStaffComposer, OpenCampaignCalendarDoorComposer, PetExperienceEvent, PetMountComposer, PetSupplementComposer, PickIssuesMessageComposer, PlayListMessageEvent, PlayListSongAddedMessageEvent, PostMessageMessageComposer, PurchaseBasicMembershipExtensionComposer, PurchaseRoomAdMessageComposer, PurchaseTargetedOfferComposer, PurchaseVipMembershipExtensionComposer, ReleaseIssuesMessageComposer, RemoveAllRightsMessageComposer, RemoveJukeboxDiskComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, ResetPhoneNumberStateMessageComposer, RoomAdErrorEvent, RoomAdPurchaseInfoEvent, RoomCompetitionInitMessageComposer, RoomUnitGiveHandItemPetComposer, SeasonalCalendarDailyOfferMessageEvent, SellablePetPalettesMessageEvent, SetPhoneNumberVerificationStatusMessageComposer, SetTargetedOfferStateComposer, SetYoutubeDisplayPlaylistMessageComposer, ShopTargetedOfferViewedComposer, SubmitRoomToCompetitionMessageComposer, TalentTrackEvent, TargetedOfferEvent, TargetedOfferNotFoundEvent, TogglePetBreedingComposer, TogglePetRidingComposer, TraxSongInfoMessageEvent, TryPhoneNumberMessageComposer, UnseenResetCategoryComposer, UnseenResetItemsComposer, UpdateForumReadMarkerMessageComposer, UpdateForumSettingsMessageComposer, UpdateThreadMessageComposer, UsePetProductComposer, UserSongDisksInventoryMessageEvent, VerifyCodeMessageComposer, VoteForRoomMessageComposer, WardrobeMessageEvent } from './messages';
import { AvailabilityStatusMessageEvent } from './messages/incoming/availability/AvailabilityStatusMessageEvent';
import { BotAddedToInventoryEvent, BotInventoryMessageEvent, BotReceivedMessageEvent, BotRemovedFromInventoryEvent } from './messages/incoming/bots';
import { CfhSanctionMessageEvent, CfhTopicsInitEvent, SanctionStatusEvent } from './messages/incoming/callforhelp';
@ -322,19 +322,20 @@ import { TradingOpenComposer } from './messages/outgoing/inventory/trading/Tradi
import { TradingUnacceptComposer } from './messages/outgoing/inventory/trading/TradingUnacceptComposer';
import { GetPromoArticlesComposer } from './messages/outgoing/landingview/GetPromoArticlesComposer';
import { CommunityGoalVoteMessageComposer } from './messages/outgoing/landingview/votes/CommunityGoalVoteMessageComposer';
import { DefaultSanctionMessageComposer } from './messages/outgoing/modtool/DefaultSanctionMessageComposer';
import { GetModeratorRoomInfoMessageComposer } from './messages/outgoing/modtool/GetModeratorRoomInfoMessageComposer';
import { GetModeratorUserInfoMessageComposer } from './messages/outgoing/modtool/GetModeratorUserInfoMessageComposer';
import { GetRoomChatlogMessageComposer } from './messages/outgoing/modtool/GetRoomChatlogMessageComposer';
import { GetRoomVisitsMessageComposer } from './messages/outgoing/modtool/GetRoomVisitsMessageComposer';
import { GetUserChatlogMessageComposer } from './messages/outgoing/modtool/GetUserChatlogMessageComposer';
import { ModAlertMessageComposer } from './messages/outgoing/modtool/ModAlertMessageComposer';
import { ModBanMessageComposer } from './messages/outgoing/modtool/ModBanMessageComposer';
import { ModerateRoomMessageComposer } from './messages/outgoing/modtool/ModerateRoomMessageComposer';
import { ModeratorActionMessageComposer } from './messages/outgoing/modtool/ModeratorActionMessageComposer';
import { ModKickMessageComposer } from './messages/outgoing/modtool/ModKickMessageComposer';
import { ModMessageMessageComposer } from './messages/outgoing/modtool/ModMessageMessageComposer';
import { ModtoolRequestRoomChatlogComposer } from './messages/outgoing/modtool/ModtoolRequestRoomChatlogComposer';
import { ModtoolRequestRoomInfoComposer } from './messages/outgoing/modtool/ModtoolRequestRoomInfoComposer';
import { ModtoolRequestUserChatlogComposer } from './messages/outgoing/modtool/ModtoolRequestUserChatlogComposer';
import { ModtoolRequestUserInfoComposer } from './messages/outgoing/modtool/ModtoolRequestUserInfoComposer';
import { ModtoolRequestUserRoomsComposer } from './messages/outgoing/modtool/ModtoolRequestUserRoomsComposer';
import { ModtoolSanctionAlertComposer } from './messages/outgoing/modtool/ModtoolSanctionAlertComposer';
import { ModtoolSanctionBanComposer } from './messages/outgoing/modtool/ModtoolSanctionBanComposer';
import { ModtoolSanctionKickComposer } from './messages/outgoing/modtool/ModtoolSanctionKickComposer';
import { ModtoolSanctionMuteComposer } from './messages/outgoing/modtool/ModtoolSanctionMuteComposer';
import { ModtoolSanctionTradelockComposer } from './messages/outgoing/modtool/ModtoolSanctionTradelockComposer';
import { ModMuteMessageComposer } from './messages/outgoing/modtool/ModMuteMessageComposer';
import { ModTradingLockMessageComposer } from './messages/outgoing/modtool/ModTradingLockMessageComposer';
import { ConvertGlobalRoomIdMessageComposer } from './messages/outgoing/navigator/ConvertGlobalRoomIdComposer';
import { NavigatorCategoriesComposer } from './messages/outgoing/navigator/NavigatorCategoriesComposer';
import { NavigatorCategoryListModeComposer } from './messages/outgoing/navigator/NavigatorCategoryListModeComposer';
@ -1219,19 +1220,27 @@ export class NitroMessages implements IMessageConfiguration
this._composers.set(OutgoingHeader.USER_SUBSCRIPTION, UserSubscriptionComposer);
// MODTOOL
this._composers.set(OutgoingHeader.MODTOOL_REQUEST_ROOM_INFO, ModtoolRequestRoomInfoComposer);
this._composers.set(OutgoingHeader.MODTOOL_REQUEST_ROOM_INFO, GetModeratorRoomInfoMessageComposer);
this._composers.set(OutgoingHeader.MODTOOL_CHANGE_ROOM_SETTINGS, ModerateRoomMessageComposer);
this._composers.set(OutgoingHeader.MODTOOL_REQUEST_USER_CHATLOG, ModtoolRequestUserChatlogComposer);
this._composers.set(OutgoingHeader.MODTOOL_REQUEST_ROOM_CHATLOG, ModtoolRequestRoomChatlogComposer);
this._composers.set(OutgoingHeader.MOD_TOOL_USER_INFO, ModtoolRequestUserInfoComposer);
this._composers.set(OutgoingHeader.MODTOOL_SANCTION_ALERT, ModtoolSanctionAlertComposer);
this._composers.set(OutgoingHeader.MODTOOL_SANCTION_BAN, ModtoolSanctionBanComposer);
this._composers.set(OutgoingHeader.MODTOOL_SANCTION_KICK, ModtoolSanctionKickComposer);
this._composers.set(OutgoingHeader.MODTOOL_SANCTION_TRADELOCK, ModtoolSanctionTradelockComposer);
this._composers.set(OutgoingHeader.MODTOOL_REQUEST_USER_CHATLOG, GetUserChatlogMessageComposer);
this._composers.set(OutgoingHeader.MODTOOL_REQUEST_ROOM_CHATLOG, GetRoomChatlogMessageComposer);
this._composers.set(OutgoingHeader.MOD_TOOL_USER_INFO, GetModeratorUserInfoMessageComposer);
this._composers.set(OutgoingHeader.MODTOOL_SANCTION_ALERT, ModAlertMessageComposer);
this._composers.set(OutgoingHeader.MODTOOL_SANCTION_BAN, ModBanMessageComposer);
this._composers.set(OutgoingHeader.MODTOOL_SANCTION_KICK, ModKickMessageComposer);
this._composers.set(OutgoingHeader.MODTOOL_SANCTION_TRADELOCK, ModTradingLockMessageComposer);
this._composers.set(OutgoingHeader.MODTOOL_ALERTEVENT, ModMessageMessageComposer);
this._composers.set(OutgoingHeader.MODTOOL_SANCTION_MUTE, ModtoolSanctionMuteComposer);
this._composers.set(OutgoingHeader.MODTOOL_REQUEST_USER_ROOMS, ModtoolRequestUserRoomsComposer);
this._composers.set(OutgoingHeader.MODTOOL_SANCTION_MUTE, ModMuteMessageComposer);
this._composers.set(OutgoingHeader.MODTOOL_REQUEST_USER_ROOMS, GetRoomVisitsMessageComposer);
this._composers.set(OutgoingHeader.MODTOOL_ROOM_ALERT, ModeratorActionMessageComposer);
this._composers.set(OutgoingHeader.CLOSE_ISSUE_DEFAULT_ACTION, CloseIssueDefaultActionMessageComposer);
this._composers.set(OutgoingHeader.CLOSE_ISSUES, CloseIssuesMessageComposer);
this._composers.set(OutgoingHeader.DEFAULT_SANCTION, DefaultSanctionMessageComposer);
this._composers.set(OutgoingHeader.GET_CFH_CHATLOG, GetCfhChatlogMessageComposer);
this._composers.set(OutgoingHeader.MODTOOL_PREFERENCES, ModToolPreferencesComposer);
this._composers.set(OutgoingHeader.MODTOOL_SANCTION, ModToolSanctionComposer);
this._composers.set(OutgoingHeader.PICK_ISSUES, PickIssuesMessageComposer);
this._composers.set(OutgoingHeader.RELEASE_ISSUES, ReleaseIssuesMessageComposer);
// SETTINGS
this._composers.set(OutgoingHeader.USER_SETTINGS_CAMERA, UserSettingsCameraFollowComposer);

View File

@ -229,6 +229,14 @@ export class OutgoingHeader
public static MODTOOL_SANCTION_MUTE = 1945;
public static MODTOOL_REQUEST_USER_ROOMS = 3526;
public static MODTOOL_ROOM_ALERT = 3842;
public static MODTOOL_PREFERENCES = 31;
public static CLOSE_ISSUE_DEFAULT_ACTION = 2717;
public static CLOSE_ISSUES = 2067;
public static DEFAULT_SANCTION = 1681;
public static GET_CFH_CHATLOG = 211;
public static MODTOOL_SANCTION = 1392;
public static PICK_ISSUES = 15;
public static RELEASE_ISSUES = 1572;
public static CONVERT_GLOBAL_ROOM_ID = 314;
public static REQUEST_SELL_ITEM = 848;
public static REQUEST_MARKETPLACE_ITEM_STATS = 3288;

View File

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

View File

@ -0,0 +1,22 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class CloseIssuesMessageComposer implements IMessageComposer<number[]>
{
private _data: number[];
constructor(issueIds: number[], _arg_2: number)
{
this._data = [ _arg_2, issueIds.length, ...issueIds];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,26 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
import { ModBanMessageComposer } from './ModBanMessageComposer';
export class DefaultSanctionMessageComposer implements IMessageComposer<ConstructorParameters<typeof DefaultSanctionMessageComposer>>
{
private _data: ConstructorParameters<typeof DefaultSanctionMessageComposer>;
constructor(k:number, _arg_2:number, _arg_3:string, _arg_4:number = -1)
{
this._data = [k, _arg_2, _arg_3];
if(_arg_4 != ModBanMessageComposer.NO_ISSUE_ID)
{
this._data.push(_arg_4);
}
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

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

View File

@ -1,8 +1,8 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class ModtoolRequestRoomInfoComposer implements IMessageComposer<ConstructorParameters<typeof ModtoolRequestRoomInfoComposer>>
export class GetModeratorRoomInfoMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetModeratorRoomInfoMessageComposer>>
{
private _data: ConstructorParameters<typeof ModtoolRequestRoomInfoComposer>;
private _data: ConstructorParameters<typeof GetModeratorRoomInfoMessageComposer>;
constructor(roomId: number)
{

View File

@ -1,8 +1,8 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class ModtoolRequestUserChatlogComposer implements IMessageComposer<ConstructorParameters<typeof ModtoolRequestUserChatlogComposer>>
export class GetModeratorUserInfoMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetModeratorUserInfoMessageComposer>>
{
private _data: ConstructorParameters<typeof ModtoolRequestUserChatlogComposer>;
private _data: ConstructorParameters<typeof GetModeratorUserInfoMessageComposer>;
constructor(userId: number)
{

View File

@ -1,8 +1,8 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class ModtoolRequestRoomChatlogComposer implements IMessageComposer<ConstructorParameters<typeof ModtoolRequestRoomChatlogComposer>>
export class GetRoomChatlogMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetRoomChatlogMessageComposer>>
{
private _data: ConstructorParameters<typeof ModtoolRequestRoomChatlogComposer>;
private _data: ConstructorParameters<typeof GetRoomChatlogMessageComposer>;
constructor(roomId: number, useless: number = 0)
{

View File

@ -1,8 +1,8 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class ModtoolRequestUserRoomsComposer implements IMessageComposer<ConstructorParameters<typeof ModtoolRequestUserRoomsComposer>>
export class GetRoomVisitsMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetRoomVisitsMessageComposer>>
{
private _data: ConstructorParameters<typeof ModtoolRequestUserRoomsComposer>;
private _data: ConstructorParameters<typeof GetRoomVisitsMessageComposer>;
constructor(k: number)
{

View File

@ -1,8 +1,8 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class ModtoolRequestUserInfoComposer implements IMessageComposer<ConstructorParameters<typeof ModtoolRequestUserInfoComposer>>
export class GetUserChatlogMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetUserChatlogMessageComposer>>
{
private _data: ConstructorParameters<typeof ModtoolRequestUserInfoComposer>;
private _data: ConstructorParameters<typeof GetUserChatlogMessageComposer>;
constructor(userId: number)
{

View File

@ -1,15 +1,14 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
import { ModBanMessageComposer } from './ModBanMessageComposer';
export class ModtoolSanctionMuteComposer implements IMessageComposer<any>
export class ModAlertMessageComposer implements IMessageComposer<ConstructorParameters<typeof ModAlertMessageComposer>>
{
private _data: any[] = [];
private _data: ConstructorParameters<typeof ModAlertMessageComposer>;
constructor(k: number, arg2: string, arg3: number, arg4: number = -1)
{
this._data.push(k);
this._data.push(arg2);
this._data.push(arg3);
if(arg4 != -1)
this._data = [k, arg2, arg3];
if(arg4 != ModBanMessageComposer.NO_ISSUE_ID)
{
this._data.push(arg4);
}

View File

@ -1,17 +1,15 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class ModtoolSanctionBanComposer implements IMessageComposer<any>
export class ModBanMessageComposer implements IMessageComposer<ConstructorParameters<typeof ModBanMessageComposer>>
{
private _data: any[] = [];
public static readonly NO_ISSUE_ID = -1;
private _data: ConstructorParameters<typeof ModBanMessageComposer>;
constructor(k: number, arg2: string, arg3: number, arg4: number, arg5: boolean, arg6: number = -1)
{
this._data.push(k);
this._data.push(arg2);
this._data.push(arg3);
this._data.push(arg4);
this._data.push(arg5);
if(arg6 != -1)
this._data = [k, arg2, arg3, arg4, arg5];
if(arg6 != ModBanMessageComposer.NO_ISSUE_ID)
{
this._data.push(arg6);
}

View File

@ -1,15 +1,15 @@
import { ModBanMessageComposer } from '..';
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class ModtoolSanctionKickComposer implements IMessageComposer<any>
export class ModKickMessageComposer implements IMessageComposer<ConstructorParameters<typeof ModKickMessageComposer>>
{
private _data: any[] = [];
private _data: ConstructorParameters<typeof ModKickMessageComposer>;
constructor(k: number, arg2: string, arg3: number, arg4: number = -1)
{
this._data.push(k);
this._data.push(arg2);
this._data.push(arg3);
if(arg4 != -1)
this._data = [k, arg2, arg3];
if(arg4 != ModBanMessageComposer.NO_ISSUE_ID)
{
this._data.push(arg4);
}

View File

@ -1,4 +1,5 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
import { ModBanMessageComposer } from './ModBanMessageComposer';
export class ModMessageMessageComposer implements IMessageComposer<any>
{
@ -11,7 +12,7 @@ export class ModMessageMessageComposer implements IMessageComposer<any>
this._data.push('');
this._data.push('');
this._data.push(arg3);
if(arg4 != -1)
if(arg4 != ModBanMessageComposer.NO_ISSUE_ID)
{
this._data.push(arg4);
}

View File

@ -1,15 +1,14 @@
import { ModBanMessageComposer } from '.';
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class ModtoolSanctionAlertComposer implements IMessageComposer<any>
export class ModMuteMessageComposer implements IMessageComposer<ConstructorParameters<typeof ModMuteMessageComposer>>
{
private _data: any[] = [];
private _data: ConstructorParameters<typeof ModMuteMessageComposer>;
constructor(k: number, arg2: string, arg3: number, arg4: number = -1)
{
this._data.push(k);
this._data.push(arg2);
this._data.push(arg3);
if(arg4 != -1)
this._data = [k, arg2, arg3];
if(arg4 != ModBanMessageComposer.NO_ISSUE_ID)
{
this._data.push(arg4);
}

View File

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

View File

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

View File

@ -1,16 +1,15 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
import { ModBanMessageComposer } from './ModBanMessageComposer';
export class ModtoolSanctionTradelockComposer implements IMessageComposer<any>
export class ModTradingLockMessageComposer implements IMessageComposer<ConstructorParameters<typeof ModTradingLockMessageComposer>>
{
private _data: any[] = [];
private _data: ConstructorParameters<typeof ModTradingLockMessageComposer>;
constructor(k: number, arg2: string, arg3: number, arg4: number, arg5: number = -1)
{
this._data.push(k);
this._data.push(arg2);
this._data.push(arg3);
this._data.push(arg4);
if(arg5 != -1)
this._data = [ k, arg2, arg3, arg4 ];
if(arg5 != ModBanMessageComposer.NO_ISSUE_ID)
{
this._data.push(arg5);
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class PickIssuesMessageComposer implements IMessageComposer<any>
{
private _data: any;
constructor(k:number[], _arg_2:boolean, _arg_3:number, _arg_4:string)
{
this._data = [k.length, ...k, _arg_2, _arg_3, _arg_4];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

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

View File

@ -1,13 +1,21 @@
export * from './CloseIssueDefaultActionMessageComposer';
export * from './CloseIssuesMessageComposer';
export * from './DefaultSanctionMessageComposer';
export * from './GetCfhChatlogMessageComposer';
export * from './GetModeratorRoomInfoMessageComposer';
export * from './GetModeratorUserInfoMessageComposer';
export * from './GetRoomChatlogMessageComposer';
export * from './GetRoomVisitsMessageComposer';
export * from './GetUserChatlogMessageComposer';
export * from './ModAlertMessageComposer';
export * from './ModBanMessageComposer';
export * from './ModerateRoomMessageComposer';
export * from './ModeratorActionMessageComposer';
export * from './ModKickMessageComposer';
export * from './ModMessageMessageComposer';
export * from './ModtoolRequestRoomChatlogComposer';
export * from './ModtoolRequestRoomInfoComposer';
export * from './ModtoolRequestUserChatlogComposer';
export * from './ModtoolRequestUserInfoComposer';
export * from './ModtoolRequestUserRoomsComposer';
export * from './ModtoolSanctionAlertComposer';
export * from './ModtoolSanctionBanComposer';
export * from './ModtoolSanctionKickComposer';
export * from './ModtoolSanctionMuteComposer';
export * from './ModtoolSanctionTradelockComposer';
export * from './ModMuteMessageComposer';
export * from './ModToolPreferencesComposer';
export * from './ModToolSanctionComposer';
export * from './ModTradingLockMessageComposer';
export * from './PickIssuesMessageComposer';
export * from './ReleaseIssuesMessageComposer';

View File

@ -1,3 +1,4 @@
import { Nitro } from '../../../../../Nitro';
import { PatternMatchData } from './PatternMatchData';
export class IssueMessageData
@ -43,7 +44,7 @@ export class IssueMessageData
this._message = _arg_14;
this._chatRecordId = _arg_15;
this._patterns = _arg_16;
this._creationTimeInMilliseconds = 0; //getTimer();
this._creationTimeInMilliseconds = Nitro.instance.time; //getTimer()
}
public get issueId(): number