aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/military/UnitInstanceGroup.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-07-21 15:09:25 +0200
committer hop311 <hop3114@gmail.com>2024-07-22 20:21:27 +0200
commit67cbd14630c4344902d3fa1ddca178809da4293b (patch)
tree9df96829dd0f9a0bd7c2e6b0e047547aa4bff3a7 /src/openvic-simulation/military/UnitInstanceGroup.hpp
parentd1f3a96b72dd06b5f97dd4643e5f016a02b42ea6 (diff)
Fleshing out Country, State and Province instances + historycountry-instance
Diffstat (limited to 'src/openvic-simulation/military/UnitInstanceGroup.hpp')
-rw-r--r--src/openvic-simulation/military/UnitInstanceGroup.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/openvic-simulation/military/UnitInstanceGroup.hpp b/src/openvic-simulation/military/UnitInstanceGroup.hpp
index 4fe0cba..78ff289 100644
--- a/src/openvic-simulation/military/UnitInstanceGroup.hpp
+++ b/src/openvic-simulation/military/UnitInstanceGroup.hpp
@@ -90,7 +90,7 @@ namespace OpenVic {
friend struct UnitInstanceManager;
private:
- std::vector<ArmyInstance const*> PROPERTY(carried_armies);
+ std::vector<ArmyInstance*> PROPERTY(carried_armies);
UnitInstanceGroupBranched(
std::string_view new_name,
@@ -99,6 +99,8 @@ namespace OpenVic {
public:
UnitInstanceGroupBranched(UnitInstanceGroupBranched&&) = default;
+
+ fixed_point_t get_total_consumed_supply() const;
};
using NavyInstance = UnitInstanceGroupBranched<UnitType::branch_t::NAVAL>;