Rooms are now styled randomly based on assets/styles.json which will evolve into specifications for themes of levels and rooms in them plus other configs.

This commit is contained in:
Zed A. Shaw 2025-05-30 20:35:17 -04:00
parent e45de2a2cf
commit d2a5dfa713
7 changed files with 56 additions and 2 deletions

View file

@ -14,6 +14,7 @@ struct Config {
Config(nlohmann::json config, std::string src_path)
: $config(config), $src_path(src_path) {}
nlohmann::json &operator[](size_t);
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);