aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/military/UnitInstance.cpp
blob: 1f49205c56dd3dbfb691702b531210a154796fa5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "UnitInstance.hpp"

using namespace OpenVic;

UnitInstanceBranched<UnitType::branch_t::LAND>::UnitInstanceBranched(
   std::string_view new_name, RegimentType const& new_regiment_type, Pop* new_pop
) : UnitInstance { new_name, new_regiment_type }, pop { new_pop } {}

UnitInstanceBranched<UnitType::branch_t::NAVAL>::UnitInstanceBranched(
   std::string_view new_name, ShipType const& new_ship_type
) : UnitInstance { new_name, new_ship_type } {}