Merge branch 'guild-edit-failed' of https://github.com/oobjectt/nitro-renderer into oobjectt-guild-edit-failed

This commit is contained in:
dank074 2022-12-26 00:49:40 -06:00
commit 86ede2fdcd
6 changed files with 52 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -74,6 +74,7 @@ export class IncomingHeader
public static GROUP_MEMBERSHIP_REQUESTED = 1180;
public static GROUP_DETAILS_CHANGED = 1459;
public static GROUP_HABBO_JOIN_FAILED = 762;
public static GUILD_EDIT_FAILED = 3988;
public static ITEM_DIMMER_SETTINGS = 2710;
public static ITEM_STACK_HELPER = 2816;
public static ITEM_WALL = 1369;

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../events';
import { GuildEditFailedMessageParser } from '../../parser';
export class GuildEditFailedMessageEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, GuildEditFailedMessageParser);
}
public getParser(): GuildEditFailedMessageParser
{
return this.parser as GuildEditFailedMessageParser;
}
}

View File

@ -3,6 +3,7 @@ export * from './ApproveNameMessageEvent';
export * from './data';
export * from './GroupDetailsChangedMessageEvent';
export * from './GroupMembershipRequestedMessageEvent';
export * from './GuildEditFailedMessageEvent';
export * from './GuildMembershipsMessageEvent';
export * from './HabboGroupBadgesMessageEvent';
export * from './HabboGroupJoinFailedMessageEvent';

View File

@ -0,0 +1,29 @@
import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
export class GuildEditFailedMessageParser implements IMessageParser
{
public static readonly INSUFFICIENT_SUBSCRIPTION_LEVEL: number = 2;
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;
}
}

View File

@ -3,6 +3,7 @@ export * from './ApproveNameResultParser';
export * from './data';
export * from './GroupDetailsChangedMessageParser';
export * from './GroupMembershipRequestedMessageParser';
export * from './GuildEditFailedMessageParser';
export * from './GuildMembershipsMessageParser';
export * from './HabboGroupBadgesMessageParser';
export * from './HabboGroupEntryData';