mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +01:00
Add HabboGroupDeactivatedMessageEvent
This commit is contained in:
parent
92ff5668e9
commit
dce98c249f
@ -49,6 +49,7 @@ import { GroupInformationEvent } from './messages/incoming/group/GroupInformatio
|
|||||||
import { GroupMembersEvent } from './messages/incoming/group/GroupMembersEvent';
|
import { GroupMembersEvent } from './messages/incoming/group/GroupMembersEvent';
|
||||||
import { GroupPurchasedEvent } from './messages/incoming/group/GroupPurchasedEvent';
|
import { GroupPurchasedEvent } from './messages/incoming/group/GroupPurchasedEvent';
|
||||||
import { GroupSettingsEvent } from './messages/incoming/group/GroupSettingsEvent';
|
import { GroupSettingsEvent } from './messages/incoming/group/GroupSettingsEvent';
|
||||||
|
import { HabboGroupDeactivatedMessageEvent } from './messages/incoming/group/HabboGroupDeactivatedMessageEvent';
|
||||||
import { CallForHelpDisabledNotifyMessageEvent } from './messages/incoming/help/CallForHelpDisabledNotifyMessageEvent';
|
import { CallForHelpDisabledNotifyMessageEvent } from './messages/incoming/help/CallForHelpDisabledNotifyMessageEvent';
|
||||||
import { CallForHelpResultMessageEvent } from './messages/incoming/help/CallForHelpResultMessageEvent';
|
import { CallForHelpResultMessageEvent } from './messages/incoming/help/CallForHelpResultMessageEvent';
|
||||||
import { GuideReportingStatusMessageEvent } from './messages/incoming/help/GuideReportingStatusMessageEvent';
|
import { GuideReportingStatusMessageEvent } from './messages/incoming/help/GuideReportingStatusMessageEvent';
|
||||||
@ -604,6 +605,7 @@ export class NitroMessages implements IMessageConfiguration
|
|||||||
this._events.set(IncomingHeader.GROUP_SETTINGS, GroupSettingsEvent);
|
this._events.set(IncomingHeader.GROUP_SETTINGS, GroupSettingsEvent);
|
||||||
this._events.set(IncomingHeader.GROUP_PURCHASED, GroupPurchasedEvent);
|
this._events.set(IncomingHeader.GROUP_PURCHASED, GroupPurchasedEvent);
|
||||||
this._events.set(IncomingHeader.GROUP_BADGES, GroupBadgesEvent);
|
this._events.set(IncomingHeader.GROUP_BADGES, GroupBadgesEvent);
|
||||||
|
this._events.set(IncomingHeader.GROUP_DEACTIVATE, HabboGroupDeactivatedMessageEvent);
|
||||||
|
|
||||||
// HELP
|
// HELP
|
||||||
this._events.set(IncomingHeader.CFH_DISABLED_NOTIFY, CallForHelpDisabledNotifyMessageEvent);
|
this._events.set(IncomingHeader.CFH_DISABLED_NOTIFY, CallForHelpDisabledNotifyMessageEvent);
|
||||||
|
@ -364,4 +364,5 @@ export class IncomingHeader
|
|||||||
public static CHAT_REVIEW_SESSION_VOTING_STATUS = 1829;
|
public static CHAT_REVIEW_SESSION_VOTING_STATUS = 1829;
|
||||||
public static SCR_SEND_KICKBACK_INFO = 3277;
|
public static SCR_SEND_KICKBACK_INFO = 3277;
|
||||||
public static PET_STATUS = 1907;
|
public static PET_STATUS = 1907;
|
||||||
|
public static GROUP_DEACTIVATE = 3129;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { HabboGroupDeactivatedMessageParser } from '../../parser/group/HabboGroupDeactivatedMessageParser';
|
||||||
|
|
||||||
|
export class HabboGroupDeactivatedMessageEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, HabboGroupDeactivatedMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): HabboGroupDeactivatedMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as HabboGroupDeactivatedMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -6,3 +6,4 @@ export * from './GroupInformationEvent';
|
|||||||
export * from './GroupMembersEvent';
|
export * from './GroupMembersEvent';
|
||||||
export * from './GroupPurchasedEvent';
|
export * from './GroupPurchasedEvent';
|
||||||
export * from './GroupSettingsEvent';
|
export * from './GroupSettingsEvent';
|
||||||
|
export * from './HabboGroupDeactivatedMessageEvent';
|
||||||
|
@ -0,0 +1,24 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
|
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
|
||||||
|
|
||||||
|
export class HabboGroupDeactivatedMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
private _groupId: number;
|
||||||
|
|
||||||
|
public flush():boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper):boolean
|
||||||
|
{
|
||||||
|
this._groupId = wrapper.readInt();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get groupId(): number
|
||||||
|
{
|
||||||
|
return this._groupId;
|
||||||
|
}
|
||||||
|
}
|
@ -6,4 +6,5 @@ export * from './GroupInformationParser';
|
|||||||
export * from './GroupMembersParser';
|
export * from './GroupMembersParser';
|
||||||
export * from './GroupPurchasedParser';
|
export * from './GroupPurchasedParser';
|
||||||
export * from './GroupSettingsParser';
|
export * from './GroupSettingsParser';
|
||||||
|
export * from './HabboGroupDeactivatedMessageParser';
|
||||||
export * from './utils';
|
export * from './utils';
|
||||||
|
Loading…
Reference in New Issue
Block a user