Open 3D Engine ScriptCanvas Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <ExecutionStateHandler.h>
Public Member Functions | |
AZ_TYPE_INFO (ExecutionStateHandler, "{02E0EB5F-B28E-4B95-9FF2-DEA42ECC575D}") | |
AZ_CLASS_ALLOCATOR (ExecutionStateHandler, AZ::SystemAllocator) | |
~ExecutionStateHandler () | |
Clears the Executable on destruction if required. | |
void | Execute () |
ExecutionMode | GetExecutionMode () const |
void | Initialize (const RuntimeDataOverrides &overrides, ExecutionUserData &&userData=ExecutionUserData()) |
void | InitializeAndExecute (const RuntimeDataOverrides &overrides, ExecutionUserData &&userData=ExecutionUserData()) |
bool | IsExecutable () const |
bool | IsPure () const |
void | StopAndClearExecutable () |
void | StopAndKeepExecutable () |
Protected Attributes | |
Execution::StateStorage | m_executionStateStorage |
ExecutionState * | m_executionState = nullptr |
ExecutionStateHandler provides RAII semantics and an interface for the ExecutionStateStorage for ScriptCanvas graph. It and executes and stops the runtime graph, if possible.
Usage: 1) Initialize() 2) Execute() 3) <stop function>() 4) Optional (repeat steps 1-3), <stop function>() and Initialize() may be required to be called before subsequent calls to Execute();
void ScriptCanvas::ExecutionStateHandler::Execute | ( | ) |
Executes if possible, fails an SC_RUNTIME_CHECK if not.
void ScriptCanvas::ExecutionStateHandler::Initialize | ( | const RuntimeDataOverrides & | overrides, |
ExecutionUserData && | userData = ExecutionUserData() |
||
) |
Initializes the runtime with the inputs, but does NOT execute.
void ScriptCanvas::ExecutionStateHandler::InitializeAndExecute | ( | const RuntimeDataOverrides & | overrides, |
ExecutionUserData && | userData = ExecutionUserData() |
||
) |
Provides Initialize with the provided inputs and immediately executes.
bool ScriptCanvas::ExecutionStateHandler::IsExecutable | ( | ) | const |
Returns true iff the object has been initialized with valid, executable data
bool ScriptCanvas::ExecutionStateHandler::IsPure | ( | ) | const |
Returns true iff the user can reasonably call Execute() serially without calling a <stop function>() in between.
void ScriptCanvas::ExecutionStateHandler::StopAndClearExecutable | ( | ) |
Stops Execution if possible, and destroys the runtime. The user must call Initialize() before Executing again.
void ScriptCanvas::ExecutionStateHandler::StopAndKeepExecutable | ( | ) |