LDKComponentRegistry
typedef struct LDKComponentRegistry{
XHashtable_u32_registered_component *table;
}LDKComponentRegistry;
typedef struct LDKComponentRegistry{
XHashtable_u32_registered_component *table;
}LDKComponentRegistry;
Register the component.
LDK_API bool ldk_component_register(
LDKComponentRegistry *registry,
const LDKComponentDesc *desc
);
LDKComponentRegistry *registryconst LDKComponentDesc *descTrue if the operation succeeds; false otherwise.
Initialize the component registry.
LDK_API bool ldk_component_registry_initialize(LDKComponentRegistry *registry);
LDKComponentRegistry *registryTrue if the operation succeeds; false otherwise.
Removes (destroys) ALL components, including core engine components like Transform. Intended for entity destruction only.
LDK_API void ldk_component_registry_remove_all(
LDKComponentRegistry *registry,
LDKEntityRegistry *entity_system,
LDKEntity entity
);
LDKComponentRegistry *registryLDKEntityRegistry *entity_systemLDKEntity entityShut down the component registry.
LDK_API void ldk_component_registry_terminate(LDKComponentRegistry *registry);
LDKComponentRegistry *registry