mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-22 23:50:52 +01:00
Merge branch 'rentable-space-rent-ok' of https://github.com/oobjectt/nitro-renderer into oobjectt-rentable-space-rent-ok
This commit is contained in:
commit
3f52130a41
File diff suppressed because one or more lines are too long
@ -439,4 +439,5 @@ export class IncomingHeader
|
|||||||
public static WELCOME_GIFT_STATUS = 2707;
|
public static WELCOME_GIFT_STATUS = 2707;
|
||||||
public static HANDSHAKE_INIT_DIFFIE = 1347;
|
public static HANDSHAKE_INIT_DIFFIE = 1347;
|
||||||
public static HANDSHAKE_COMPLETE_DIFFIE = 3885;
|
public static HANDSHAKE_COMPLETE_DIFFIE = 3885;
|
||||||
|
public static RENTABLE_SPACE_RENT_OK = 2046;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../../api';
|
||||||
|
import { MessageEvent } from '../../../../../../events';
|
||||||
|
import { RentableSpaceRentOkMessageParser } from '../../../parser';
|
||||||
|
|
||||||
|
export class RentableSpaceRentOkMessageEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, RentableSpaceRentOkMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): RentableSpaceRentOkMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as RentableSpaceRentOkMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -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 './RentableSpaceRentOkMessageEvent';
|
||||||
export * from './RequestSpamWallPostItMessageEvent';
|
export * from './RequestSpamWallPostItMessageEvent';
|
||||||
export * from './RoomDimmerPresetsMessageEvent';
|
export * from './RoomDimmerPresetsMessageEvent';
|
||||||
export * from './RoomMessageNotificationMessageEvent';
|
export * from './RoomMessageNotificationMessageEvent';
|
||||||
|
@ -0,0 +1,25 @@
|
|||||||
|
import { IMessageDataWrapper, IMessageParser } from '../../../../../../api';
|
||||||
|
|
||||||
|
export class RentableSpaceRentOkMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
private _expiryTime: number;
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
this._expiryTime = wrapper.readInt();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get expiryTime(): number
|
||||||
|
{
|
||||||
|
return this._expiryTime;
|
||||||
|
}
|
||||||
|
}
|
@ -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 './RentableSpaceRentOkMessageParser';
|
||||||
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