Hexagon
|
Public Member Functions | |
delegate float | GetCurrentTimeDelegate () |
virtual void | Init< TStateEnum > (Dictionary< TStateEnum, State > enum2state, List< StateNode > nodes) |
virtual async void | Update () |
virtual void | FixedUpdate () |
virtual ? Transition | GetNextState (Func< Transition, bool >? extraCondition=null) |
virtual State | FinishTransition () |
virtual void | Die () |
StateMachine (TParent parent) | |
Static Public Member Functions | |
static StateID | GetID< TEnumState > (TEnumState value) |
Public Attributes | |
readonly Dictionary< StateID, State > | _enum2state = new() |
readonly List< StateNode > | _nodes = new() |
readonly Dictionary< StateID, List< Transition > > | _stateTree = new() |
GetCurrentTimeDelegate | GetCurrentTimeFunction = () => UnityEngine.Time.time |
virtual | StateID |
Protected Member Functions | |
virtual ? Transition | GetTransitionFromCurrent (Func< Transition, bool >? extraCondition=null) |
virtual void | BeginTransition (StateID newState, Transition transition) |
virtual void | OnStateChanged (State from, State to) |
Protected Attributes | |
Transition? | _currentTransition = null |
Properties | |
State | _currentState = null! [get, protected set] |
State? | _targetState = null [get, protected set] |
State | _previousState = null! [get, protected set] |
StateID | _currentStateID = 0 [get, protected set] |
bool | _isTransitioning = false [get, protected set] |
bool | _isLocked = false [get, protected set] |
TParent | Parent [get] |
|
inline |
|
inlineprotectedvirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
delegate float StateMachine< TParent >.GetCurrentTimeDelegate | ( | ) |
|
inlinestatic |
TEnumState | : | Enum |
|
inline |
|
inlineprotectedvirtual |
|
inlinevirtual |
TStateEnum | : | Enum |
|
inlineprotectedvirtual |
|
inlinevirtual |
|
protected |
readonly Dictionary<StateID, State> StateMachine< TParent >._enum2state = new() |
readonly List<StateNode> StateMachine< TParent >._nodes = new() |
readonly Dictionary<StateID, List<Transition> > StateMachine< TParent >._stateTree = new() |
GetCurrentTimeDelegate StateMachine< TParent >.GetCurrentTimeFunction = () => UnityEngine.Time.time |
virtual StateMachine< TParent >.StateID |
|
getprotected set |
|
getprotected set |
|
getprotected set |
|
getprotected set |
|
getprotected set |
|
getprotected set |
|
get |