So that, for example, it would be possible to write something like this:
Code: Select all
override void Tick()
{
super.Tick();
StateLabels[] = GetStateLabels();
for(int i = 0; i < StateLabels.Size(); i++)
{
if (InStateSequence(curstate, FindState(StateLabels[i])))
{
console.printf("Current State: "..StateLabels[i]);
break;
}
}
}