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