From 928c521599b2b18e8964aeb445c3ca5a55bacbd1 Mon Sep 17 00:00:00 2001 From: hop311 Date: Wed, 17 Jul 2024 00:01:03 +0100 Subject: Use IndexedMap + helper function support --- extension/src/openvic-extension/singletons/ModelSingleton.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'extension/src/openvic-extension/singletons/ModelSingleton.hpp') diff --git a/extension/src/openvic-extension/singletons/ModelSingleton.hpp b/extension/src/openvic-extension/singletons/ModelSingleton.hpp index ad1a6d8..8030ffd 100644 --- a/extension/src/openvic-extension/singletons/ModelSingleton.hpp +++ b/extension/src/openvic-extension/singletons/ModelSingleton.hpp @@ -3,7 +3,8 @@ #include #include -#include +#include +#include namespace OpenVic { struct BuildingInstance; @@ -31,8 +32,10 @@ namespace OpenVic { godot::Dictionary make_animation_dict(GFX::Actor::Animation const& animation) const; godot::Dictionary make_model_dict(GFX::Actor const& actor) const; - template T> - bool add_unit_dict(ordered_set const& units, godot::TypedArray& unit_array) const; + template + bool add_unit_dict( + ordered_set*> const& units, godot::TypedArray& unit_array + ) const; bool add_building_dict( BuildingInstance const& building, ProvinceInstance const& province, -- cgit v1.2.3-56-ga3b1