aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Province.hpp
diff options
context:
space:
mode:
author Joel Machens <ajmach6@gmail.com>2023-11-27 02:01:10 +0100
committer BrickPi <49528459+BrickPi@users.noreply.github.com>2023-11-28 14:53:38 +0100
commite78249bea71e2503be77f9e4cfab6ffdf164126b (patch)
tree117e2f59081629f89c6837c52bea00c34b0968b4 /src/openvic-simulation/map/Province.hpp
parenta54898b7770e0d66b729216173960686c67e58bb (diff)
States First Pass
Diffstat (limited to 'src/openvic-simulation/map/Province.hpp')
-rw-r--r--src/openvic-simulation/map/Province.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/openvic-simulation/map/Province.hpp b/src/openvic-simulation/map/Province.hpp
index af0bed4..02bc8cf 100644
--- a/src/openvic-simulation/map/Province.hpp
+++ b/src/openvic-simulation/map/Province.hpp
@@ -10,6 +10,7 @@
namespace OpenVic {
struct Map;
struct Region;
+ struct State;
struct Good;
struct TerrainType;
struct TerrainTypeMapping;
@@ -27,7 +28,7 @@ namespace OpenVic {
using distance_t = uint16_t;
using flags_t = uint16_t;
- enum struct colony_status_t : int8_t { STATE, PROTECTORATE, COLONY };
+ enum struct colony_status_t : uint8_t { STATE, PROTECTORATE, COLONY };
struct adjacency_t {
friend struct Province;
@@ -62,6 +63,7 @@ namespace OpenVic {
private:
const index_t PROPERTY(index);
Region* PROPERTY(region);
+ State const* PROPERTY_RW(state);
bool PROPERTY(on_map);
bool PROPERTY(has_region);
bool PROPERTY(water);