Basic tile map implemented.

This commit is contained in:
Zed A. Shaw 2024-12-20 19:39:11 -05:00
parent 290affa49a
commit b66a3154c7
9 changed files with 135 additions and 12 deletions

View file

@ -3,19 +3,17 @@
#include <fstream>
#include <codecvt>
using namespace nlohmann;
struct Config {
json $config;
nlohmann::json $config;
std::string $src_path;
Config(const std::string src_path);
Config(json config, std::string src_path)
Config(nlohmann::json config, std::string src_path)
: $config(config), $src_path(src_path) {}
json &operator[](const std::string &key);
nlohmann::json &operator[](const std::string &key);
std::wstring wstring(const std::string main_key);
std::wstring wstring(const std::string main_key, const std::string sub_key);
};