aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/research/Invention.hpp
diff options
context:
space:
mode:
author zaaarf <me@zaaarf.foo>2024-02-12 12:15:04 +0100
committer zaaarf <me@zaaarf.foo>2024-03-16 14:01:15 +0100
commit023860d53a90774dcdba84ad7c0dca3c944c9a49 (patch)
treed5b186facf7c3a08e6ccf2e8261b7de054957a41 /src/openvic-simulation/research/Invention.hpp
parent2c892c99a6647be15ef23cabf6cc40f08769283d (diff)
feat: unit instance type definition, renamed existing structs for consistencymilitary-units
Diffstat (limited to 'src/openvic-simulation/research/Invention.hpp')
-rw-r--r--src/openvic-simulation/research/Invention.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openvic-simulation/research/Invention.hpp b/src/openvic-simulation/research/Invention.hpp
index 2b8100d..43a4e10 100644
--- a/src/openvic-simulation/research/Invention.hpp
+++ b/src/openvic-simulation/research/Invention.hpp
@@ -6,18 +6,18 @@
#include "openvic-simulation/types/OrderedContainers.hpp"
namespace OpenVic {
- struct Unit;
+ struct UnitType;
struct BuildingType;
struct Crime;
- struct UnitManager;
+ struct UnitTypeManager;
struct BuildingTypeManager;
struct CrimeManager;
struct Invention : Modifier {
friend struct InventionManager;
//TODO implement limit and chance
- using unit_set_t = ordered_set<Unit const*>;
+ using unit_set_t = ordered_set<UnitType const*>;
using building_set_t = ordered_set<BuildingType const*>;
using crime_set_t = ordered_set<Crime const*>;
@@ -54,7 +54,7 @@ namespace OpenVic {
);
bool load_inventions_file(
- ModifierManager const& modifier_manager, UnitManager const& unit_manager,
+ ModifierManager const& modifier_manager, UnitTypeManager const& unit_type_manager,
BuildingTypeManager const& building_type_manager, CrimeManager const& crime_manager, ast::NodeCPtr root
); // inventions/*.txt