|
Engine²
Open-source game engine written in C++.
|
Specialization of fmt::formatter for Engine::EntityId to allow it to be formatted using the {fmt} library. More...
#include <EntityId.hpp>
Public Member Functions | |
| template<typename FormatContext> | |
| auto | format (const Engine::EntityId &entityId, FormatContext &ctx) const |
| Formats an EntityId for output. If the EntityId is null, it will format as "null_entity". Otherwise, it will format using the Log::EntityToDebugString function to provide a human-readable representation of the EntityId. | |
Specialization of fmt::formatter for Engine::EntityId to allow it to be formatted using the {fmt} library.
|
inline |
Formats an EntityId for output. If the EntityId is null, it will format as "null_entity". Otherwise, it will format using the Log::EntityToDebugString function to provide a human-readable representation of the EntityId.
| FormatContext | The type of the format context used by the {fmt} library. |
| entityId | The EntityId to format. |
| ctx | The format context used by the {fmt} library. |