Table of Contents

Class ExecutionContext

Namespace
Ceres.Graph.Flow
Assembly
cs.temp.dll.dll

Flow graph execution context

public class ExecutionContext : IDisposable
Inheritance
object
ExecutionContext

Constructors

ExecutionContext()

protected ExecutionContext()

Properties

Context

Execution source context object

public UObject Context { get; }

Property Value

UObject

Graph

Execution owner graph

public FlowGraph Graph { get; }

Property Value

FlowGraph

Methods

Dispose()

public void Dispose()

Forward(ExecutableNode)

Execute node in forward path

public UniTask Forward(ExecutableNode node)

Parameters

node ExecutableNode

Returns

UniTask

GetEvent()

Get source this execution fired from

public EventBase GetEvent()

Returns

EventBase

GetEventT<T>()

Get source this execution fired from with specific type check

public T GetEventT<T>() where T : EventBase<T>, new()

Returns

T

Type Parameters

T

GetPooled(UObject, FlowGraph, EventBase)

public static ExecutionContext GetPooled(UObject context, FlowGraph graph, EventBase evt = null)

Parameters

context UObject
graph FlowGraph
evt EventBase

Returns

ExecutionContext

SetNext(ExecutableNode)

Set execution flow next node

public void SetNext(ExecutableNode node)

Parameters

node ExecutableNode