Merge branch 'rentable-space-rent-failed' of https://github.com/oobjectt/nitro-renderer into oobjectt-rentable-space-rent-failed

This commit is contained in:
dank074 2023-01-03 02:35:05 -06:00
commit c5a31384ef
6 changed files with 46 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -441,4 +441,5 @@ export class IncomingHeader
public static HANDSHAKE_COMPLETE_DIFFIE = 3885; public static HANDSHAKE_COMPLETE_DIFFIE = 3885;
public static RENTABLE_SPACE_RENT_OK = 2046; public static RENTABLE_SPACE_RENT_OK = 2046;
public static RENTABLE_SPACE_STATUS = 3559; public static RENTABLE_SPACE_STATUS = 3559;
public static RENTABLE_SPACE_RENT_FAILED = 1868;
} }

View File

@ -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;
}
}

View File

@ -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 './RentableSpaceRentFailedMessageEvent';
export * from './RentableSpaceRentOkMessageEvent'; export * from './RentableSpaceRentOkMessageEvent';
export * from './RentableSpaceStatusMessageEvent'; export * from './RentableSpaceStatusMessageEvent';
export * from './RequestSpamWallPostItMessageEvent'; export * from './RequestSpamWallPostItMessageEvent';

View File

@ -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;
}
}

View File

@ -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 './RentableSpaceRentFailedMessageParser';
export * from './RentableSpaceRentOkMessageParser'; export * from './RentableSpaceRentOkMessageParser';
export * from './RentableSpaceStatusMessageParser'; export * from './RentableSpaceStatusMessageParser';
export * from './RequestSpamWallPostItMessageParser'; export * from './RequestSpamWallPostItMessageParser';