-
Notifications
You must be signed in to change notification settings - Fork 17
Transition
Tommo J. Phillips edited this page Oct 22, 2023
·
2 revisions
Namespace: TommoJProductions.ModApi.StateMachine
Represents the ModAPI Transition. Transitions the state machine from one state to another.
public class Transition
Inheritance Object → Transition
The condition that needs to be met before transitioning to Transition.toState
public Func<bool> condition;
The IState to transition to.
public IState toState;
Creates a new Transition.
public Transition(IState toState, Func<bool> condition)
toState
IState
The state to transition to.
condition
Func<Boolean>
The condition.