diff options
author | Aki <please@ignore.pl> | 2023-01-10 00:57:41 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2023-01-10 00:57:41 +0100 |
commit | 0e91fc6a8e14eebb5a89b260f66e5e74b42074bb (patch) | |
tree | ea98c193cd2822ed0ecadfbffc91b10c43792d4d /campaign/include | |
parent | 9d752200d3412eeea70327d8f544877bafc5b6d2 (diff) | |
download | kurator-0e91fc6a8e14eebb5a89b260f66e5e74b42074bb.zip kurator-0e91fc6a8e14eebb5a89b260f66e5e74b42074bb.tar.gz kurator-0e91fc6a8e14eebb5a89b260f66e5e74b42074bb.tar.bz2 |
Extracted ship loadout into own class
Diffstat (limited to 'campaign/include')
-rw-r--r-- | campaign/include/kurator/campaign/Loadout.h | 23 | ||||
-rw-r--r-- | campaign/include/kurator/campaign/ShipConfig.h | 7 |
2 files changed, 26 insertions, 4 deletions
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 <vector> + +#include <kurator/universe/ShipType.h> +#include <kurator/universe/TurretType.h> + + +namespace kurator +{ +namespace campaign +{ + + +struct Loadout +{ + universe::ShipType type; + std::vector<universe::TurretType> 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 <string> #include <vector> -#include <kurator/universe/ShipType.h> -#include <kurator/universe/TurretType.h> #include <kurator/universe/UniqueIdentifier.h> +#include "Loadout.h" + namespace kurator { @@ -18,8 +18,7 @@ struct ShipConfig { universe::UniqueIdentifier identifier; int team; - universe::ShipType type; - std::vector<universe::TurretType> turrets; + Loadout loadout; }; |