26#include <unordered_map>
28#include "../TaskSystem/TaskGraphTypes.h"
29#include "../system/system_utils.h"
135 std::unordered_map<std::string, TaskValue>
m_store;
ComponentTypeID GetComponentTypeID_Static()
Process-wide singleton blackboard storing TaskValue entries.
void MarkDirty()
Marks the blackboard as modified (called automatically by SetVar).
std::unordered_map< std::string, TaskValue > m_store
void SetVar(const std::string &key, const TaskValue &value)
Writes or creates a variable.
GlobalBlackboard(GlobalBlackboard &&)=delete
static GlobalBlackboard & Get()
Returns the singleton instance.
GlobalBlackboard & operator=(GlobalBlackboard &&)=delete
GlobalBlackboard & operator=(const GlobalBlackboard &)=delete
~GlobalBlackboard()=default
bool IsDirty() const
Returns true if any variable has been modified since the last ClearDirty().
GlobalBlackboard(const GlobalBlackboard &)=delete
void ClearDirty()
Clears the dirty flag (call after persisting).
bool HasVar(const std::string &key) const
Checks whether a variable exists.
GlobalBlackboard()=default
TaskValue GetVar(const std::string &key) const
Reads a variable by key.
void Clear()
Removes all variables (useful in tests / level transitions).
C++14-compliant type-safe value container for task parameters.
< Provides AssetID and INVALID_ASSET_ID