diff options
author | zaaarf <me@zaaarf.foo> | 2023-12-10 23:15:41 +0100 |
---|---|---|
committer | zaaarf <me@zaaarf.foo> | 2023-12-10 23:15:41 +0100 |
commit | 4ef33d4df6198e613b0f27406d49978c8ea2fb97 (patch) | |
tree | 7f07835485b877f3c01c52c188892499e5812f9b /src/openvic-simulation/map/Crime.hpp | |
parent | 1eb28bd4fb959b69a30013f6438f0257a2ee7b03 (diff) |
feat: improved identifier registry macro
Diffstat (limited to 'src/openvic-simulation/map/Crime.hpp')
-rw-r--r-- | src/openvic-simulation/map/Crime.hpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/openvic-simulation/map/Crime.hpp b/src/openvic-simulation/map/Crime.hpp index d0dd844..26f52ab 100644 --- a/src/openvic-simulation/map/Crime.hpp +++ b/src/openvic-simulation/map/Crime.hpp @@ -17,15 +17,12 @@ namespace OpenVic { struct CrimeManager { private: - IdentifierRegistry<Crime> crime_modifiers; + IdentifierRegistry<Crime> IDENTIFIER_REGISTRY(crime_modifier); public: - CrimeManager(); - bool add_crime_modifier( std::string_view identifier, ModifierValue&& values, Modifier::icon_t icon, bool default_active ); - IDENTIFIER_REGISTRY_ACCESSORS(crime_modifier) bool load_crime_modifiers(ModifierManager const& modifier_manager, ast::NodeCPtr root); }; |