diff options
Diffstat (limited to 'sim/include')
-rw-r--r-- | sim/include/kurator/sim/TurretControl.h | 24 | ||||
-rw-r--r-- | sim/include/kurator/sim/components.h | 9 |
2 files changed, 24 insertions, 9 deletions
diff --git a/sim/include/kurator/sim/TurretControl.h b/sim/include/kurator/sim/TurretControl.h new file mode 100644 index 0000000..f6dc13a --- /dev/null +++ b/sim/include/kurator/sim/TurretControl.h @@ -0,0 +1,24 @@ +#pragma once + +#include <entt/entity/entity.hpp> +#include <entt/signal/dispatcher.hpp> + + +namespace kurator +{ +namespace sim +{ + + +struct TurretControl +{ + double delay; + double reload; + int rounds; + entt::entity owner; + static void update(entt::registry& registry, entt::dispatcher& dispatcher, float dt); +}; + + +} // namespace sim +} // namespace kurator diff --git a/sim/include/kurator/sim/components.h b/sim/include/kurator/sim/components.h index 7190369..34b0f93 100644 --- a/sim/include/kurator/sim/components.h +++ b/sim/include/kurator/sim/components.h @@ -39,14 +39,5 @@ struct HitPoints }; -struct TurretControl -{ - double delay; - double reload; - int rounds; - entt::entity owner; -}; - - } // namespace sim } // namespace kurator |