Skip to content

Transition

Tommo J. Phillips edited this page Oct 22, 2023 · 2 revisions

Transition

Namespace: TommoJProductions.ModApi.StateMachine

Represents the ModAPI Transition. Transitions the state machine from one state to another.

public class Transition

Inheritance Object → Transition

Fields

condition

The condition that needs to be met before transitioning to Transition.toState

public Func<bool> condition;

toState

The IState to transition to.

public IState toState;

Constructors

Transition(IState, Func<Boolean>)

Creates a new Transition.

public Transition(IState toState, Func<bool> condition)

Parameters

toState IState
The state to transition to.

condition Func<Boolean>
The condition.

Clone this wiki locally