gameObject Folder
Folders Index
| folder | builders |
Files Index
| file | helios/engine/builder/gameObject/_module.ixx |
|
Module aggregation for helios.engine.builder.gameObject. More... | |
| file | GameObjectFactory.ixx |
|
Factory for creating and cloning GameObjects with fluent configuration. More... | |
Description
helios::engine::builder::gameObject
Factory and prototype classes for constructing GameObjects with fluent configuration.
Overview
This submodule contains the core factory pattern implementation for entity creation. The GameObjectFactory provides static methods for creating new entities or cloning existing ones, while GameObjectPrototype enables fluent, callback-based component configuration.
Key Classes
| Class | Purpose |
|---|---|
| GameObjectFactory | Static factory for entity creation and cloning |
| GameObjectPrototype | Internal builder holding all domain-specific builders |
API
GameObjectFactory
GameObjectPrototype
Cloning Behavior
When using GameObjectFactory::from(), only components implementing the Cloneable interface are copied. Components that add dependent components in onAttach() will have those dependencies resolved via getOrAdd() to prevent duplicates.
Related Modules
| Module | Purpose |
|---|---|
| helios.engine.builder.gameObject.builders | Domain-specific builders |
| helios.engine.ecs | GameObject, Component, Cloneable |
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.