aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/economy/BuildingInstance.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-11-22 23:11:42 +0100
committer GitHub <noreply@github.com>2023-11-22 23:11:42 +0100
commita54898b7770e0d66b729216173960686c67e58bb (patch)
treeaf8ed836a4789ef94c5bfed27abb713922f45af3 /src/openvic-simulation/economy/BuildingInstance.hpp
parente76336cd92639f4ec71088fc4c80aea4c25528cd (diff)
parent738a203e0d8b4df87c42888043b99c13d5d97511 (diff)
Merge pull request #78 from OpenVicProject/property-macro
Refactoring (*mostly* related to the property macro)
Diffstat (limited to 'src/openvic-simulation/economy/BuildingInstance.hpp')
-rw-r--r--src/openvic-simulation/economy/BuildingInstance.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/openvic-simulation/economy/BuildingInstance.hpp b/src/openvic-simulation/economy/BuildingInstance.hpp
index 9fc9df1..00e2dd6 100644
--- a/src/openvic-simulation/economy/BuildingInstance.hpp
+++ b/src/openvic-simulation/economy/BuildingInstance.hpp
@@ -12,7 +12,7 @@ namespace OpenVic {
private:
BuildingType const& PROPERTY(building_type);
- level_t PROPERTY(level);
+ level_t PROPERTY_RW(level);
ExpansionState PROPERTY(expansion_state);
Date PROPERTY(start_date)
Date PROPERTY(end_date);
@@ -24,8 +24,6 @@ namespace OpenVic {
BuildingInstance(BuildingType const& new_building_type, level_t new_level = 0);
BuildingInstance(BuildingInstance&&) = default;
- void set_level(level_t new_level);
-
bool expand();
void update_state(Date today);
void tick(Date today);