Class StateGraphLink
Represents a transition between the StateGraph
nodes.
Namespace: AlchemyBow.Core.States.Elements
Assembly: AlchemyBow.Core.dll
Syntax
public sealed class StateGraphLink
Constructors
StateGraphLink(int, int, ICondition)
Creates an instance of the class.
Declaration
public StateGraphLink(int from, int to, ICondition condition)
Parameters
Type | Name | Description |
---|---|---|
int | from | The index of the origin node. |
int | to | The index of the destination node. |
ICondition | condition | The condition of the transition. |
Fields
condition
The condition of the transition.
Declaration
public readonly ICondition condition
Field Value
Type | Description |
---|---|
ICondition | The condition of the transition. |
from
The index of the origin node.
Declaration
public readonly int from
Field Value
Type | Description |
---|---|
int | The index of the origin node. |
to
The index of the destination node.
Declaration
public readonly int to
Field Value
Type | Description |
---|---|
int | The index of the destination node. |