engine/ecs/ComponentOpsRegistry.ixx File
Global registry mapping ComponentTypeId to ComponentOps. More...
Included Headers
#include <vector>
#include <helios.engine.ecs.types.ComponentTypeId>
#include <helios.engine.ecs.Traits>
#include <helios.engine.ecs.ComponentOps>
#include <helios.engine.ecs.EntityHandle>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | ecs |
|
Core Entity-Component-System architecture. More... | |
Classes Index
| class | ComponentOpsRegistry |
|
Global registry for component lifecycle function pointers. More... | |
Description
Global registry mapping ComponentTypeId to ComponentOps.
File Listing
The file content with the documentation metadata removed is:
17export namespace helios::engine::ecs {
44 class ComponentOpsRegistry {
54 inline static constexpr ComponentOps emptyOps_{};
66 static void setOps(const helios::engine::ecs::types::ComponentTypeId typeId, const ComponentOps& ops) {
68 if (typeId.value() >= operations_.size()) {
69 operations_.resize(typeId.value() + 1);
82 static const ComponentOps& ops(const helios::engine::ecs::types::ComponentTypeId typeId) {
84 if (typeId.value() >= operations_.size()) {
88 return operations_[typeId.value()];
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.