aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/GameSingleton.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/openvic-extension/GameSingleton.hpp')
-rw-r--r--extension/src/openvic-extension/GameSingleton.hpp14
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