mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
Merge branch 'oobjectt-group-habbo-join-failed'
This commit is contained in:
commit
b49bbe2671
File diff suppressed because one or more lines are too long
@ -73,6 +73,7 @@ export class IncomingHeader
|
|||||||
public static GROUP_BADGE_PARTS = 2238;
|
public static GROUP_BADGE_PARTS = 2238;
|
||||||
public static GROUP_MEMBERSHIP_REQUESTED = 1180;
|
public static GROUP_MEMBERSHIP_REQUESTED = 1180;
|
||||||
public static GROUP_DETAILS_CHANGED = 1459;
|
public static GROUP_DETAILS_CHANGED = 1459;
|
||||||
|
public static GROUP_HABBO_JOIN_FAILED = 762;
|
||||||
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 { HabboGroupJoinFailedMessageParser } from '../../parser';
|
||||||
|
|
||||||
|
export class HabboGroupJoinFailedMessageEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, HabboGroupJoinFailedMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): HabboGroupJoinFailedMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as HabboGroupJoinFailedMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -5,6 +5,7 @@ export * from './GroupDetailsChangedMessageEvent';
|
|||||||
export * from './GroupMembershipRequestedMessageEvent';
|
export * from './GroupMembershipRequestedMessageEvent';
|
||||||
export * from './GuildMembershipsMessageEvent';
|
export * from './GuildMembershipsMessageEvent';
|
||||||
export * from './HabboGroupBadgesMessageEvent';
|
export * from './HabboGroupBadgesMessageEvent';
|
||||||
|
export * from './HabboGroupJoinFailedMessageEvent';
|
||||||
export * from './IgnoredUsersEvent';
|
export * from './IgnoredUsersEvent';
|
||||||
export * from './IgnoreResultEvent';
|
export * from './IgnoreResultEvent';
|
||||||
export * from './InClientLinkEvent';
|
export * from './InClientLinkEvent';
|
||||||
|
@ -0,0 +1,29 @@
|
|||||||
|
import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
|
||||||
|
|
||||||
|
export class HabboGroupJoinFailedMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
public static readonly INSUFFICIENT_SUBSCRIPTION_LEVEL: number = 4;
|
||||||
|
|
||||||
|
private _reason: number;
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
this._reason = -1;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
this._reason = wrapper.readInt();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get reason(): number
|
||||||
|
{
|
||||||
|
return this._reason;
|
||||||
|
}
|
||||||
|
}
|
@ -6,6 +6,7 @@ export * from './GroupMembershipRequestedMessageParser';
|
|||||||
export * from './GuildMembershipsMessageParser';
|
export * from './GuildMembershipsMessageParser';
|
||||||
export * from './HabboGroupBadgesMessageParser';
|
export * from './HabboGroupBadgesMessageParser';
|
||||||
export * from './HabboGroupEntryData';
|
export * from './HabboGroupEntryData';
|
||||||
|
export * from './HabboGroupJoinFailedMessageParser';
|
||||||
export * from './IgnoredUsersParser';
|
export * from './IgnoredUsersParser';
|
||||||
export * from './IgnoreResultParser';
|
export * from './IgnoreResultParser';
|
||||||
export * from './InClientLinkParser';
|
export * from './InClientLinkParser';
|
||||||
|
Loading…
Reference in New Issue
Block a user