aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/research/Invention.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic-simulation/research/Invention.hpp')
-rw-r--r--src/openvic-simulation/research/Invention.hpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/openvic-simulation/research/Invention.hpp b/src/openvic-simulation/research/Invention.hpp
index dc4256e..a8ce96d 100644
--- a/src/openvic-simulation/research/Invention.hpp
+++ b/src/openvic-simulation/research/Invention.hpp
@@ -38,19 +38,15 @@ namespace OpenVic {
};
struct InventionManager {
- IdentifierRegistry<Invention> inventions;
+ IdentifierRegistry<Invention> IDENTIFIER_REGISTRY(invention);
public:
- InventionManager();
-
bool add_invention(
std::string_view identifier, ModifierValue&& values, bool news, Invention::unit_set_t&& activated_units,
Invention::building_set_t&& activated_buildings, Invention::crime_set_t&& enabled_crimes, bool unlock_gas_attack,
bool unlock_gas_defence
);
- IDENTIFIER_REGISTRY_ACCESSORS(invention)
-
bool load_inventions_file(
ModifierManager const& modifier_manager, UnitManager const& unit_manager,
BuildingTypeManager const& building_type_manager, CrimeManager const& crime_manager, ast::NodeCPtr root