From 867393652a1199d4803c5707902f215f36c45350 Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 13 Dec 2022 18:58:56 +0100 Subject: Added naive campaign-unique ship identifiers --- campaign/include/kurator/campaign/ShipConfig.h | 3 +++ campaign/include/kurator/campaign/UniqueIdentifier.h | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 campaign/include/kurator/campaign/UniqueIdentifier.h (limited to 'campaign/include') diff --git a/campaign/include/kurator/campaign/ShipConfig.h b/campaign/include/kurator/campaign/ShipConfig.h index cb5ca48..9aec2fa 100644 --- a/campaign/include/kurator/campaign/ShipConfig.h +++ b/campaign/include/kurator/campaign/ShipConfig.h @@ -3,6 +3,8 @@ #include #include +#include "UniqueIdentifier.h" + namespace kurator { @@ -12,6 +14,7 @@ namespace campaign struct ShipConfig { + UniqueIdentifier identifier; int team; std::string type; std::vector turrets; diff --git a/campaign/include/kurator/campaign/UniqueIdentifier.h b/campaign/include/kurator/campaign/UniqueIdentifier.h new file mode 100644 index 0000000..6e3c4f5 --- /dev/null +++ b/campaign/include/kurator/campaign/UniqueIdentifier.h @@ -0,0 +1,17 @@ +#pragma once + + +namespace kurator +{ +namespace campaign +{ + + +struct UniqueIdentifier +{ + int id; +}; + + +} // namespace campaign +} // namespace kurator -- cgit v1.1