From 6f4a6c77c6f2613e65a403c3a2964d5041a538c7 Mon Sep 17 00:00:00 2001 From: Hop311 Date: Thu, 17 Aug 2023 20:18:28 +0100 Subject: Moved index_t back to Province --- src/openvic/map/Province.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/openvic/map/Province.hpp') 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; -- cgit v1.2.3-56-ga3b1