![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Atomic task: async path request via PathfindingManager. More...
#include "Task_RequestPathfinding.h"#include "../../AtomicTaskRegistry.h"#include "../../LocalBlackboard.h"#include "../../../system/system_utils.h"
Include dependency graph for Task_RequestPathfinding.cpp:Go to the source code of this file.
Namespaces | |
| namespace | Olympe |
| < Provides AssetID and INVALID_ASSET_ID | |
Variables | |
| static const char * | Olympe::BB_KEY_POSITION = "Position" |
| static const char * | Olympe::BB_KEY_PATH = "Path" |
Atomic task: async path request via PathfindingManager.
On the first ExecuteWithContext() call the task reads "Position" from the LocalBlackboard and the "Target" parameter, then submits an async request to PathfindingManager and returns Running. On subsequent ticks it polls IsComplete(); when the path is ready the string is written to the "Path" LocalBlackboard key and the task returns Success.
C++14 compliant - no C++17/20 features.
Definition in file Task_RequestPathfinding.cpp.