Basic tile map implemented.
This commit is contained in:
parent
290affa49a
commit
b66a3154c7
9 changed files with 135 additions and 12 deletions
10
config.hpp
10
config.hpp
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue