Flow Node

Description

Inherits from: object

It is building block of FlowGraph
RootNode graph creates on construction, all others created from Open methods
Upon calling FlowGraph.Open new Node is created, added to history and returned back to caller

Properties

PropertyDescription
GraphAccess FlowGraph
StateState instance of this node
WasShowedtrue if node already was showed earlier
ChildrenShowedtrue when at least one child of this node is showed
OpenParamsParameters this node is opened with
StateDataCustom data linked from node state
UserDataCustom data linked from outside node state
BackLink to previous node in history
ForwardLink to next node in history
PrevSiblingLink to prev sibling node
NextSiblingLink to next sibling node
ParentLink to parent node
LayerNameName of layer this node spawned on
BaseLayerBase layer for children of this node (have link to next layer)
FirstBaseChildLink to first child node if layer Base
IsOpenedtrue if node still part of the graph false otherwise
IsShowingtrue if node state is currently showing
IsOpenedAndShowingtrue if node is opened state is currently showing
TransitionHostgets nearest TransitionHost in parent hierarchy
GameStageNodegets nearest parent GameStage node

Events

EventDescription
GotForwardevent. raised right after hook
GotNextevent. raised right after hook
ForwardHiddenevent. raised right after hook
GotBackevent. raised right after hook
GotPrevevent. raised right after hook
BackShowedevent. raised right after hook

Methods

MethodDescription
OpenMainSubStateOpen Main Substate if exists
CloseClose this node
SpawnTransitionRootSpawn Transition Root in this node so all child transitions will do in parralel with global ones
WaitResultOnHide < T >Async Operation to wait for state hide and return result of ExpectedType (state must implement IStateWithResult < T >)
WaitResultOnClose < T >Async Operation to wait for state close and return result of ExpectedType (state must implement IStateWithResult < T >)

Extensions

MethodDescription
WaitShowAsync wait for Node WaitShow event. Continuation happens right after event in code
WaitCloseAsync wait for Node WaitClose event. Continuation happens right after event in code
WaitHideAsync wait for Node WaitHide event. Continuation happens right after event in code