From 0e91fc6a8e14eebb5a89b260f66e5e74b42074bb Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 10 Jan 2023 00:57:41 +0100 Subject: Extracted ship loadout into own class --- campaign/include/kurator/campaign/Loadout.h | 23 +++++++++++++++++++++++ campaign/include/kurator/campaign/ShipConfig.h | 7 +++---- 2 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 campaign/include/kurator/campaign/Loadout.h (limited to 'campaign/include') diff --git a/campaign/include/kurator/campaign/Loadout.h b/campaign/include/kurator/campaign/Loadout.h new file mode 100644 index 0000000..e528fd9 --- /dev/null +++ b/campaign/include/kurator/campaign/Loadout.h @@ -0,0 +1,23 @@ +#pragma once + +#include + +#include +#include + + +namespace kurator +{ +namespace campaign +{ + + +struct Loadout +{ + universe::ShipType type; + std::vector turrets; +}; + + +} // namespace campaign +} // namespace kurator diff --git a/campaign/include/kurator/campaign/ShipConfig.h b/campaign/include/kurator/campaign/ShipConfig.h index c8ee449..d596206 100644 --- a/campaign/include/kurator/campaign/ShipConfig.h +++ b/campaign/include/kurator/campaign/ShipConfig.h @@ -3,10 +3,10 @@ #include #include -#include -#include #include +#include "Loadout.h" + namespace kurator { @@ -18,8 +18,7 @@ struct ShipConfig { universe::UniqueIdentifier identifier; int team; - universe::ShipType type; - std::vector turrets; + Loadout loadout; }; -- cgit v1.1