The ExecutionContext represents the execution context of a target (can be a clone) with variables, lists, etc.
More...
#include <scratchcpp/executioncontext.h>
The ExecutionContext represents the execution context of a target (can be a clone) with variables, lists, etc.
◆ ExecutionContext() [1/2]
| ExecutionContext::ExecutionContext |
( |
Thread * | thread | ) |
|
◆ ExecutionContext() [2/2]
◆ ~ExecutionContext()
| virtual libscratchcpp::ExecutionContext::~ExecutionContext |
( |
| ) |
|
|
inlinevirtual |
◆ engine()
| IEngine * ExecutionContext::engine |
( |
| ) |
const |
Returns the engine of the project.
◆ promise()
| std::shared_ptr< Promise > ExecutionContext::promise |
( |
| ) |
const |
Returns the script promise.
◆ rng()
Returns the random number generator of this context.
◆ setPromise()
| void ExecutionContext::setPromise |
( |
std::shared_ptr< Promise > | promise | ) |
|
Sets the script promise (yields until the promise is resolved).
◆ setRng()
Sets a custom random number generator.
◆ setStackTimer()
| void ExecutionContext::setStackTimer |
( |
IStackTimer * | newStackTimer | ) |
|
Sets a custom stack timer.
◆ stackTimer()
Returns the stack timer of this context. Can be used for wait blocks.
◆ thread()
| Thread * ExecutionContext::thread |
( |
| ) |
const |
Returns the thread of this context.
The documentation for this class was generated from the following files: