17#include "../AtomicTaskRegistry.h"
18#include "../../system/system_utils.h"
31 std::string message =
"(no message)";
36 message =
it->second.AsString();
39 SYSTEM_LOG <<
"[Task_LogMessage] " << message <<
"\n";
#define REGISTER_ATOMIC_TASK(ClassName, Id)
Registers a factory for ClassName under Id at static init time.
ComponentTypeID GetComponentTypeID_Static()
Abstract interface for a single atomic unit of work.
std::unordered_map< std::string, TaskValue > ParameterMap
Convenience alias for the parameter map passed to Execute().
Atomic task that logs the value of the "message" parameter.
void Abort() override
Aborts the task, releasing any in-progress state.
TaskStatus Execute(const ParameterMap ¶ms) override
Executes the atomic task for one frame.
< Provides AssetID and INVALID_ASSET_ID
TaskStatus
Result code returned by IAtomicTask::Execute().
@ Success
Task completed successfully.