You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 23:46:19 +00:00
Move to Renderer V2
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { IMessageDataWrapper } from '@nitrots/api';
|
||||
import { Triggerable } from './Triggerable';
|
||||
|
||||
export class TriggerDefinition extends Triggerable
|
||||
{
|
||||
private _triggerConf: number;
|
||||
private _conflictingActions: number[];
|
||||
|
||||
constructor(wrapper: IMessageDataWrapper)
|
||||
{
|
||||
super(wrapper);
|
||||
|
||||
this._conflictingActions = [];
|
||||
this._triggerConf = wrapper.readInt();
|
||||
|
||||
let count = wrapper.readInt();
|
||||
|
||||
while(count > 0)
|
||||
{
|
||||
this._conflictingActions.push(wrapper.readInt());
|
||||
|
||||
count--;
|
||||
}
|
||||
}
|
||||
|
||||
public get code(): number
|
||||
{
|
||||
return this._triggerConf;
|
||||
}
|
||||
|
||||
public get conflictingActions(): number[]
|
||||
{
|
||||
return this._conflictingActions;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user