Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Namespaces
AtomicTaskContext.h File Reference

Runtime context passed to IAtomicTask::ExecuteWithContext(). More...

#include "../ECS_Entity.h"
#include "TaskWorldFacade.h"
+ 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
 

Detailed Description

Runtime context passed to IAtomicTask::ExecuteWithContext().

Author
Olympe Engine
Date
2026-02-23

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.