From 005bc5885a5ff436982246f12e9cfa13231bcf82 Mon Sep 17 00:00:00 2001 From: Nemrav <> Date: Sun, 17 Nov 2024 16:28:59 -0400 Subject: billboards in game session --- .../singletons/MapItemSingleton.hpp | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 extension/src/openvic-extension/singletons/MapItemSingleton.hpp (limited to 'extension/src/openvic-extension/singletons/MapItemSingleton.hpp') diff --git a/extension/src/openvic-extension/singletons/MapItemSingleton.hpp b/extension/src/openvic-extension/singletons/MapItemSingleton.hpp new file mode 100644 index 0000000..5b10446 --- /dev/null +++ b/extension/src/openvic-extension/singletons/MapItemSingleton.hpp @@ -0,0 +1,34 @@ +#pragma once + +#include + +#include +//#include +#include + +//billboards, projections, and progress bar + + +namespace OpenVic { + class MapItemSingleton : public godot::Object { + GDCLASS(MapItemSingleton, godot::Object) + + static inline MapItemSingleton* singleton = nullptr; + + protected: + static void _bind_methods(); + + public: + static MapItemSingleton* get_singleton(); + + MapItemSingleton(); + ~MapItemSingleton(); + + private: + GFX::Billboard const* get_billboard(std::string_view name, bool error_on_fail = true) const; + bool add_billboard_dict(std::string_view name, godot::TypedArray& billboard_dict_array); + godot::TypedArray get_billboards(); + godot::PackedVector2Array get_province_positions(); + }; + +} \ No newline at end of file -- cgit v1.2.3-56-ga3b1