You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-21 07:56:19 +00:00
Move to Renderer V2
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '@nitrots/api';
|
||||
|
||||
export class GuideTicketResolutionMessageParser implements IMessageParser
|
||||
{
|
||||
public static readonly RESOLUTION_GUARDIANS_TOOK_ACTION: number = 0;
|
||||
public static readonly RESOLUTION_FORWARDED_TO_MODERATORS: number = 1;
|
||||
public static readonly RESOLUTION_REPORTER_IS_ABUSIVE: number = 2;
|
||||
|
||||
private _resolution: number;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._resolution = 0;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
this._resolution = wrapper.readInt();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public get resolution(): number
|
||||
{
|
||||
return this._resolution;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user