From d599de1ffc38f8c7f17b454fdf6eb3aaf320c89e Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 13 Dec 2022 23:29:03 +0100 Subject: Added naive events for ship destruction --- stats/CMakeLists.txt | 12 ++++++++++++ stats/include/kurator/stats/events.h | 22 ++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 stats/CMakeLists.txt create mode 100644 stats/include/kurator/stats/events.h (limited to 'stats') diff --git a/stats/CMakeLists.txt b/stats/CMakeLists.txt new file mode 100644 index 0000000..02b68a8 --- /dev/null +++ b/stats/CMakeLists.txt @@ -0,0 +1,12 @@ +project(stats) +add_library( + ${PROJECT_NAME} INTERFACE +) +target_include_directories( + ${PROJECT_NAME} + INTERFACE include +) +target_link_libraries( + ${PROJECT_NAME} + INTERFACE campaign +) diff --git a/stats/include/kurator/stats/events.h b/stats/include/kurator/stats/events.h new file mode 100644 index 0000000..a9a9612 --- /dev/null +++ b/stats/include/kurator/stats/events.h @@ -0,0 +1,22 @@ +#pragma once + +#include + + +namespace kurator +{ +namespace stats +{ + + +struct ShipLeft +{ + double time; + campaign::UniqueIdentifier ship; + int team; + bool destroyed; +}; + + +} // namespace stats +} // namespace kurator -- cgit v1.1