mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +01:00
changed more packet names
This commit is contained in:
parent
8298c2c696
commit
56bd166875
@ -92,8 +92,8 @@ import { MarketPlaceOffersEvent } from './messages/incoming/marketplace/Marketpl
|
||||
import { MarketplaceOwnOffersEvent } from './messages/incoming/marketplace/MarketplaceOwnOffersEvent';
|
||||
import { UserBannedMessageEvent } from './messages/incoming/moderation';
|
||||
import { ModeratorCautionEvent } from './messages/incoming/moderation/ModeratorCautionEvent';
|
||||
import { ModeratorInitMessageEvent } from './messages/incoming/modtool/ModeratorInitMessageEvent';
|
||||
import { ModtoolCallForHelpTopicsEvent } from './messages/incoming/modtool/ModtoolCallForHelpTopicsEvent';
|
||||
import { ModtoolMainEvent } from './messages/incoming/modtool/ModtoolMainEvent';
|
||||
import { ModtoolReceivedRoomsUserEvent } from './messages/incoming/modtool/ModtoolReceivedRoomsUserEvent';
|
||||
import { ModtoolRoomChatlogEvent } from './messages/incoming/modtool/ModtoolRoomChatlogEvent';
|
||||
import { ModtoolRoomInfoEvent } from './messages/incoming/modtool/ModtoolRoomInfoEvent';
|
||||
@ -324,7 +324,7 @@ import { GetPromoArticlesComposer } from './messages/outgoing/landingview/GetPro
|
||||
import { CommunityGoalVoteMessageComposer } from './messages/outgoing/landingview/votes/CommunityGoalVoteMessageComposer';
|
||||
import { ModerateRoomMessageComposer } from './messages/outgoing/modtool/ModerateRoomMessageComposer';
|
||||
import { ModeratorActionMessageComposer } from './messages/outgoing/modtool/ModeratorActionMessageComposer';
|
||||
import { ModtoolEventAlertComposer } from './messages/outgoing/modtool/ModtoolEventAlertComposer';
|
||||
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';
|
||||
@ -671,7 +671,7 @@ export class NitroMessages implements IMessageConfiguration
|
||||
this._events.set(IncomingHeader.MODTOOL_ROOM_CHATLOG, ModtoolRoomChatlogEvent);
|
||||
this._events.set(IncomingHeader.MODERATION_USER_INFO, ModtoolUserInfoEvent);
|
||||
this._events.set(IncomingHeader.MODERATION_TOPICS, ModtoolCallForHelpTopicsEvent);
|
||||
this._events.set(IncomingHeader.MODERATION_TOOL, ModtoolMainEvent);
|
||||
this._events.set(IncomingHeader.MODERATION_TOOL, ModeratorInitMessageEvent);
|
||||
this._events.set(IncomingHeader.MODTOOL_VISITED_ROOMS_USER, ModtoolReceivedRoomsUserEvent);
|
||||
|
||||
// MYSTERY BOX
|
||||
@ -1228,7 +1228,7 @@ export class NitroMessages implements IMessageConfiguration
|
||||
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_ALERTEVENT, ModtoolEventAlertComposer);
|
||||
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_ROOM_ALERT, ModeratorActionMessageComposer);
|
||||
|
@ -0,0 +1,16 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { ModeratorInitMessageParser } from '../../parser/modtool/ModeratorInitMessageParser';
|
||||
|
||||
export class ModeratorInitMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, ModeratorInitMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): ModeratorInitMessageParser
|
||||
{
|
||||
return this.parser as ModeratorInitMessageParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { ModtoolMainParser } from '../../parser/modtool/ModtoolMainParser';
|
||||
|
||||
export class ModtoolMainEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, ModtoolMainParser);
|
||||
}
|
||||
|
||||
public getParser(): ModtoolMainParser
|
||||
{
|
||||
return this.parser as ModtoolMainParser;
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
export * from './ModeratorInitMessageEvent';
|
||||
export * from './ModtoolCallForHelpTopicsEvent';
|
||||
export * from './ModtoolMainEvent';
|
||||
export * from './ModtoolReceivedRoomsUserEvent';
|
||||
export * from './ModtoolRoomChatlogEvent';
|
||||
export * from './ModtoolRoomInfoEvent';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class ModtoolEventAlertComposer implements IMessageComposer<any>
|
||||
export class ModMessageMessageComposer implements IMessageComposer<any>
|
||||
{
|
||||
private _data: any[] = [];
|
||||
|
||||
@ -8,6 +8,8 @@ export class ModtoolEventAlertComposer implements IMessageComposer<any>
|
||||
{
|
||||
this._data.push(k);
|
||||
this._data.push(arg2);
|
||||
this._data.push('');
|
||||
this._data.push('');
|
||||
this._data.push(arg3);
|
||||
if(arg4 != -1)
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
export * from './ModerateRoomMessageComposer';
|
||||
export * from './ModeratorActionMessageComposer';
|
||||
export * from './ModtoolEventAlertComposer';
|
||||
export * from './ModMessageMessageComposer';
|
||||
export * from './ModtoolRequestRoomChatlogComposer';
|
||||
export * from './ModtoolRequestRoomInfoComposer';
|
||||
export * from './ModtoolRequestUserChatlogComposer';
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '../../../../../core';
|
||||
import { ModeratorInitData } from './utils/ModeratorInitData';
|
||||
|
||||
export class ModtoolMainParser implements IMessageParser
|
||||
export class ModeratorInitMessageParser implements IMessageParser
|
||||
{
|
||||
private _data: ModeratorInitData = null;
|
||||
public flush(): boolean
|
@ -1,5 +1,5 @@
|
||||
export * from './ModeratorInitMessageParser';
|
||||
export * from './ModtoolCFHTopicsParser';
|
||||
export * from './ModtoolMainParser';
|
||||
export * from './ModtoolRoomChatlogParser';
|
||||
export * from './ModtoolRoomInfoParser';
|
||||
export * from './ModtoolRoomUsersParser';
|
||||
|
Loading…
Reference in New Issue
Block a user