Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Attributes | List of all members
Olympe::AtomicTaskContext Struct Reference

Lightweight context bundle passed to IAtomicTask::ExecuteWithContext(). More...

#include <AtomicTaskContext.h>

+ Collaboration diagram for Olympe::AtomicTaskContext:

Public Attributes

EntityID Entity = INVALID_ENTITY_ID
 The entity whose task graph is being executed.
 
WorldWorldPtr = nullptr
 Pointer to the active World. May be nullptr in headless / test contexts.
 
TaskWorldFacadeComponentFacade = nullptr
 Optional ECS component accessor populated by the driving ECS system.
 
LocalBlackboardLocalBB = nullptr
 Pointer to the task node's LocalBlackboard for this tick. Never nullptr.
 
float DeltaTime = 0.0f
 Delta-time in seconds for the current frame.
 
float StateTimer = 0.0f
 Time in seconds that the current task node has been running (accumulated).
 

Detailed Description

Lightweight context bundle passed to IAtomicTask::ExecuteWithContext().

Definition at line 35 of file AtomicTaskContext.h.

Member Data Documentation

◆ ComponentFacade

TaskWorldFacade* Olympe::AtomicTaskContext::ComponentFacade = nullptr

Optional ECS component accessor populated by the driving ECS system.

When non-null and both Position and Movement members are set, tasks that support World mode (e.g. Task_MoveToLocation) read/write these components instead of using LocalBlackboard. May be nullptr in headless / test contexts that do not provide ECS components.

Definition at line 48 of file AtomicTaskContext.h.

◆ DeltaTime

float Olympe::AtomicTaskContext::DeltaTime = 0.0f

Delta-time in seconds for the current frame.

Definition at line 54 of file AtomicTaskContext.h.

◆ Entity

EntityID Olympe::AtomicTaskContext::Entity = INVALID_ENTITY_ID

The entity whose task graph is being executed.

Definition at line 38 of file AtomicTaskContext.h.

Referenced by Olympe::TaskSystem::ExecuteAtomicTask(), and Olympe::VSGraphExecutor::HandleAtomicTask().

◆ LocalBB

LocalBlackboard* Olympe::AtomicTaskContext::LocalBB = nullptr

Pointer to the task node's LocalBlackboard for this tick. Never nullptr.

Definition at line 51 of file AtomicTaskContext.h.

◆ StateTimer

float Olympe::AtomicTaskContext::StateTimer = 0.0f

Time in seconds that the current task node has been running (accumulated).

Definition at line 57 of file AtomicTaskContext.h.

◆ WorldPtr

World* Olympe::AtomicTaskContext::WorldPtr = nullptr

Pointer to the active World. May be nullptr in headless / test contexts.

Definition at line 41 of file AtomicTaskContext.h.


The documentation for this struct was generated from the following file: