mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-27 01:40:52 +01:00
cleaned IFurnitureItemData
This commit is contained in:
parent
3f0062d3db
commit
d0754d22c4
@ -17,12 +17,12 @@
|
|||||||
this._type = k;
|
this._type = k;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_3882(): number
|
public get subType(): number
|
||||||
{
|
{
|
||||||
return this._subType;
|
return this._subType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public set _Str_3882(k: number)
|
public set subType(k: number)
|
||||||
{
|
{
|
||||||
this._subType = k;
|
this._subType = k;
|
||||||
}
|
}
|
||||||
@ -37,32 +37,32 @@
|
|||||||
this._duration = k;
|
this._duration = k;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_18572(): number
|
public get inactiveEffectsInInventory(): number
|
||||||
{
|
{
|
||||||
return this._inactiveEffectsInInventory;
|
return this._inactiveEffectsInInventory;
|
||||||
}
|
}
|
||||||
|
|
||||||
public set _Str_18572(k: number)
|
public set inactiveEffectsInInventory(k: number)
|
||||||
{
|
{
|
||||||
this._inactiveEffectsInInventory = k;
|
this._inactiveEffectsInInventory = k;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_12185(): number
|
public get secondsLeftIfActive(): number
|
||||||
{
|
{
|
||||||
return this._secondsLeftIfActive;
|
return this._secondsLeftIfActive;
|
||||||
}
|
}
|
||||||
|
|
||||||
public set _Str_12185(k: number)
|
public set secondsLeftIfActive(k: number)
|
||||||
{
|
{
|
||||||
this._secondsLeftIfActive = k;
|
this._secondsLeftIfActive = k;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_4010(): boolean
|
public get isPermanent(): boolean
|
||||||
{
|
{
|
||||||
return this._permanent;
|
return this._permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
public set _Str_4010(k: boolean)
|
public set isPermanent(k: boolean)
|
||||||
{
|
{
|
||||||
this._permanent = k;
|
this._permanent = k;
|
||||||
}
|
}
|
||||||
|
@ -15,14 +15,14 @@ export interface IFurnitureItemData
|
|||||||
secondsToExpiration: number;
|
secondsToExpiration: number;
|
||||||
flatId: number;
|
flatId: number;
|
||||||
slotId: string;
|
slotId: string;
|
||||||
_Str_3951: number;
|
songId: number;
|
||||||
_Str_2794: number;
|
extra: number;
|
||||||
rentable: boolean;
|
rentable: boolean;
|
||||||
isWallItem: boolean;
|
isWallItem: boolean;
|
||||||
hasRentPeriodStarted: boolean;
|
hasRentPeriodStarted: boolean;
|
||||||
_Str_10616: number;
|
expirationTimeStamp: number;
|
||||||
_Str_8932: number;
|
creationDay: number;
|
||||||
_Str_9050: number;
|
creationMonth: number;
|
||||||
_Str_9408: number;
|
creationYear: number;
|
||||||
_Str_19297: boolean;
|
isExternalImageFurni: boolean;
|
||||||
}
|
}
|
@ -4,9 +4,9 @@ import { IObjectData } from '../../../../../room/object/data/IObjectData';
|
|||||||
import { FurnitureDataParser } from '../../../parser/room/furniture/FurnitureDataParser';
|
import { FurnitureDataParser } from '../../../parser/room/furniture/FurnitureDataParser';
|
||||||
import { IFurnitureItemData } from '../furni/IFurnitureItemData';
|
import { IFurnitureItemData } from '../furni/IFurnitureItemData';
|
||||||
|
|
||||||
export class TradingListItem implements IFurnitureItemData
|
export class ItemDataStructure implements IFurnitureItemData
|
||||||
{
|
{
|
||||||
private _Str_5390: number;
|
private _expirationTimeStamp: number;
|
||||||
private _isWallItem: boolean;
|
private _isWallItem: boolean;
|
||||||
private _itemId: number;
|
private _itemId: number;
|
||||||
private _furniType: string;
|
private _furniType: string;
|
||||||
@ -14,13 +14,13 @@ export class TradingListItem implements IFurnitureItemData
|
|||||||
private _spriteId: number;
|
private _spriteId: number;
|
||||||
private _category: number;
|
private _category: number;
|
||||||
private _stuffData: IObjectData;
|
private _stuffData: IObjectData;
|
||||||
private _Str_3182: number;
|
private _extra: number;
|
||||||
private _secondsToExpiration: number;
|
private _secondsToExpiration: number;
|
||||||
private _Str_9291: number;
|
private _creationDay: number;
|
||||||
private _Str_8744: number;
|
private _creationMonth: number;
|
||||||
private _Str_9700: number;
|
private _creationYear: number;
|
||||||
private _isGroupable: boolean;
|
private _isGroupable: boolean;
|
||||||
private _Str_2808: number;
|
private _songId: number;
|
||||||
private _flatId: number;
|
private _flatId: number;
|
||||||
private _rentable: boolean;
|
private _rentable: boolean;
|
||||||
private _hasRentPeriodStarted: boolean;
|
private _hasRentPeriodStarted: boolean;
|
||||||
@ -35,12 +35,12 @@ export class TradingListItem implements IFurnitureItemData
|
|||||||
this._isGroupable = wrapper.readBoolean();
|
this._isGroupable = wrapper.readBoolean();
|
||||||
this._stuffData = FurnitureDataParser.parseObjectData(wrapper);
|
this._stuffData = FurnitureDataParser.parseObjectData(wrapper);
|
||||||
this._secondsToExpiration = -1;
|
this._secondsToExpiration = -1;
|
||||||
this._Str_5390 = Nitro.instance.time;
|
this._expirationTimeStamp = Nitro.instance.time;
|
||||||
this._hasRentPeriodStarted = false;
|
this._hasRentPeriodStarted = false;
|
||||||
this._Str_9291 = wrapper.readInt();
|
this._creationDay = wrapper.readInt();
|
||||||
this._Str_8744 = wrapper.readInt();
|
this._creationMonth = wrapper.readInt();
|
||||||
this._Str_9700 = wrapper.readInt();
|
this._creationYear = wrapper.readInt();
|
||||||
this._Str_3182 = ((this.furniType === 'S') ? wrapper.readInt() : -1);
|
this._extra = ((this.furniType === 'S') ? wrapper.readInt() : -1);
|
||||||
this._flatId = -1;
|
this._flatId = -1;
|
||||||
this._rentable = false;
|
this._rentable = false;
|
||||||
this._isWallItem = (this._furniType === 'I');
|
this._isWallItem = (this._furniType === 'I');
|
||||||
@ -76,9 +76,9 @@ export class TradingListItem implements IFurnitureItemData
|
|||||||
return this._stuffData;
|
return this._stuffData;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_2794(): number
|
public get extra(): number
|
||||||
{
|
{
|
||||||
return this._Str_3182;
|
return this._extra;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get secondsToExpiration(): number
|
public get secondsToExpiration(): number
|
||||||
@ -86,19 +86,19 @@ export class TradingListItem implements IFurnitureItemData
|
|||||||
return this._secondsToExpiration;
|
return this._secondsToExpiration;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_8932(): number
|
public get creationDay(): number
|
||||||
{
|
{
|
||||||
return this._Str_9291;
|
return this._creationDay;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_9050(): number
|
public get creationMonth(): number
|
||||||
{
|
{
|
||||||
return this._Str_8744;
|
return this._creationMonth;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_9408(): number
|
public get creationYear(): number
|
||||||
{
|
{
|
||||||
return this._Str_9700;
|
return this._creationYear;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get isGroupable(): boolean
|
public get isGroupable(): boolean
|
||||||
@ -106,9 +106,9 @@ export class TradingListItem implements IFurnitureItemData
|
|||||||
return this._isGroupable;
|
return this._isGroupable;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_3951(): number
|
public get songId(): number
|
||||||
{
|
{
|
||||||
return this._Str_3182;
|
return this._extra;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get flatId(): number
|
public get flatId(): number
|
||||||
@ -131,9 +131,9 @@ export class TradingListItem implements IFurnitureItemData
|
|||||||
return this._hasRentPeriodStarted;
|
return this._hasRentPeriodStarted;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_10616(): number
|
public get expirationTimeStamp(): number
|
||||||
{
|
{
|
||||||
return this._Str_5390;
|
return this._expirationTimeStamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get isRecycleable(): boolean
|
public get isRecycleable(): boolean
|
||||||
@ -156,7 +156,7 @@ export class TradingListItem implements IFurnitureItemData
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_19297(): boolean
|
public get isExternalImageFurni(): boolean
|
||||||
{
|
{
|
||||||
return (this._furniType.indexOf('external_image') !== -1);
|
return (this._furniType.indexOf('external_image') !== -1);
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
import { IMessageEvent } from '../../../../../../core/communication/messages/IMessageEvent';
|
import { IMessageEvent } from '../../../../../../core/communication/messages/IMessageEvent';
|
||||||
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
|
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
|
||||||
import { TradingListItemParser } from '../../../parser/inventory/trading/TradingListItemParser';
|
import { TradingListItemParser } from '../../../parser/inventory/trading/TradingListItemParser';
|
||||||
import { TradingListItem } from './TradingListItem';
|
import { ItemDataStructure } from './ItemDataStructure';
|
||||||
|
|
||||||
export class TradingListItemEvent extends MessageEvent implements IMessageEvent
|
export class TradingListItemEvent extends MessageEvent implements IMessageEvent
|
||||||
{
|
{
|
||||||
@ -40,12 +40,12 @@ export class TradingListItemEvent extends MessageEvent implements IMessageEvent
|
|||||||
return this.getParser()._Str_9138;
|
return this.getParser()._Str_9138;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_17841(): TradingListItem[]
|
public get _Str_17841(): ItemDataStructure[]
|
||||||
{
|
{
|
||||||
return this.getParser()._Str_17841;
|
return this.getParser()._Str_17841;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_17465(): TradingListItem[]
|
public get _Str_17465(): ItemDataStructure[]
|
||||||
{
|
{
|
||||||
return this.getParser()._Str_17465;
|
return this.getParser()._Str_17465;
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
|
export * from './ItemDataStructure';
|
||||||
export * from './TradingAcceptEvent';
|
export * from './TradingAcceptEvent';
|
||||||
export * from './TradingCloseEvent';
|
export * from './TradingCloseEvent';
|
||||||
export * from './TradingCompletedEvent';
|
export * from './TradingCompletedEvent';
|
||||||
export * from './TradingConfirmationEvent';
|
export * from './TradingConfirmationEvent';
|
||||||
export * from './TradingListItem';
|
|
||||||
export * from './TradingListItemEvent';
|
export * from './TradingListItemEvent';
|
||||||
export * from './TradingNotOpenEvent';
|
export * from './TradingNotOpenEvent';
|
||||||
export * from './TradingOpenEvent';
|
export * from './TradingOpenEvent';
|
||||||
|
@ -35,7 +35,7 @@ export class AvatarEffectAddedParser implements IMessageParser
|
|||||||
return this._type;
|
return this._type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_3882(): number
|
public get subType(): number
|
||||||
{
|
{
|
||||||
return this._subType;
|
return this._subType;
|
||||||
}
|
}
|
||||||
@ -45,7 +45,7 @@ export class AvatarEffectAddedParser implements IMessageParser
|
|||||||
return this._duration;
|
return this._duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_4010(): boolean
|
public get isPermanent(): boolean
|
||||||
{
|
{
|
||||||
return this._permanent;
|
return this._permanent;
|
||||||
}
|
}
|
||||||
|
@ -24,11 +24,11 @@ export class AvatarEffectsParser implements IMessageParser
|
|||||||
const effect = new AvatarEffect();
|
const effect = new AvatarEffect();
|
||||||
|
|
||||||
effect.type = wrapper.readInt();
|
effect.type = wrapper.readInt();
|
||||||
effect._Str_3882 = wrapper.readInt();
|
effect.subType = wrapper.readInt();
|
||||||
effect.duration = wrapper.readInt();
|
effect.duration = wrapper.readInt();
|
||||||
effect._Str_18572 = wrapper.readInt();
|
effect.inactiveEffectsInInventory = wrapper.readInt();
|
||||||
effect._Str_12185 = wrapper.readInt();
|
effect.secondsLeftIfActive = wrapper.readInt();
|
||||||
effect._Str_4010 = wrapper.readBoolean();
|
effect.isPermanent = wrapper.readBoolean();
|
||||||
|
|
||||||
this._effects.push(effect);
|
this._effects.push(effect);
|
||||||
|
|
||||||
|
@ -21,13 +21,13 @@ export class FurnitureListItemParser implements IFurnitureItemData
|
|||||||
private _tradable: boolean;
|
private _tradable: boolean;
|
||||||
private _sellable: boolean;
|
private _sellable: boolean;
|
||||||
private _secondsToExpiration: number;
|
private _secondsToExpiration: number;
|
||||||
private _Str_3182: number;
|
private _extra: number;
|
||||||
private _flatId: number;
|
private _flatId: number;
|
||||||
private _isWallItem: boolean;
|
private _isWallItem: boolean;
|
||||||
private _hasRentPeriodStarted: boolean;
|
private _hasRentPeriodStarted: boolean;
|
||||||
private _Str_5390: number;
|
private _expirationTimeStamp: number;
|
||||||
private _slotId: string;
|
private _slotId: string;
|
||||||
private _Str_2808: number;
|
private _songId: number;
|
||||||
|
|
||||||
constructor(wrapper: IMessageDataWrapper)
|
constructor(wrapper: IMessageDataWrapper)
|
||||||
{
|
{
|
||||||
@ -51,13 +51,13 @@ export class FurnitureListItemParser implements IFurnitureItemData
|
|||||||
this._tradable = false;
|
this._tradable = false;
|
||||||
this._sellable = false;
|
this._sellable = false;
|
||||||
this._secondsToExpiration = 0;
|
this._secondsToExpiration = 0;
|
||||||
this._Str_3182 = 0;
|
this._extra = 0;
|
||||||
this._flatId = 0;
|
this._flatId = 0;
|
||||||
this._isWallItem = false;
|
this._isWallItem = false;
|
||||||
this._hasRentPeriodStarted = false;
|
this._hasRentPeriodStarted = false;
|
||||||
this._Str_5390 = 0;
|
this._expirationTimeStamp = 0;
|
||||||
this._slotId = '';
|
this._slotId = '';
|
||||||
this._Str_2808 = -1;
|
this._songId = -1;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -77,7 +77,7 @@ export class FurnitureListItemParser implements IFurnitureItemData
|
|||||||
this._isGroupable = wrapper.readBoolean();
|
this._isGroupable = wrapper.readBoolean();
|
||||||
this._sellable = wrapper.readBoolean();
|
this._sellable = wrapper.readBoolean();
|
||||||
this._secondsToExpiration = wrapper.readInt();
|
this._secondsToExpiration = wrapper.readInt();
|
||||||
this._Str_5390 = Nitro.instance.time;
|
this._expirationTimeStamp = Nitro.instance.time;
|
||||||
|
|
||||||
if(this.secondsToExpiration > -1)
|
if(this.secondsToExpiration > -1)
|
||||||
{
|
{
|
||||||
@ -96,7 +96,7 @@ export class FurnitureListItemParser implements IFurnitureItemData
|
|||||||
if(this._furniType === FurnitureListItemParser.FLOOR_ITEM)
|
if(this._furniType === FurnitureListItemParser.FLOOR_ITEM)
|
||||||
{
|
{
|
||||||
this._slotId = wrapper.readString();
|
this._slotId = wrapper.readString();
|
||||||
this._Str_3182 = wrapper.readInt();
|
this._extra = wrapper.readInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -167,14 +167,14 @@ export class FurnitureListItemParser implements IFurnitureItemData
|
|||||||
return this._slotId;
|
return this._slotId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_3951(): number
|
public get songId(): number
|
||||||
{
|
{
|
||||||
return this._Str_2808;
|
return this._songId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_2794(): number
|
public get extra(): number
|
||||||
{
|
{
|
||||||
return this._Str_3182;
|
return this._extra;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get rentable(): boolean
|
public get rentable(): boolean
|
||||||
@ -192,27 +192,27 @@ export class FurnitureListItemParser implements IFurnitureItemData
|
|||||||
return this._hasRentPeriodStarted;
|
return this._hasRentPeriodStarted;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_10616(): number
|
public get expirationTimeStamp(): number
|
||||||
{
|
{
|
||||||
return this._Str_5390;
|
return this._expirationTimeStamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_8932(): number
|
public get creationDay(): number
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_9050(): number
|
public get creationMonth(): number
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_9408(): number
|
public get creationYear(): number
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_19297(): boolean
|
public get isExternalImageFurni(): boolean
|
||||||
{
|
{
|
||||||
return !(this._furniType.indexOf('external_image') === -1);
|
return !(this._furniType.indexOf('external_image') === -1);
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
import { IMessageParser } from '../../../../../../core/communication/messages/IMessageParser';
|
import { IMessageParser } from '../../../../../../core/communication/messages/IMessageParser';
|
||||||
import { TradingListItem } from '../../../incoming/inventory/trading/TradingListItem';
|
import { ItemDataStructure } from '../../../incoming/inventory/trading/ItemDataStructure';
|
||||||
|
|
||||||
export class TradingListItemParser implements IMessageParser
|
export class TradingListItemParser implements IMessageParser
|
||||||
{
|
{
|
||||||
private _firstUserID: number;
|
private _firstUserID: number;
|
||||||
private _firstUserItemArray: TradingListItem[];
|
private _firstUserItemArray: ItemDataStructure[];
|
||||||
private _firstUserNumItems: number;
|
private _firstUserNumItems: number;
|
||||||
private _firstUserNumCredits: number;
|
private _firstUserNumCredits: number;
|
||||||
private _secondUserID: number;
|
private _secondUserID: number;
|
||||||
private _secondUserItemArray: TradingListItem[];
|
private _secondUserItemArray: ItemDataStructure[];
|
||||||
private _secondUserNumItems: number;
|
private _secondUserNumItems: number;
|
||||||
private _secondUserNumCredits: number;
|
private _secondUserNumCredits: number;
|
||||||
|
|
||||||
@ -50,13 +50,13 @@ export class TradingListItemParser implements IMessageParser
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private parseItems(k: IMessageDataWrapper, itemArray: TradingListItem[]): boolean
|
private parseItems(k: IMessageDataWrapper, itemArray: ItemDataStructure[]): boolean
|
||||||
{
|
{
|
||||||
let count = k.readInt();
|
let count = k.readInt();
|
||||||
|
|
||||||
while(count > 0)
|
while(count > 0)
|
||||||
{
|
{
|
||||||
itemArray.push(new TradingListItem(k));
|
itemArray.push(new ItemDataStructure(k));
|
||||||
|
|
||||||
count--;
|
count--;
|
||||||
}
|
}
|
||||||
@ -69,7 +69,7 @@ export class TradingListItemParser implements IMessageParser
|
|||||||
return this._firstUserID;
|
return this._firstUserID;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_17841(): TradingListItem[]
|
public get _Str_17841(): ItemDataStructure[]
|
||||||
{
|
{
|
||||||
return this._firstUserItemArray;
|
return this._firstUserItemArray;
|
||||||
}
|
}
|
||||||
@ -89,7 +89,7 @@ export class TradingListItemParser implements IMessageParser
|
|||||||
return this._secondUserID;
|
return this._secondUserID;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_17465(): TradingListItem[]
|
public get _Str_17465(): ItemDataStructure[]
|
||||||
{
|
{
|
||||||
return this._secondUserItemArray;
|
return this._secondUserItemArray;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user