Aim2DCommand.ixx File
Command for applying 2D aiming direction to GameObjects. More...
Included Headers
#include <helios.engine.runtime.world.GameWorld>
#include <helios.engine.runtime.world.UpdateContext>
#include <helios.engine.mechanics.combat.components.Aim2DComponent>
#include <helios.math.types>
#include <helios.engine.ecs>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | mechanics |
|
High-level gameplay systems and components for game logic. More... | |
| namespace | combat |
|
Combat-related gameplay systems, components, and commands. More... | |
| namespace | commands |
|
Combat-related commands for translating input into combat actions. More... | |
Classes Index
| class | Aim2DCommand |
|
Command that applies 2D aiming direction to a GameObject. More... | |
Description
Command for applying 2D aiming direction to GameObjects.
File Listing
The file content with the documentation metadata removed is:
16export namespace helios::engine::mechanics::combat::commands {
32 class Aim2DCommand {
42 const helios::math::vec2f direction_;
44 const helios::engine::ecs::EntityHandle entityHandle_;
53 explicit Aim2DCommand(
54 const helios::engine::ecs::EntityHandle entityHandle,
55 const helios::math::vec2f direction,
69 void execute(helios::engine::runtime::world::UpdateContext& updateContext) const noexcept {
77 auto* aimComponent = gameObject->get<helios::engine::mechanics::combat::components::Aim2DComponent>();
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.