![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Lightweight ECS component accessor bridge for the Task System. More...
Include dependency graph for TaskWorldFacade.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | Olympe::TaskWorldFacade |
| Lightweight ECS component accessor passed through AtomicTaskContext. More... | |
Namespaces | |
| namespace | Olympe |
| < Provides AssetID and INVALID_ASSET_ID | |
Lightweight ECS component accessor bridge for the Task System.
TaskWorldFacade provides a simple, SDL-free bridge between the Task System and the ECS layer. It holds raw pointers to the PositionComponent and MovementComponent that belong to the entity currently executing a task.
In production, the ECS system responsible for driving task execution (e.g. a TaskExecutionSystem) populates a TaskWorldFacade and places it in the AtomicTaskContext before calling TaskSystem::ExecuteNode().
In unit tests, a TaskWorldFacade is built directly by the test, pointing at stack-allocated component instances. This allows the World mode branch of Task_MoveToLocation (and similar tasks) to be exercised without requiring a live World / SDL context.
C++14 compliant - no C++17/20 features.
Definition in file TaskWorldFacade.h.