summaryrefslogtreecommitdiff
path: root/stats
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-12-13 23:29:03 +0100
committerAki <please@ignore.pl>2022-12-13 23:29:03 +0100
commitd599de1ffc38f8c7f17b454fdf6eb3aaf320c89e (patch)
treeacf50099e165ac5caa8a92057a274f559f30721c /stats
parent867393652a1199d4803c5707902f215f36c45350 (diff)
downloadkurator-d599de1ffc38f8c7f17b454fdf6eb3aaf320c89e.zip
kurator-d599de1ffc38f8c7f17b454fdf6eb3aaf320c89e.tar.gz
kurator-d599de1ffc38f8c7f17b454fdf6eb3aaf320c89e.tar.bz2
Added naive events for ship destruction
Diffstat (limited to 'stats')
-rw-r--r--stats/CMakeLists.txt12
-rw-r--r--stats/include/kurator/stats/events.h22
2 files changed, 34 insertions, 0 deletions
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 <kurator/campaign/UniqueIdentifier.h>
+
+
+namespace kurator
+{
+namespace stats
+{
+
+
+struct ShipLeft
+{
+ double time;
+ campaign::UniqueIdentifier ship;
+ int team;
+ bool destroyed;
+};
+
+
+} // namespace stats
+} // namespace kurator