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
750 B
TypeScript
36 lines
750 B
TypeScript
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;
|
|
}
|
|
}
|