Move2DConfig.ixx File
Configuration for 2D movement components. More...
Included Headers
#include <helios.engine.modules.spatial>
#include <helios.engine.modules.physics>
#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 | Move2DConfig |
|
Fluent configuration for 2D movement behavior. More... | |
Description
Configuration for 2D movement components.
File Listing
The file content with the documentation metadata removed is:
13export namespace helios::engine::builder::gameObject::builders::configs {
24 class Move2DConfig {
29 helios::engine::ecs::GameObject gameObject_;
38 explicit Move2DConfig(helios::engine::ecs::GameObject gameObject) : gameObject_(gameObject) {
40 gameObject_.add<helios::engine::modules::physics::motion::components::Move2DComponent>();
42 gameObject_.getOrAdd<helios::engine::modules::spatial::transform::components::ComposeTransformComponent>();
43 gameObject_.getOrAdd<helios::engine::modules::physics::motion::components::DirectionComponent>();
44 gameObject_.getOrAdd<helios::engine::modules::spatial::transform::components::TranslationStateComponent>();
55 Move2DConfig& speed(const float movementSpeed) {
56 gameObject_.get<helios::engine::modules::physics::motion::components::Move2DComponent>()
69 Move2DConfig& acceleration(const float movementAcceleration) {
70 gameObject_.get<helios::engine::modules::physics::motion::components::Move2DComponent>()
85 Move2DConfig& instantAcceleration(const bool useInstantAcceleration) {
86 gameObject_.get<helios::engine::modules::physics::motion::components::Move2DComponent>()
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.