You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
Support NFT avatar editor category data
This commit is contained in:
@@ -8,4 +8,5 @@
|
|||||||
public static WARDROBE: string = 'wardrobe';
|
public static WARDROBE: string = 'wardrobe';
|
||||||
public static EFFECTS: string = 'effects';
|
public static EFFECTS: string = 'effects';
|
||||||
public static PETS: string = 'pets';
|
public static PETS: string = 'pets';
|
||||||
}
|
public static NFT: string = 'nft';
|
||||||
|
}
|
||||||
|
|||||||
+27
@@ -4,11 +4,13 @@ export class FigureSetIdsMessageParser implements IMessageParser
|
|||||||
{
|
{
|
||||||
private _figureSetIds: number[];
|
private _figureSetIds: number[];
|
||||||
private _boundFurnitureNames: string[];
|
private _boundFurnitureNames: string[];
|
||||||
|
private _figureSetNameMap: { [index: number]: string };
|
||||||
|
|
||||||
public flush(): boolean
|
public flush(): boolean
|
||||||
{
|
{
|
||||||
this._figureSetIds = [];
|
this._figureSetIds = [];
|
||||||
this._boundFurnitureNames = [];
|
this._boundFurnitureNames = [];
|
||||||
|
this._figureSetNameMap = {};
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -35,6 +37,26 @@ export class FigureSetIdsMessageParser implements IMessageParser
|
|||||||
totalFurnitureNames--;
|
totalFurnitureNames--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(wrapper.bytesAvailable)
|
||||||
|
{
|
||||||
|
let totalMappings = wrapper.readInt();
|
||||||
|
|
||||||
|
while(totalMappings > 0)
|
||||||
|
{
|
||||||
|
const furnitureName = wrapper.readString();
|
||||||
|
let totalMappedSetIds = wrapper.readInt();
|
||||||
|
|
||||||
|
while(totalMappedSetIds > 0)
|
||||||
|
{
|
||||||
|
this._figureSetNameMap[wrapper.readInt()] = furnitureName;
|
||||||
|
|
||||||
|
totalMappedSetIds--;
|
||||||
|
}
|
||||||
|
|
||||||
|
totalMappings--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,4 +69,9 @@ export class FigureSetIdsMessageParser implements IMessageParser
|
|||||||
{
|
{
|
||||||
return this._boundFurnitureNames;
|
return this._boundFurnitureNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public get figureSetNameMap(): { [index: number]: string }
|
||||||
|
{
|
||||||
|
return this._figureSetNameMap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user