diff options
author | Hop311 <hop3114@gmail.com> | 2023-09-02 13:55:36 +0200 |
---|---|---|
committer | Hop311 <hop3114@gmail.com> | 2023-09-09 22:57:26 +0200 |
commit | c715187bffa8c84428acf3631e3d03c088a719d9 (patch) | |
tree | b880594195ad803fe716c9c6184591b8b47fa42c /extension/src/GameSingleton.hpp | |
parent | aa49dbbb3cf9dbff18c08245b0e46a9943df9b15 (diff) |
Followup big dataloader commit
Diffstat (limited to 'extension/src/GameSingleton.hpp')
-rw-r--r-- | extension/src/GameSingleton.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extension/src/GameSingleton.hpp b/extension/src/GameSingleton.hpp index a484520..eb332f4 100644 --- a/extension/src/GameSingleton.hpp +++ b/extension/src/GameSingleton.hpp @@ -7,6 +7,7 @@ #include "openvic/dataloader/Dataloader.hpp" namespace OpenVic { + struct TerrainVariant : HasIdentifierAndColour { friend class GameSingleton; @@ -23,6 +24,7 @@ namespace OpenVic { godot::Ref<godot::Image> get_image() const; }; + class GameSingleton : public godot::Object { GDCLASS(GameSingleton, godot::Object) @@ -76,6 +78,8 @@ namespace OpenVic { */ godot::Error load_defines_compatibility_mode(godot::PackedStringArray const& file_paths); + godot::String lookup_file(godot::String const& path) const; + /* Post-load/restart game setup - reset the game to post-load state * and (re)generate starting data, e.g. buildings. */ |