Factory system for creating components from serialized data.
More...
#include <main/Component.hpp>
Factory system for creating components from serialized data.
Manages component type registration and instantiation from serialization data. Allows components to be created dynamically at runtime.
◆ Create()
Create component from serialized data.
- Parameters
-
type | type string of the component to create |
stream | text serializable stream containing component data |
- Returns
- Pointer to created component
◆ RegisterComponentType()
template<class T>
static bool StevEngine::CreateComponents::RegisterComponentType |
( |
std::string | type | ) |
|
|
inlinestatic |
Register a component type for creation.
- Template Parameters
-
- Parameters
-
type | String identifier for component type |
- Returns
- true if registration succeeded, false if type already registered
The documentation for this class was generated from the following files: