You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 15:36:18 +00:00
Move to Renderer V2
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '@nitrots/api';
|
||||
|
||||
export class InterstitialMessageParser implements IMessageParser
|
||||
{
|
||||
private _canShowInterstitial: boolean;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._canShowInterstitial = false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
this._canShowInterstitial = wrapper.readBoolean();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public get canShowInterstitial(): boolean
|
||||
{
|
||||
return this._canShowInterstitial;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user