diff options
author | Hop311 <Hop3114@gmail.com> | 2024-05-12 17:17:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-12 17:17:32 +0200 |
commit | bfccdb87d66304604ad018037db1581746646bfa (patch) | |
tree | ac4394e8ceaca22fa0deaeebd8cf5eafedecaa3e /extension/src/openvic-extension/singletons/GameSingleton.hpp | |
parent | b0a533f945bbc6201fd7df4bc60746cb98efaba4 (diff) | |
parent | ac29e4040fc20c50c8f0eb64b1194f6398165eb0 (diff) |
Merge pull request #227 from OpenVicProject/models
Models
Diffstat (limited to 'extension/src/openvic-extension/singletons/GameSingleton.hpp')
-rw-r--r-- | extension/src/openvic-extension/singletons/GameSingleton.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extension/src/openvic-extension/singletons/GameSingleton.hpp b/extension/src/openvic-extension/singletons/GameSingleton.hpp index f2b88ac..7f86eb2 100644 --- a/extension/src/openvic-extension/singletons/GameSingleton.hpp +++ b/extension/src/openvic-extension/singletons/GameSingleton.hpp @@ -59,6 +59,7 @@ namespace OpenVic { godot::Error load_defines_compatibility_mode(godot::PackedStringArray const& file_paths); static godot::String search_for_game_path(godot::String const& hint_path = {}); + godot::String lookup_file_path(godot::String const& path) const; /* Post-load/restart game setup - reset the game to post-load state and load the specified bookmark. */ godot::Error setup_game(int32_t bookmark_index); @@ -69,6 +70,7 @@ namespace OpenVic { int32_t get_map_height() const; godot::Vector2i get_map_dims() const; float get_map_aspect_ratio() const; + godot::Vector2 map_position_to_world_coords(fvec2_t const& position) const; /* The cosmetic terrain textures stored in a Texture2DArray. */ godot::Ref<godot::Texture2DArray> get_terrain_texture() const; |