Move to Renderer V2

This commit is contained in:
duckietm
2024-04-03 09:27:56 +02:00
parent 110c3ad393
commit b3134ce50b
4080 changed files with 115593 additions and 66375 deletions
@@ -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;
}
}