SnowStormOnStageEndingEvent and SnowStormOnStageEndingComposer added

This commit is contained in:
oobjectt 2023-01-18 21:05:03 +01:00
parent 354f72c9c5
commit 2ea2b061b2
15 changed files with 82 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -464,4 +464,5 @@ export class IncomingHeader
public static WEEKLY_GAME2_LEADERBOARD = 2196;
public static RENTABLE_FURNI_RENT_OR_BUYOUT_OFFER = 35;
public static HANDSHAKE_IDENTITY_ACCOUNT = 3523;
public static SNOWSTORM_ON_STAGE_ENDING = 5025;
}

View File

@ -63,6 +63,7 @@ export * from './room/unit/chat';
export * from './roomevents';
export * from './roomsettings';
export * from './security';
export * from './snowwar';
export * from './sound';
export * from './talent';
export * from './user';

View File

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

View File

@ -0,0 +1 @@
export * from './SnowStormOnStageEndingEvent';

View File

@ -0,0 +1 @@
export * from './_Str_336';

View File

@ -467,4 +467,5 @@ export class OutgoingHeader
public static RENTABLE_EXTEND_RENT_OR_BUYOUT_STRIP_ITEM = 2115;
public static RENTABLE_EXTEND_RENT_OR_BUYOUT_FURNI = 1071;
public static RENTABLE_GET_RENT_OR_BUYOUT_OFFER = 2518;
public static SNOWSTORM_ON_STAGE_ENDING = 6011;
}

View File

@ -61,6 +61,7 @@ export * from './room/unit/chat';
export * from './roomdirectory';
export * from './roomevents';
export * from './roomsettings';
export * from './snowwar';
export * from './sound';
export * from './talent';
export * from './tracking';

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../../api';
export class SnowStormOnStageEndingComposer implements IMessageComposer<ConstructorParameters<typeof SnowStormOnStageEndingComposer>>
{
private _data: ConstructorParameters<typeof SnowStormOnStageEndingComposer>;
constructor(habboGameId: number)
{
this._data = [habboGameId];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1 @@
export * from './SnowStormOnStageEndingComposer';

View File

@ -0,0 +1 @@
export * from './_Str_400';

View File

@ -64,6 +64,7 @@ export * from './room/unit/chat';
export * from './roomevents';
export * from './roomsettings';
export * from './security';
export * from './snowwar';
export * from './sound';
export * from './talent';
export * from './user';

View File

@ -0,0 +1,27 @@
import { IMessageDataWrapper, IMessageParser } from '../../../../../../api';
export class SnowStormOnStageEndingParser implements IMessageParser
{
private _habboGameId: number;
public flush(): boolean
{
this._habboGameId = -1;
return true;
}
public parse(wrapper: IMessageDataWrapper): boolean
{
if(!wrapper) return false;
this._habboGameId = wrapper.readInt();
return true;
}
public get habboGameId(): number
{
return this._habboGameId;
}
}

View File

@ -0,0 +1 @@
export * from './SnowStormOnStageEndingParser';

View File

@ -0,0 +1 @@
export * from './_Str_277';