You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 23:16:20 +00:00
Revert "Merge pull request #16 from simoleo89/furnisettingeditor-pr"
This reverts commit2e90578976, reversing changes made to749ec76177.
This commit is contained in:
@@ -1,76 +0,0 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '@nitrots/api';
|
||||
|
||||
export class FurniEditorDetailParser implements IMessageParser
|
||||
{
|
||||
private _item: any;
|
||||
private _catalogItems: any[];
|
||||
private _furniDataJson: string;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._item = null;
|
||||
this._catalogItems = [];
|
||||
this._furniDataJson = '';
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
this._item = {
|
||||
id: wrapper.readInt(),
|
||||
spriteId: wrapper.readInt(),
|
||||
itemName: wrapper.readString(),
|
||||
publicName: wrapper.readString(),
|
||||
type: wrapper.readString(),
|
||||
width: wrapper.readInt(),
|
||||
length: wrapper.readInt(),
|
||||
stackHeight: wrapper.readDouble(),
|
||||
allowStack: wrapper.readBoolean(),
|
||||
allowWalk: wrapper.readBoolean(),
|
||||
allowSit: wrapper.readBoolean(),
|
||||
allowLay: wrapper.readBoolean(),
|
||||
interactionType: wrapper.readString(),
|
||||
interactionModesCount: wrapper.readInt(),
|
||||
// Extended fields
|
||||
allowGift: wrapper.readBoolean(),
|
||||
allowTrade: wrapper.readBoolean(),
|
||||
allowRecycle: wrapper.readBoolean(),
|
||||
allowMarketplaceSell: wrapper.readBoolean(),
|
||||
allowInventoryStack: wrapper.readBoolean(),
|
||||
vendingIds: wrapper.readString(),
|
||||
customparams: wrapper.readString(),
|
||||
effectIdMale: wrapper.readInt(),
|
||||
effectIdFemale: wrapper.readInt(),
|
||||
clothingOnWalk: wrapper.readString(),
|
||||
multiheight: wrapper.readString(),
|
||||
description: wrapper.readString(),
|
||||
usageCount: wrapper.readInt()
|
||||
};
|
||||
|
||||
const catalogCount = wrapper.readInt();
|
||||
this._catalogItems = [];
|
||||
|
||||
for(let i = 0; i < catalogCount; i++)
|
||||
{
|
||||
this._catalogItems.push({
|
||||
id: wrapper.readInt(),
|
||||
catalogName: wrapper.readString(),
|
||||
costCredits: wrapper.readInt(),
|
||||
costPoints: wrapper.readInt(),
|
||||
pointsType: wrapper.readInt(),
|
||||
pageId: wrapper.readInt(),
|
||||
pageName: wrapper.readString()
|
||||
});
|
||||
}
|
||||
|
||||
this._furniDataJson = wrapper.readString();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public get item(): any { return this._item; }
|
||||
public get catalogItems(): any[] { return this._catalogItems; }
|
||||
public get furniDataJson(): string { return this._furniDataJson; }
|
||||
}
|
||||
-29
@@ -1,29 +0,0 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '@nitrots/api';
|
||||
|
||||
export class FurniEditorInteractionsParser implements IMessageParser
|
||||
{
|
||||
private _interactions: string[];
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._interactions = [];
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
const count = wrapper.readInt();
|
||||
this._interactions = [];
|
||||
|
||||
for(let i = 0; i < count; i++)
|
||||
{
|
||||
this._interactions.push(wrapper.readString());
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public get interactions(): string[] { return this._interactions; }
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '@nitrots/api';
|
||||
|
||||
export class FurniEditorResultParser implements IMessageParser
|
||||
{
|
||||
private _success: boolean;
|
||||
private _message: string;
|
||||
private _id: number;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._success = false;
|
||||
this._message = '';
|
||||
this._id = -1;
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
this._success = wrapper.readBoolean();
|
||||
this._message = wrapper.readString();
|
||||
this._id = wrapper.readInt();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public get success(): boolean { return this._success; }
|
||||
public get message(): string { return this._message; }
|
||||
public get id(): number { return this._id; }
|
||||
}
|
||||
@@ -1,53 +0,0 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '@nitrots/api';
|
||||
|
||||
export class FurniEditorSearchParser implements IMessageParser
|
||||
{
|
||||
private _items: any[];
|
||||
private _total: number;
|
||||
private _page: number;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._items = [];
|
||||
this._total = 0;
|
||||
this._page = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
const count = wrapper.readInt();
|
||||
this._items = [];
|
||||
|
||||
for(let i = 0; i < count; i++)
|
||||
{
|
||||
this._items.push({
|
||||
id: wrapper.readInt(),
|
||||
spriteId: wrapper.readInt(),
|
||||
itemName: wrapper.readString(),
|
||||
publicName: wrapper.readString(),
|
||||
type: wrapper.readString(),
|
||||
width: wrapper.readInt(),
|
||||
length: wrapper.readInt(),
|
||||
stackHeight: wrapper.readDouble(),
|
||||
allowStack: wrapper.readBoolean(),
|
||||
allowWalk: wrapper.readBoolean(),
|
||||
allowSit: wrapper.readBoolean(),
|
||||
allowLay: wrapper.readBoolean(),
|
||||
interactionType: wrapper.readString(),
|
||||
interactionModesCount: wrapper.readInt()
|
||||
});
|
||||
}
|
||||
|
||||
this._total = wrapper.readInt();
|
||||
this._page = wrapper.readInt();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public get items(): any[] { return this._items; }
|
||||
public get total(): number { return this._total; }
|
||||
public get page(): number { return this._page; }
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
export * from './FurniEditorSearchParser';
|
||||
export * from './FurniEditorDetailParser';
|
||||
export * from './FurniEditorInteractionsParser';
|
||||
export * from './FurniEditorResultParser';
|
||||
@@ -12,7 +12,6 @@ export * from './competition';
|
||||
export * from './crafting';
|
||||
export * from './desktop';
|
||||
export * from './friendlist';
|
||||
export * from './furnieditor';
|
||||
export * from './game';
|
||||
export * from './game/directory';
|
||||
export * from './game/lobby';
|
||||
|
||||
Reference in New Issue
Block a user