mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-06-03 00:15:32 +02:00
29 lines
626 B
TypeScript
29 lines
626 B
TypeScript
import { IMessageDataWrapper, IMessageParser } from '../../../../../../../api';
|
|
import { FurnitureWallDataParser } from './FurnitureWallDataParser';
|
|
|
|
export class FurnitureWallUpdateParser implements IMessageParser
|
|
{
|
|
private _item: FurnitureWallDataParser;
|
|
|
|
public flush(): boolean
|
|
{
|
|
this._item = null;
|
|
|
|
return true;
|
|
}
|
|
|
|
public parse(wrapper: IMessageDataWrapper): boolean
|
|
{
|
|
if(!wrapper) return false;
|
|
|
|
this._item = new FurnitureWallDataParser(wrapper);
|
|
|
|
return true;
|
|
}
|
|
|
|
public get item(): FurnitureWallDataParser
|
|
{
|
|
return this._item;
|
|
}
|
|
}
|