From 9de52991aaec19076cc79b54e097444532b5300f Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 9 Nov 2022 17:17:22 +0100 Subject: Created naive battle setup and view into it --- battles/include/kurator/battles/Point.h | 18 +++++++++++++++++ battles/include/kurator/battles/components.h | 29 ++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 battles/include/kurator/battles/Point.h create mode 100644 battles/include/kurator/battles/components.h (limited to 'battles/include') diff --git a/battles/include/kurator/battles/Point.h b/battles/include/kurator/battles/Point.h new file mode 100644 index 0000000..71a6993 --- /dev/null +++ b/battles/include/kurator/battles/Point.h @@ -0,0 +1,18 @@ +#pragma once + + +namespace kurator +{ +namespace battles +{ + + +struct Point +{ + double x; + double y; +}; + + +} // namespace battles +} // namespace kurator diff --git a/battles/include/kurator/battles/components.h b/battles/include/kurator/battles/components.h new file mode 100644 index 0000000..03b93a2 --- /dev/null +++ b/battles/include/kurator/battles/components.h @@ -0,0 +1,29 @@ +#pragma once + +#include + +#include "Point.h" + + +namespace kurator +{ +namespace battles +{ + + +struct Transform +{ + Point position; + Point rotation; + entt::entity reference_frame = entt::null; +}; + + +struct Team +{ + int id; +}; + + +} // namespace battles +} // namespace kurator -- cgit v1.1