aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Province.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-09-28 20:51:56 +0200
committer GitHub <noreply@github.com>2023-09-28 20:51:56 +0200
commitae0be2a8d2e1b717f6c4a4617096f17089ce8701 (patch)
tree897742b074547e4d1694ddff1f4e9e8f14d82d6a /src/openvic-simulation/map/Province.hpp
parentd21255b2ca2fe6cea7f41e88fbb22d138bac74eb (diff)
parentc541a249247b7fe3bdd4c62bce6638e875790f8a (diff)
Merge pull request #37 from OpenVicProject/dataloading-buildings
Dataloading buildings
Diffstat (limited to 'src/openvic-simulation/map/Province.hpp')
-rw-r--r--src/openvic-simulation/map/Province.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openvic-simulation/map/Province.hpp b/src/openvic-simulation/map/Province.hpp
index 6e4ac7e..349c16d 100644
--- a/src/openvic-simulation/map/Province.hpp
+++ b/src/openvic-simulation/map/Province.hpp
@@ -1,6 +1,6 @@
#pragma once
-#include <limits>
+#include <cassert>
#include "openvic-simulation/map/Building.hpp"
#include "openvic-simulation/pop/Pop.hpp"
@@ -46,7 +46,7 @@ namespace OpenVic {
Region* region = nullptr;
bool has_region = false, water = false;
life_rating_t life_rating = 0;
- IdentifierRegistry<Building> buildings;
+ IdentifierRegistry<BuildingInstance> buildings;
// TODO - change this into a factory-like structure
Good const* rgo = nullptr;
@@ -73,8 +73,8 @@ namespace OpenVic {
life_rating_t get_life_rating() const;
bool load_positions(BuildingManager const& building_manager, ast::NodeCPtr root);
- bool add_building(Building&& building);
- IDENTIFIER_REGISTRY_ACCESSORS(Building, building)
+ bool add_building(BuildingInstance&& building_instance);
+ IDENTIFIER_REGISTRY_ACCESSORS(BuildingInstance, building)
void reset_buildings();
bool expand_building(const std::string_view building_type_identifier);
Good const* get_rgo() const;