diff options
author | Hop311 <hop3114@gmail.com> | 2023-08-17 21:18:28 +0200 |
---|---|---|
committer | Hop311 <hop3114@gmail.com> | 2023-08-20 19:30:03 +0200 |
commit | 6f4a6c77c6f2613e65a403c3a2964d5041a538c7 (patch) | |
tree | 59829a5914ddcbe0bec150da536b06176c9e0055 /src/openvic/map/Province.hpp | |
parent | bec619fc8f554cb075fcef2428f3b6bdb5e88e82 (diff) |
Moved index_t back to Province
Diffstat (limited to 'src/openvic/map/Province.hpp')
-rw-r--r-- | src/openvic/map/Province.hpp | 3 |
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; |