Class FlowGraph
Hierarchy
- FlowGraph
Index
Constructors
Properties
Methods
Constructors
constructor
Construct a Flow Graph
Parameters
params: FlowGraphParams
construction parameters. currently only the scene
Returns FlowGraph
Properties
stateSearch playground for state
The state of the graph
variable DefinitionsSearch playground for variableDefinitions
The variables defined for this graph
Methods
add Event BlockSearch playground for addEventBlock
Add an event block. When the graph is started, it will start listening to events from the block and execute the graph when they are triggered.
Parameters
block: FlowGraphEventBlock
Returns void
create ContextSearch playground for createContext
Create a context. A context represents one self contained execution for the graph, with its own variables.
Returns FlowGraphContext
the context, where you can get and set variables
disposeSearch playground for dispose
Disposes of the flow graph. Cancels any pending tasks and removes all event listeners.
Returns void
startSearch playground for start
Starts the flow graph. Initializes the event blocks and starts listening to events.
Returns void
Class used to represent a flow graph. A flow graph is a graph of blocks that can be used to create complex logic. Blocks can be added to the graph and connected to each other. The graph can then be started, which will init and start all of its event blocks.