diff options
author | Hop311 <hop3114@gmail.com> | 2023-04-11 21:28:18 +0200 |
---|---|---|
committer | Hop311 <hop3114@gmail.com> | 2023-04-11 21:28:18 +0200 |
commit | 7a84dc859a991ebb385df205a6d74b5de8ec6980 (patch) | |
tree | 6bf237f3efbeab1d2e9ddab5f563610ee6d6d20c /extension | |
parent | 51dcd0c3e205c80d57da2e3d702cb612b77f4411 (diff) |
Added requirement comments
Diffstat (limited to 'extension')
-rw-r--r-- | extension/src/MapSingleton.cpp | 3 | ||||
-rw-r--r-- | extension/src/openvic2/Map.hpp | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/extension/src/MapSingleton.cpp b/extension/src/MapSingleton.cpp index 8c38926..7ad404c 100644 --- a/extension/src/MapSingleton.cpp +++ b/extension/src/MapSingleton.cpp @@ -31,6 +31,9 @@ MapSingleton* MapSingleton::get_singleton() { return singleton; } +/* REQUIREMENTS: + * MAP-21, MAP-25 + */ MapSingleton::MapSingleton() { ERR_FAIL_COND(singleton != nullptr); singleton = this; diff --git a/extension/src/openvic2/Map.hpp b/extension/src/openvic2/Map.hpp index 20e8a92..42963c9 100644 --- a/extension/src/openvic2/Map.hpp +++ b/extension/src/openvic2/Map.hpp @@ -11,6 +11,9 @@ namespace OpenVic2 { struct Region; struct Map; + /* REQUIREMENTS: + * MAP-43, MAP-47 + */ struct Province { friend struct Map; @@ -36,6 +39,9 @@ namespace OpenVic2 { std::string to_string() const; }; + /* REQUIREMENTS: + * MAP-6, MAP-44, MAP-48 + */ struct Region { friend struct Map; private: @@ -67,6 +73,9 @@ namespace OpenVic2 { colour_func_t get_colour_func() const; }; + /* REQUIREMENTS: + * MAP-4 + */ struct Map { private: std::vector<Province> provinces; |