From 4ef33d4df6198e613b0f27406d49978c8ea2fb97 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Sun, 10 Dec 2023 23:15:41 +0100 Subject: feat: improved identifier registry macro --- src/openvic-simulation/military/Unit.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/openvic-simulation/military/Unit.hpp') diff --git a/src/openvic-simulation/military/Unit.hpp b/src/openvic-simulation/military/Unit.hpp index 17228ce..6e3a6e4 100644 --- a/src/openvic-simulation/military/Unit.hpp +++ b/src/openvic-simulation/military/Unit.hpp @@ -111,16 +111,13 @@ namespace OpenVic { struct UnitManager { private: - IdentifierRegistry units; + IdentifierRegistry IDENTIFIER_REGISTRY(unit); bool _check_shared_parameters(std::string_view identifier, UNIT_PARAMS); public: - UnitManager(); - bool add_land_unit(std::string_view identifier, UNIT_PARAMS, LAND_PARAMS); bool add_naval_unit(std::string_view identifier, UNIT_PARAMS, NAVY_PARAMS); - IDENTIFIER_REGISTRY_ACCESSORS(unit) static NodeTools::callback_t expect_type_str(NodeTools::Callback auto callback); -- cgit v1.2.3-56-ga3b1