mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
#28 - FurniRentOrBuyoutOfferMessageEvent added
This commit is contained in:
parent
26741b78a7
commit
690f4445a9
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_FURNI_RENT_OR_BUYOUT_OFFER = 35;
|
||||
}
|
||||
|
@ -0,0 +1,16 @@
|
||||
import { IMessageEvent } from '../../../../../../api';
|
||||
import { MessageEvent } from '../../../../../../events';
|
||||
import { FurniRentOrBuyoutOfferMessageParser } from '../../../parser';
|
||||
|
||||
export class FurniRentOrBuyoutOfferMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, FurniRentOrBuyoutOfferMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): FurniRentOrBuyoutOfferMessageParser
|
||||
{
|
||||
return this.parser as FurniRentOrBuyoutOfferMessageParser;
|
||||
}
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
export * from './CustomUserNotificationMessageEvent';
|
||||
export * from './DiceValueMessageEvent';
|
||||
export * from './floor';
|
||||
export * from './FurniRentOrBuyoutOfferMessageEvent';
|
||||
export * from './FurnitureAliasesEvent';
|
||||
export * from './FurnitureDataEvent';
|
||||
export * from './FurnitureStackHeightEvent';
|
||||
|
@ -0,0 +1,67 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '../../../../../../api';
|
||||
|
||||
export class FurniRentOrBuyoutOfferMessageParser implements IMessageParser
|
||||
{
|
||||
private _Str_4167: boolean;
|
||||
private _Str_6880: string;
|
||||
private _buyout: boolean;
|
||||
private _priceInCredits: number;
|
||||
private _priceInActivityPoints: number;
|
||||
private _activityPointType: number;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._Str_4167 = false;
|
||||
this._Str_6880 = null;
|
||||
this._buyout = false;
|
||||
this._priceInCredits = -1;
|
||||
this._priceInActivityPoints = -1;
|
||||
this._activityPointType = -1;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
this._Str_4167 = wrapper.readBoolean();
|
||||
this._Str_6880 = wrapper.readString();
|
||||
this._buyout = wrapper.readBoolean();
|
||||
this._priceInCredits = wrapper.readInt();
|
||||
this._priceInActivityPoints = wrapper.readInt();
|
||||
this._activityPointType = wrapper.readInt();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public get isWallItem(): boolean
|
||||
{
|
||||
return this._Str_4167;
|
||||
}
|
||||
|
||||
public get _Str_17878(): string
|
||||
{
|
||||
return this._Str_6880;
|
||||
}
|
||||
|
||||
public get buyout(): boolean
|
||||
{
|
||||
return this._buyout;
|
||||
}
|
||||
|
||||
public get priceInCredits(): number
|
||||
{
|
||||
return this._priceInCredits;
|
||||
}
|
||||
|
||||
public get priceInActivityPoints(): number
|
||||
{
|
||||
return this._priceInActivityPoints;
|
||||
}
|
||||
|
||||
public get activityPointType(): number
|
||||
{
|
||||
return this._activityPointType;
|
||||
}
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
export * from './CustomUserNotificationMessageParser';
|
||||
export * from './DiceValueMessageParser';
|
||||
export * from './floor';
|
||||
export * from './FurniRentOrBuyoutOfferMessageParser';
|
||||
export * from './FurnitureAliasesParser';
|
||||
export * from './FurnitureDataParser';
|
||||
export * from './FurnitureStackHeightParser';
|
||||
|
Loading…
Reference in New Issue
Block a user