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
feat: parse furnidata diagnostics
This commit is contained in:
+8
@@ -7,12 +7,14 @@ export class FurniEditorDetailResultMessageParser implements IMessageParser
|
|||||||
private _item: FurniDetailData;
|
private _item: FurniDetailData;
|
||||||
private _catalogItems: CatalogRefData[];
|
private _catalogItems: CatalogRefData[];
|
||||||
private _furniDataJson: string;
|
private _furniDataJson: string;
|
||||||
|
private _furniDataDiagnosticJson: string;
|
||||||
|
|
||||||
public flush(): boolean
|
public flush(): boolean
|
||||||
{
|
{
|
||||||
this._item = null;
|
this._item = null;
|
||||||
this._catalogItems = [];
|
this._catalogItems = [];
|
||||||
this._furniDataJson = '';
|
this._furniDataJson = '';
|
||||||
|
this._furniDataDiagnosticJson = '';
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -36,6 +38,7 @@ export class FurniEditorDetailResultMessageParser implements IMessageParser
|
|||||||
}
|
}
|
||||||
|
|
||||||
this._furniDataJson = wrapper.readString();
|
this._furniDataJson = wrapper.readString();
|
||||||
|
this._furniDataDiagnosticJson = wrapper.bytesAvailable ? wrapper.readString() : '{}';
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -54,4 +57,9 @@ export class FurniEditorDetailResultMessageParser implements IMessageParser
|
|||||||
{
|
{
|
||||||
return this._furniDataJson;
|
return this._furniDataJson;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public get furniDataDiagnosticJson(): string
|
||||||
|
{
|
||||||
|
return this._furniDataDiagnosticJson;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user