Skip to main content

configs Folder

Files Index

filehelios/engine/builder/gameObject/builders/configs/_module.ixx

Module aggregation for helios.engine.builder.gameObject.builders.configs. More...

fileChaseConfig.ixx

Configuration for AI chase behavior. More...

fileCollisionConfig.ixx

Configuration for collision detection components. More...

fileCombatConfig.ixx
fileGfxEffectsConfig.ixx

Configuration for visual effects components. More...

fileHealthConfig.ixx

Configuration for health components. More...

fileLevelBoundsCollisionConfig.ixx

Configuration for level boundary collision behavior. More...

fileLifecycleConfig.ixx

Configuration class for lifecycle and delayed component activation. More...

fileMeshRenderableConfig.ixx

Configuration for renderable components (mesh, material, shader). More...

fileMove2DConfig.ixx

Configuration for 2D movement components. More...

fileObserverConfig.ixx

Configuration for observer components. More...

fileSceneNodeConfig.ixx

Configuration for scene graph integration. More...

fileScorePoolConfig.ixx

Configuration for score pool association components. More...

fileScoreValueConfig.ixx

Configuration for score value components. More...

fileSpawnConfig.ixx

Configuration for spawn system integration. More...

fileSteeringConfig.ixx

Configuration for steering/rotation components. More...

fileTextRenderableConfig.ixx

Configuration for renderable components (mesh, material, shader). More...

fileTransformConfig.ixx

Configuration for spatial transform components. More...

fileUiTransformConfig.ixx

Configuration for spatial transform components. More...

fileWeaponConfig.ixx

Configuration for weapon and combat components. More...

Description

helios::engine::builder::gameObject::builders::configs

Fine-grained configuration classes for component setup.

Overview

Config classes provide a fluent interface for adding and configuring specific components on a GameObject. Each config is responsible for a narrow domain and automatically handles component dependencies.

Config Classes

Motion

ConfigComponents AddedPurpose
Move2DConfigMove2DComponent, ComposeTransformComponent, DirectionComponent, TranslationStateComponent2D movement with acceleration
SteeringConfigSteeringComponent, ComposeTransformComponent, RotationStateComponent, DirectionComponentRotation and steering

Rendering

ConfigComponents AddedPurpose
MeshRenderableConfigRenderableComponentMesh, material, shader setup
SceneNodeConfigSceneNodeComponentScene graph integration

Spatial

ConfigComponents AddedPurpose
TransformConfigComposeTransformComponent, ScaleStateComponent, TranslationStateComponentTransform setup

Physics

ConfigComponents AddedPurpose
CollisionConfigCollisionStateComponent, AabbColliderComponent, CollisionComponentCollision detection
LevelBoundsCollisionConfigLevelBoundsBehaviorComponentArena boundary responses

Effects

ConfigComponents AddedPurpose
GfxEffectsConfigSpinComponent, RotationStateComponentVisual effects

Gameplay

ConfigComponents AddedPurpose
SpawnConfigSpawnedByProfileComponentSpawn profile tracking
ChaseConfigChaseComponentAI chase behavior
WeaponConfigAim2DComponent, ShootComponentWeapon configuration

Lifecycle

ConfigComponents AddedPurpose
LifecycleConfigDelayedComponentEnablerDelayed component activation

Usage Pattern

All configs follow the fluent builder pattern:

 Move2DConfig{gameObject}
  .speed(5.0f)
  .acceleration(10.0f)
  .instantAcceleration(false);

Automatic Dependencies

Configs automatically add required dependent components using getOrAdd(). This prevents duplicates when multiple configs share dependencies.

Example: Both Move2DConfig and SteeringConfig require ComposeTransformComponent. If both are used, only one instance is created.

Related Modules

ModulePurpose
helios.engine.modules.physicsMotion and collision components
helios.engine.modules.spatialTransform components
helios.engine.modules.renderingRendering components
helios.engine.mechanicsGameplay components
helios.engine.mechanics.lifecycleLifecycle and delayed activation


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.