WeaponConfig.ixx File
Configuration for weapon and combat components. More...
Included Headers
#include <cassert>
#include <memory>
#include <helios.engine.mechanics.combat.components>
#include <helios.engine.modules.spatial.transform.components>
#include <helios.engine.ecs.GameObject>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | builder |
|
Fluent builder pattern for constructing GameObjects. More... | |
| namespace | gameObject |
|
Factory and prototype classes for GameObject construction. More... | |
| namespace | builders |
|
Domain-specific builders for configuring different aspects of GameObjects. More... | |
| namespace | configs |
|
Fine-grained configuration classes for component setup. More... | |
Classes Index
| class | WeaponConfig |
|
Fluent configuration for weapon and projectile systems. More... | |
Description
Configuration for weapon and combat components.
File Listing
The file content with the documentation metadata removed is:
18export namespace helios::engine::builder::gameObject::builders::configs {
26 class WeaponConfig {
31 helios::engine::ecs::GameObject gameObject_;
40 explicit WeaponConfig(helios::engine::ecs::GameObject gameObject) : gameObject_(gameObject) {
41 gameObject_.add<helios::engine::mechanics::combat::components::Aim2DComponent>();
51 WeaponConfig& fireRate(const float fireRate) {
52 gameObject_.getOrAdd<helios::engine::mechanics::combat::components::ShootComponent>()
53 .setFireRate(fireRate);
55 auto* transformComponent_ = gameObject_.get<helios::engine::modules::spatial::transform::components::ComposeTransformComponent>();
56 auto* ac = gameObject_.get<helios::engine::mechanics::combat::components::Aim2DComponent>();
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.