Files
PrimeRemasterStructs/CLegacyStateMachine.bt
2023-02-16 11:17:47 -08:00

42 lines
863 B
Plaintext

#ifndef _CLEGACYSTATEMACHINE
#define _CLEGACYSTATEMACHINE
struct NameEntry {
string name;
};
struct State
{
local byte firstIndex = true;
int triggerCount;
if (triggerCount > 0)
{
struct
{
uint triggerCount;
struct
{
string actionName;
float actionTime;
if (firstIndex)
{
int stateIndex;
firstIndex = false;
}
} triggers[triggerCount] <optimize = false>;
firstIndex = true;
} subTrigger[triggerCount] <optimize = false>;
}
};
struct CLegacyStateMachine
{
uint stateCount;
NameEntry states[stateCount] <optimize = false>;
uint triggerCount;
State triggers[stateCount] <optimize = false>;
};
#endif// _CLEGACYSTATEMACHINE