![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Runtime context passed to IAtomicTask::ExecuteWithContext(). More...
Include dependency graph for AtomicTaskContext.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | Olympe::AtomicTaskContext |
| Lightweight context bundle passed to IAtomicTask::ExecuteWithContext(). More... | |
Namespaces | |
| namespace | Olympe |
| < Provides AssetID and INVALID_ASSET_ID | |
Runtime context passed to IAtomicTask::ExecuteWithContext().
AtomicTaskContext bundles the per-frame runtime data that a concrete atomic task may need without having to query singletons directly. It is built by TaskSystem::ExecuteAtomicTask() and forwarded to IAtomicTask::ExecuteWithContext() each tick.
Passing nullptr for WorldPtr is valid; callers that do not have access to a live World (e.g. unit tests) simply leave it null and tasks that need the World must guard against a null pointer.
C++14 compliant - no C++17/20 features.
Definition in file AtomicTaskContext.h.