You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
🆙 added latest changes
This commit is contained in:
+6
-10
@@ -1,13 +1,8 @@
|
||||
import { IMessageDataWrapper } from '@nitrots/api';
|
||||
import { FurnitureType, IMessageDataWrapper } from '@nitrots/api';
|
||||
|
||||
export class CatalogPageMessageProductData
|
||||
{
|
||||
public static I: string = 'i';
|
||||
public static S: string = 's';
|
||||
public static E: string = 'e';
|
||||
public static B: string = 'b';
|
||||
|
||||
private _productType: string;
|
||||
private _productType: FurnitureType;
|
||||
private _furniClassId: number;
|
||||
private _extraParam: string;
|
||||
private _productCount: number;
|
||||
@@ -38,11 +33,11 @@ export class CatalogPageMessageProductData
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
this._productType = wrapper.readString();
|
||||
this._productType = wrapper.readString().toUpperCase() as FurnitureType;
|
||||
|
||||
switch(this._productType)
|
||||
{
|
||||
case CatalogPageMessageProductData.B:
|
||||
case FurnitureType.BADGE:
|
||||
this._extraParam = wrapper.readString();
|
||||
this._productCount = 1;
|
||||
return true;
|
||||
@@ -57,11 +52,12 @@ export class CatalogPageMessageProductData
|
||||
this._uniqueLimitedItemSeriesSize = wrapper.readInt();
|
||||
this._uniqueLimitedItemsLeft = wrapper.readInt();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public get productType(): string
|
||||
public get productType(): FurnitureType
|
||||
{
|
||||
return this._productType;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
import { IMessageDataWrapper } from '@nitrots/api';
|
||||
|
||||
export class AreaHideMessageData
|
||||
{
|
||||
private _furniId: number;
|
||||
private _on: boolean;
|
||||
private _rootX: number;
|
||||
private _rootY: number;
|
||||
private _width: number;
|
||||
private _length: number;
|
||||
private _invert: boolean;
|
||||
|
||||
constructor(wrapper: IMessageDataWrapper)
|
||||
{
|
||||
this._furniId = wrapper.readInt();
|
||||
this._on = wrapper.readBoolean();
|
||||
this._rootX = wrapper.readInt();
|
||||
this._rootY = wrapper.readInt();
|
||||
this._width = wrapper.readInt();
|
||||
this._length = wrapper.readInt();
|
||||
this._invert = wrapper.readBoolean();
|
||||
}
|
||||
|
||||
public get furniId(): number
|
||||
{
|
||||
return this._furniId;
|
||||
}
|
||||
|
||||
public get on(): boolean
|
||||
{
|
||||
return this._on;
|
||||
}
|
||||
|
||||
public get rootX(): number
|
||||
{
|
||||
return this._rootX;
|
||||
}
|
||||
|
||||
public get rootY(): number
|
||||
{
|
||||
return this._rootY;
|
||||
}
|
||||
|
||||
public get width(): number
|
||||
{
|
||||
return this._width;
|
||||
}
|
||||
|
||||
public get length(): number
|
||||
{
|
||||
return this._length;
|
||||
}
|
||||
|
||||
public get invert(): boolean
|
||||
{
|
||||
return this._invert;
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from './AreaHideMessageData';
|
||||
export * from './FavoriteMembershipUpdateMessageParser';
|
||||
export * from './ObjectData';
|
||||
export * from './ObjectsDataUpdateParser';
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '@nitrots/api';
|
||||
import { AreaHideMessageData } from '../engine';
|
||||
|
||||
export class AreaHideMessageParser implements IMessageParser
|
||||
{
|
||||
private _areaData: AreaHideMessageData;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._areaData = null;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
this._areaData = new AreaHideMessageData(wrapper);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public get areaData(): AreaHideMessageData
|
||||
{
|
||||
return this._areaData;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
export * from './AreaHideMessageParser';
|
||||
export * from './CustomUserNotificationMessageParser';
|
||||
export * from './DiceValueMessageParser';
|
||||
export * from './floor';
|
||||
export * from './FurniRentOrBuyoutOfferMessageParser';
|
||||
export * from './FurnitureAliasesParser';
|
||||
export * from './FurnitureDataParser';
|
||||
@@ -18,6 +18,7 @@ export * from './RequestSpamWallPostItMessageParser';
|
||||
export * from './RoomDimmerPresetsMessageData';
|
||||
export * from './RoomDimmerPresetsMessageParser';
|
||||
export * from './RoomMessageNotificationMessageParser';
|
||||
export * from './wall';
|
||||
export * from './WelcomeGiftStatusParser';
|
||||
export * from './floor';
|
||||
export * from './wall';
|
||||
export * from './youtube';
|
||||
|
||||
Reference in New Issue
Block a user