mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
#28 - RentableSpaceRentFailedMessageEvent added
This commit is contained in:
parent
26741b78a7
commit
14831fb6bf
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 CUSTOM_USER_NOTIFICATION = 909;
|
||||
public static NEW_USER_EXPERIENCE_GIFT_OFFER = 3575;
|
||||
public static RENTABLE_SPACE_RENT_FAILED = 1868;
|
||||
}
|
||||
|
@ -0,0 +1,16 @@
|
||||
import { IMessageEvent } from '../../../../../../api';
|
||||
import { MessageEvent } from '../../../../../../events';
|
||||
import { RentableSpaceRentFailedMessageParser } from '../../../parser';
|
||||
|
||||
export class RentableSpaceRentFailedMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, RentableSpaceRentFailedMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): RentableSpaceRentFailedMessageParser
|
||||
{
|
||||
return this.parser as RentableSpaceRentFailedMessageParser;
|
||||
}
|
||||
}
|
@ -10,6 +10,7 @@ export * from './LoveLockFurniFinishedEvent';
|
||||
export * from './LoveLockFurniFriendConfirmedEvent';
|
||||
export * from './LoveLockFurniStartEvent';
|
||||
export * from './OneWayDoorStatusMessageEvent';
|
||||
export * from './RentableSpaceRentFailedMessageEvent';
|
||||
export * from './RequestSpamWallPostItMessageEvent';
|
||||
export * from './RoomDimmerPresetsMessageEvent';
|
||||
export * from './wall';
|
||||
|
@ -0,0 +1,25 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '../../../../../../api';
|
||||
|
||||
export class RentableSpaceRentFailedMessageParser implements IMessageParser
|
||||
{
|
||||
private _reason: number;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
this._reason = wrapper.readInt();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public get reason(): number
|
||||
{
|
||||
return this._reason;
|
||||
}
|
||||
}
|
@ -10,6 +10,7 @@ export * from './LoveLockFurniFinishedParser';
|
||||
export * from './LoveLockFurniFriendConfirmedParser';
|
||||
export * from './LoveLockFurniStartParser';
|
||||
export * from './OneWayDoorStatusMessageParser';
|
||||
export * from './RentableSpaceRentFailedMessageParser';
|
||||
export * from './RequestSpamWallPostItMessageParser';
|
||||
export * from './RoomDimmerPresetsMessageData';
|
||||
export * from './RoomDimmerPresetsMessageParser';
|
||||
|
Loading…
Reference in New Issue
Block a user