Move everything under the guecs/ directory in src/ so that it meshes better with other projects.
This commit is contained in:
parent
f520f0bade
commit
3bc05ad164
30 changed files with 74 additions and 73 deletions
19
include/guecs/sfml/config.hpp
Normal file
19
include/guecs/sfml/config.hpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <fstream>
|
||||
#include <codecvt>
|
||||
|
||||
struct Config {
|
||||
nlohmann::json $config;
|
||||
std::string $src_path;
|
||||
|
||||
Config(const std::string src_path);
|
||||
|
||||
Config(nlohmann::json config, std::string src_path)
|
||||
: $config(config), $src_path(src_path) {}
|
||||
|
||||
nlohmann::json &operator[](const std::string &key);
|
||||
nlohmann::json &json() { return $config; };
|
||||
std::wstring wstring(const std::string main_key, const std::string sub_key);
|
||||
std::vector<std::string> keys();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue