mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
#28 - RentableSpaceStatusMessageEvent added
This commit is contained in:
parent
26741b78a7
commit
4b09db7ee2
File diff suppressed because one or more lines are too long
@ -414,4 +414,5 @@ export class IncomingHeader
|
|||||||
public static SHOW_ENFORCE_ROOM_CATEGORY = 3896;
|
public static SHOW_ENFORCE_ROOM_CATEGORY = 3896;
|
||||||
public static CUSTOM_USER_NOTIFICATION = 909;
|
public static CUSTOM_USER_NOTIFICATION = 909;
|
||||||
public static NEW_USER_EXPERIENCE_GIFT_OFFER = 3575;
|
public static NEW_USER_EXPERIENCE_GIFT_OFFER = 3575;
|
||||||
|
public static RENTABLE_SPACE_STATUS = 3559;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../../api';
|
||||||
|
import { MessageEvent } from '../../../../../../events';
|
||||||
|
import { RentableSpaceStatusMessageParser } from '../../../parser';
|
||||||
|
|
||||||
|
export class RentableSpaceStatusMessageEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, RentableSpaceStatusMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): RentableSpaceStatusMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as RentableSpaceStatusMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -10,6 +10,7 @@ export * from './LoveLockFurniFinishedEvent';
|
|||||||
export * from './LoveLockFurniFriendConfirmedEvent';
|
export * from './LoveLockFurniFriendConfirmedEvent';
|
||||||
export * from './LoveLockFurniStartEvent';
|
export * from './LoveLockFurniStartEvent';
|
||||||
export * from './OneWayDoorStatusMessageEvent';
|
export * from './OneWayDoorStatusMessageEvent';
|
||||||
|
export * from './RentableSpaceStatusMessageEvent';
|
||||||
export * from './RequestSpamWallPostItMessageEvent';
|
export * from './RequestSpamWallPostItMessageEvent';
|
||||||
export * from './RoomDimmerPresetsMessageEvent';
|
export * from './RoomDimmerPresetsMessageEvent';
|
||||||
export * from './wall';
|
export * from './wall';
|
||||||
|
@ -0,0 +1,81 @@
|
|||||||
|
import { IMessageDataWrapper, IMessageParser } from '../../../../../../api';
|
||||||
|
|
||||||
|
export class RentableSpaceStatusMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
private _Str_16670: boolean;
|
||||||
|
private _renterId: number;
|
||||||
|
private _Str_18360: string;
|
||||||
|
private _Str_20575: boolean;
|
||||||
|
private _Str_16491: number;
|
||||||
|
private _Str_22009: number;
|
||||||
|
private _price: number;
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
this._Str_16670 = false;
|
||||||
|
this._renterId = -1;
|
||||||
|
this._Str_18360 = null;
|
||||||
|
this._Str_20575 = false;
|
||||||
|
this._Str_16491 = -1;
|
||||||
|
this._Str_22009 = -1;
|
||||||
|
this._price = -1;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
this._Str_16670 = wrapper.readBoolean();
|
||||||
|
this._Str_16491 = wrapper.readInt();
|
||||||
|
this._Str_20575 = (this._Str_16491 === 0);
|
||||||
|
this._renterId = wrapper.readInt();
|
||||||
|
this._Str_18360 = wrapper.readString();
|
||||||
|
this._Str_22009 = wrapper.readInt();
|
||||||
|
this._price = wrapper.readInt();
|
||||||
|
|
||||||
|
if(!this._Str_16670)
|
||||||
|
{
|
||||||
|
this._renterId = -1;
|
||||||
|
this._Str_18360 = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get _Str_22736(): boolean
|
||||||
|
{
|
||||||
|
return this._Str_16670;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get renterId(): number
|
||||||
|
{
|
||||||
|
return this._renterId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get _Str_23275(): string
|
||||||
|
{
|
||||||
|
return this._Str_18360;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get _Str_23603(): boolean
|
||||||
|
{
|
||||||
|
return this._Str_20575;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get price(): number
|
||||||
|
{
|
||||||
|
return this._price;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get _Str_24083(): number
|
||||||
|
{
|
||||||
|
return this._Str_22009;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get _Str_25070(): number
|
||||||
|
{
|
||||||
|
return this._Str_16491;
|
||||||
|
}
|
||||||
|
}
|
@ -10,6 +10,7 @@ export * from './LoveLockFurniFinishedParser';
|
|||||||
export * from './LoveLockFurniFriendConfirmedParser';
|
export * from './LoveLockFurniFriendConfirmedParser';
|
||||||
export * from './LoveLockFurniStartParser';
|
export * from './LoveLockFurniStartParser';
|
||||||
export * from './OneWayDoorStatusMessageParser';
|
export * from './OneWayDoorStatusMessageParser';
|
||||||
|
export * from './RentableSpaceStatusMessageParser';
|
||||||
export * from './RequestSpamWallPostItMessageParser';
|
export * from './RequestSpamWallPostItMessageParser';
|
||||||
export * from './RoomDimmerPresetsMessageData';
|
export * from './RoomDimmerPresetsMessageData';
|
||||||
export * from './RoomDimmerPresetsMessageParser';
|
export * from './RoomDimmerPresetsMessageParser';
|
||||||
|
Loading…
Reference in New Issue
Block a user