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
Move to Renderer V2
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '@nitrots/api';
|
||||
|
||||
export class CancelMysteryBoxWaitMessageParser implements IMessageParser
|
||||
{
|
||||
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '@nitrots/api';
|
||||
|
||||
export class GotMysteryBoxPrizeMessageParser implements IMessageParser
|
||||
{
|
||||
private _contentType:string;
|
||||
private _classId:number;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
this._contentType = wrapper.readString();
|
||||
this._classId = wrapper.readInt();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public get contentType():string
|
||||
{
|
||||
return this._contentType;
|
||||
}
|
||||
|
||||
public get classId():number
|
||||
{
|
||||
return this._classId;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '@nitrots/api';
|
||||
|
||||
export class MysteryBoxKeysParser implements IMessageParser
|
||||
{
|
||||
private _boxColor: string;
|
||||
private _keyColor: string;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._boxColor = null;
|
||||
this._keyColor = null;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
this._boxColor = wrapper.readString();
|
||||
this._keyColor = wrapper.readString();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public get boxColor(): string
|
||||
{
|
||||
return this._boxColor;
|
||||
}
|
||||
|
||||
public get keyColor(): string
|
||||
{
|
||||
return this._keyColor;
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '@nitrots/api';
|
||||
|
||||
export class ShowMysteryBoxWaitMessageParser implements IMessageParser
|
||||
{
|
||||
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export * from './CancelMysteryBoxWaitMessageParser';
|
||||
export * from './GotMysteryBoxPrizeMessageParser';
|
||||
export * from './MysteryBoxKeysParser';
|
||||
export * from './ShowMysteryBoxWaitMessageParser';
|
||||
Reference in New Issue
Block a user