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
28 lines
518 B
TypeScript
28 lines
518 B
TypeScript
import { IMessageDataWrapper, IMessageParser } from '@nitrots/api';
|
|
|
|
export class HotelWillCloseInMinutesMessageParser implements IMessageParser
|
|
{
|
|
private _minutes: number;
|
|
|
|
public flush(): boolean
|
|
{
|
|
this._minutes = 0;
|
|
|
|
return true;
|
|
}
|
|
|
|
public parse(wrapper: IMessageDataWrapper): boolean
|
|
{
|
|
if(!wrapper) return false;
|
|
|
|
this._minutes = wrapper.readInt();
|
|
|
|
return true;
|
|
}
|
|
|
|
public get openMinute(): number
|
|
{
|
|
return this._minutes;
|
|
}
|
|
}
|