blob: fd891195ea0200a6fa06de7a7c7b372dd2637fcc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#pragma once
#include <godot_cpp/classes/object.hpp>
#include <openvic-simulation/interface/GFXObject.hpp>
//#include <openvic-simulation/military/UnitInstanceGroup.hpp>
#include <openvic-simulation/types/OrderedContainers.hpp>
//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<godot::Dictionary>& billboard_dict_array);
godot::TypedArray<godot::Dictionary> get_billboards();
int get_province_count();
godot::PackedVector2Array get_province_positions();
};
}
|