mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-02-17 02:22:36 +01:00
SnowStormOnStageEndingEvent and SnowStormOnStageEndingComposer added
This commit is contained in:
parent
354f72c9c5
commit
2ea2b061b2
File diff suppressed because one or more lines are too long
@ -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;
|
||||
}
|
||||
|
@ -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';
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
export * from './SnowStormOnStageEndingEvent';
|
@ -0,0 +1 @@
|
||||
export * from './_Str_336';
|
@ -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;
|
||||
}
|
||||
|
@ -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';
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
export * from './SnowStormOnStageEndingComposer';
|
@ -0,0 +1 @@
|
||||
export * from './_Str_400';
|
@ -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';
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
export * from './SnowStormOnStageEndingParser';
|
1
src/nitro/communication/messages/parser/snowwar/index.ts
Normal file
1
src/nitro/communication/messages/parser/snowwar/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './_Str_277';
|
Loading…
x
Reference in New Issue
Block a user