summaryrefslogtreecommitdiff
path: root/battles/include
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-11-14 00:32:08 +0100
committerAki <please@ignore.pl>2022-11-14 00:32:08 +0100
commit4f3de714cd04ee5d99167f415843573d6bbd9f62 (patch)
tree73d9b37221c8b647bf6c625aaddc0f8cb8ae475c /battles/include
parent39ae4f2fd4c382f25ab98c6e98816e3e3a6f4e22 (diff)
downloadkurator-4f3de714cd04ee5d99167f415843573d6bbd9f62.zip
kurator-4f3de714cd04ee5d99167f415843573d6bbd9f62.tar.gz
kurator-4f3de714cd04ee5d99167f415843573d6bbd9f62.tar.bz2
Implemented naive turrets and targeting mechanics
Coupling between components, implementation of systems and behaviour of some state-related methods should be refactored, but the overall look is nice.
Diffstat (limited to 'battles/include')
-rw-r--r--battles/include/kurator/battles/components.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/battles/include/kurator/battles/components.h b/battles/include/kurator/battles/components.h
index 35a9251..8f5813b 100644
--- a/battles/include/kurator/battles/components.h
+++ b/battles/include/kurator/battles/components.h
@@ -44,5 +44,12 @@ struct HitPoints
};
+struct TurretControl
+{
+ double reload;
+ entt::entity owner;
+};
+
+
} // namespace battles
} // namespace kurator