component_type_desc.h
| File Path | engine/include/conjure/ecs/component_type_desc.h |
| API ↗ | Entities and components |
A component type exported by a module.
Structs
| File | Description |
|---|---|
component_type_desc |
A component type exported by a module. |
system_extension_desc |
A system exported by a module. The name must be unique within its phase (prefix it with the module name): the engine's consumer refuses the load with REGISTRATION_CONFLICT when the phase already holds a system of that name or the module registers it twice. reads and writes are component names, resolved when the system is added and again whenever the registry gains component types; a name nothing has registered yet is one WARN at attach, not an error, and joins the access set once a component of that name is registered. after and before are system names of the same phase; an unknown one is ignored. |
Functions
Public
describe_component
describe_componenttemplate <named_component ComponentType> [[nodiscard]] component_type_desc describe_component(
component_flags flags = component_flags::NONE) noexcept;The record of a C++ type named with CONJURE_COMPONENT: size, alignment, TAG/TRIVIAL flags, the lifecycle hooks and the reflection description (registered in core::reflect on first use, so this is not a constant expression). The serializer stays null: the registry serialises a reflected type through its own deep copy of the description, so no code of the module is reached once it has unloaded. A type without reflection (scripting's script_component) fills the record by hand and supplies its own serializer hooks.