missed a message

This commit is contained in:
dank074 2021-10-20 23:02:20 -05:00
parent 80906ebc23
commit 80cb55ea2c
4 changed files with 20 additions and 1 deletions

View File

@ -90,7 +90,7 @@ import { MarketplaceItemStatsEvent } from './messages/incoming/marketplace/Marke
import { MarketplaceMakeOfferResult } from './messages/incoming/marketplace/MarketplaceMakeOfferResult';
import { MarketPlaceOffersEvent } from './messages/incoming/marketplace/MarketplaceOffersEvent';
import { MarketplaceOwnOffersEvent } from './messages/incoming/marketplace/MarketplaceOwnOffersEvent';
import { CfhChatlogEvent, IssueDeletedMessageEvent, IssueInfoMessageEvent, IssuePickFailedMessageEvent, ModeratorActionResultMessageEvent, ModeratorInitMessageEvent, ModeratorMessageEvent, ModeratorRoomInfoEvent, ModeratorUserInfoEvent, RoomChatlogEvent, RoomVisitsEvent, UserBannedMessageEvent, UserChatlogEvent } from './messages/incoming/moderation';
import { CfhChatlogEvent, IssueDeletedMessageEvent, IssueInfoMessageEvent, IssuePickFailedMessageEvent, ModeratorActionResultMessageEvent, ModeratorInitMessageEvent, ModeratorMessageEvent, ModeratorRoomInfoEvent, ModeratorToolPreferencesEvent, ModeratorUserInfoEvent, RoomChatlogEvent, RoomVisitsEvent, UserBannedMessageEvent, UserChatlogEvent } from './messages/incoming/moderation';
import { ModeratorCautionEvent } from './messages/incoming/moderation/ModeratorCautionEvent';
import { NavigatorCategoriesEvent } from './messages/incoming/navigator/NavigatorCategoriesEvent';
import { NavigatorCollapsedEvent } from './messages/incoming/navigator/NavigatorCollapsedEvent';
@ -669,6 +669,7 @@ export class NitroMessages implements IMessageConfiguration
this._events.set(IncomingHeader.ISSUE_PICK_FAILED, IssuePickFailedMessageEvent);
this._events.set(IncomingHeader.MODERATOR_ACTION_RESULT, ModeratorActionResultMessageEvent);
this._events.set(IncomingHeader.MODERATOR_MESSAGE, ModeratorMessageEvent);
this._events.set(IncomingHeader.MODERATOR_TOOL_PREFERENCES, ModeratorToolPreferencesEvent);
// MYSTERY BOX
this._events.set(IncomingHeader.MYSTERY_BOX_KEYS, MysteryBoxKeysEvent);

View File

@ -221,6 +221,7 @@ export class IncomingHeader
public static ISSUE_INFO = 3609;
public static ISSUE_PICK_FAILED = 3150;
public static CFH_CHATLOG = 607;
public static MODERATOR_TOOL_PREFERENCES = 1576;
public static LOVELOCK_FURNI_START = 3753;
public static LOVELOCK_FURNI_FRIEND_COMFIRMED = 382;
public static LOVELOCK_FURNI_FINISHED = 770;

View File

@ -0,0 +1,16 @@
import { ModeratorToolPreferencesMessageParser } from '../..';
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
export class ModeratorToolPreferencesEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, ModeratorToolPreferencesMessageParser);
}
public getParser(): ModeratorToolPreferencesMessageParser
{
return this.parser as ModeratorToolPreferencesMessageParser;
}
}

View File

@ -11,6 +11,7 @@ export * from './ModeratorCautionEvent';
export * from './ModeratorInitMessageEvent';
export * from './ModeratorMessageEvent';
export * from './ModeratorRoomInfoEvent';
export * from './ModeratorToolPreferencesEvent';
export * from './ModeratorUserInfoData';
export * from './ModeratorUserInfoEvent';
export * from './ModRoomData';