mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
Merge branch 'oobjectt-guild-member-mgmt-failed'
This commit is contained in:
commit
0afcba2e18
File diff suppressed because one or more lines are too long
@ -75,6 +75,7 @@ export class IncomingHeader
|
|||||||
public static GROUP_DETAILS_CHANGED = 1459;
|
public static GROUP_DETAILS_CHANGED = 1459;
|
||||||
public static GROUP_HABBO_JOIN_FAILED = 762;
|
public static GROUP_HABBO_JOIN_FAILED = 762;
|
||||||
public static GUILD_EDIT_FAILED = 3988;
|
public static GUILD_EDIT_FAILED = 3988;
|
||||||
|
public static GUILD_MEMBER_MGMT_FAILED = 818;
|
||||||
public static ITEM_DIMMER_SETTINGS = 2710;
|
public static ITEM_DIMMER_SETTINGS = 2710;
|
||||||
public static ITEM_STACK_HELPER = 2816;
|
public static ITEM_STACK_HELPER = 2816;
|
||||||
public static ITEM_WALL = 1369;
|
public static ITEM_WALL = 1369;
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../api';
|
||||||
|
import { MessageEvent } from '../../../../../events';
|
||||||
|
import { GuildMemberMgmtFailedMessageParser } from '../../parser';
|
||||||
|
|
||||||
|
export class GuildMemberMgmtFailedMessageEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, GuildMemberMgmtFailedMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): GuildMemberMgmtFailedMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as GuildMemberMgmtFailedMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -4,6 +4,7 @@ export * from './data';
|
|||||||
export * from './GroupDetailsChangedMessageEvent';
|
export * from './GroupDetailsChangedMessageEvent';
|
||||||
export * from './GroupMembershipRequestedMessageEvent';
|
export * from './GroupMembershipRequestedMessageEvent';
|
||||||
export * from './GuildEditFailedMessageEvent';
|
export * from './GuildEditFailedMessageEvent';
|
||||||
|
export * from './GuildMemberMgmtFailedMessageEvent';
|
||||||
export * from './GuildMembershipsMessageEvent';
|
export * from './GuildMembershipsMessageEvent';
|
||||||
export * from './HabboGroupBadgesMessageEvent';
|
export * from './HabboGroupBadgesMessageEvent';
|
||||||
export * from './HabboGroupJoinFailedMessageEvent';
|
export * from './HabboGroupJoinFailedMessageEvent';
|
||||||
|
@ -0,0 +1,35 @@
|
|||||||
|
import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
|
||||||
|
|
||||||
|
export class GuildMemberMgmtFailedMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
private _guildId: number;
|
||||||
|
private _reason: number;
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
this._guildId = -1;
|
||||||
|
this._reason = -1;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
this._guildId = wrapper.readInt();
|
||||||
|
this._reason = wrapper.readInt();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get guildId(): number
|
||||||
|
{
|
||||||
|
return this._guildId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get reason(): number
|
||||||
|
{
|
||||||
|
return this._reason;
|
||||||
|
}
|
||||||
|
}
|
@ -4,6 +4,7 @@ export * from './data';
|
|||||||
export * from './GroupDetailsChangedMessageParser';
|
export * from './GroupDetailsChangedMessageParser';
|
||||||
export * from './GroupMembershipRequestedMessageParser';
|
export * from './GroupMembershipRequestedMessageParser';
|
||||||
export * from './GuildEditFailedMessageParser';
|
export * from './GuildEditFailedMessageParser';
|
||||||
|
export * from './GuildMemberMgmtFailedMessageParser';
|
||||||
export * from './GuildMembershipsMessageParser';
|
export * from './GuildMembershipsMessageParser';
|
||||||
export * from './HabboGroupBadgesMessageParser';
|
export * from './HabboGroupBadgesMessageParser';
|
||||||
export * from './HabboGroupEntryData';
|
export * from './HabboGroupEntryData';
|
||||||
|
Loading…
Reference in New Issue
Block a user