You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
29 lines
631 B
TypeScript
29 lines
631 B
TypeScript
import { IMessageDataWrapper, IMessageParser } from '@nitrots/api';
|
|
import { WiredActionDefinition } from './WiredActionDefinition';
|
|
|
|
export class WiredFurniActionParser implements IMessageParser
|
|
{
|
|
private _definition: WiredActionDefinition;
|
|
|
|
public flush(): boolean
|
|
{
|
|
this._definition = null;
|
|
|
|
return true;
|
|
}
|
|
|
|
public parse(wrapper: IMessageDataWrapper): boolean
|
|
{
|
|
if(!wrapper) return false;
|
|
|
|
this._definition = new WiredActionDefinition(wrapper);
|
|
|
|
return true;
|
|
}
|
|
|
|
public get definition(): WiredActionDefinition
|
|
{
|
|
return this._definition;
|
|
}
|
|
}
|