diff options
author | Aki <please@ignore.pl> | 2022-11-09 17:17:22 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-11-09 17:17:22 +0100 |
commit | 9de52991aaec19076cc79b54e097444532b5300f (patch) | |
tree | 76cb87452c9604760d8218aa534c982c4ab847d1 /battles/include | |
parent | caa48ce5946d093daaf950751dfa1432ea5373a9 (diff) | |
download | kurator-9de52991aaec19076cc79b54e097444532b5300f.zip kurator-9de52991aaec19076cc79b54e097444532b5300f.tar.gz kurator-9de52991aaec19076cc79b54e097444532b5300f.tar.bz2 |
Created naive battle setup and view into it
Diffstat (limited to 'battles/include')
-rw-r--r-- | battles/include/kurator/battles/Point.h | 18 | ||||
-rw-r--r-- | battles/include/kurator/battles/components.h | 29 |
2 files changed, 47 insertions, 0 deletions
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 <entt/entity/entity.hpp> + +#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 |