diff options
author | Hop311 <Hop3114@gmail.com> | 2023-11-08 22:23:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-08 22:23:39 +0100 |
commit | f8da0860795d273452501fa4d7fbfcc40073a884 (patch) | |
tree | 556707348d57b81f91627bb8fda5989a305c0d21 /extension/src/openvic-extension/GameSingleton.hpp | |
parent | 57822949341b86649614b343afa2c740efe00ac2 (diff) | |
parent | 47fff276966d42cba6a2df9093348a5e20a37159 (diff) |
Merge pull request #162 from OpenVicProject/changes
Lots of Changes
Diffstat (limited to 'extension/src/openvic-extension/GameSingleton.hpp')
-rw-r--r-- | extension/src/openvic-extension/GameSingleton.hpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/extension/src/openvic-extension/GameSingleton.hpp b/extension/src/openvic-extension/GameSingleton.hpp index 56c9e88..1d92ef0 100644 --- a/extension/src/openvic-extension/GameSingleton.hpp +++ b/extension/src/openvic-extension/GameSingleton.hpp @@ -33,17 +33,17 @@ namespace OpenVic { godot::Error _update_colour_image(); void _on_state_updated(); - godot::Dictionary _distribution_to_dictionary(distribution_t const& dist) const; - protected: static void _bind_methods(); public: - static void draw_pie_chart(godot::Ref<godot::Image> image, - godot::Array const& stopAngles, godot::Array const& colours, float radius, + static void draw_pie_chart( + godot::Ref<godot::Image> image, godot::Array const& stopAngles, godot::Array const& colours, float radius, godot::Vector2 shadow_displacement, float shadow_tightness, float shadow_radius, float shadow_thickness, - godot::Color trim_colour, float trim_size, float gradient_falloff, float gradient_base, - bool donut, bool donut_inner_trim, float donut_inner_radius); + godot::Color trim_colour, float trim_size, float gradient_falloff, float gradient_base, bool donut, + bool donut_inner_trim, float donut_inner_radius + ); + static godot::Ref<godot::Image> load_image(godot::String const& path); static GameSingleton* get_singleton(); @@ -58,6 +58,8 @@ namespace OpenVic { */ godot::Error load_defines_compatibility_mode(godot::PackedStringArray const& file_paths); + static godot::String search_for_game_path(godot::String hint_path = {}); + godot::String lookup_file(godot::String const& path) const; /* Post-load/restart game setup - reset the game to post-load state |