aboutsummaryrefslogtreecommitdiff
path: root/src/openvic/map/Province.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic/map/Province.hpp')
-rw-r--r--src/openvic/map/Province.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openvic/map/Province.hpp b/src/openvic/map/Province.hpp
index 20c5870..c2a8ac9 100644
--- a/src/openvic/map/Province.hpp
+++ b/src/openvic/map/Province.hpp
@@ -14,8 +14,11 @@ namespace OpenVic {
struct Province : HasIdentifierAndColour {
friend struct Map;
+ using index_t = uint16_t;
using life_rating_t = int8_t;
+ static constexpr index_t NULL_INDEX = 0, MAX_INDEX = (1 << (8 * sizeof(index_t))) - 1;
+
private:
const index_t index;
Region* region = nullptr;