12#include <nlohmann/json.hpp>
43 static std::optional<ecs::MapData>
loadFromFile(
const std::string &filePath);
50 static std::optional<ecs::MapData>
loadFromString(
const std::string &jsonString);
57 static std::optional<ecs::MapData>
parseJson(
const nlohmann::json &jsonObj);
Utility class for loading map configurations from JSON files.
static std::optional< ecs::MapData > loadFromFile(const std::string &filePath)
Load a map from a JSON file.
static std::optional< ecs::MapData > loadFromString(const std::string &jsonString)
Load a map from a JSON string.
static std::optional< ecs::MapData > parseJson(const nlohmann::json &jsonObj)
Parse JSON object into MapData.