Struct in ldk_component.h

LDKComponentRegistry

typedef struct LDKComponentRegistry{
  XHashtable_u32_registered_component *table;
}LDKComponentRegistry;
Function in ldk_component.h

ldk_component_registry_initialize

Initialize the component registry.

LDK_API bool ldk_component_registry_initialize(LDKComponentRegistry *registry);

Parameters

LDKComponentRegistry *registry
Registry on which the operation is performed.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_component.h

ldk_component_registry_remove_all

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
);

Parameters

LDKComponentRegistry *registry
Registry on which the operation is performed.
LDKEntityRegistry *entity_system
Entity system used by this operation.
LDKEntity entity
Entity to inspect or modify.