nitro-renderer/src/nitro/communication/messages/parser/room/furniture/wall/FurnitureWallUpdateParser.ts
2023-01-07 20:24:23 -06:00

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;
}
}