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