Struct StateLink
A concrete object representing the link from one state to another
Implements
Namespace: Atlas
Assembly: Atlas.Runtime.dll
Syntax
public struct StateLink : IStateLink
Constructors
| Improve this Doc View SourceStateLink(State, StateLink.TransitionCondition)
Constructor
Declaration
public StateLink(State nextState, StateLink.TransitionCondition condition)
Parameters
Type | Name | Description |
---|---|---|
State | nextState | The state to transition to when the condition satisfied |
StateLink.TransitionCondition | condition | The callback used to determine when a transition should occur |
Properties
| Improve this Doc View SourceIsSatisfied
Whether or not a transition to NextState is desired
Declaration
public bool IsSatisfied { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
NextState
The state to transition to when the condition satisfied
Declaration
public State NextState { get; }
Property Value
Type | Description |
---|---|
State |