ldk_component_get
Get the component.
LDK_API void * ldk_component_get(
LDKComponentRegistry *module,
u32 component_type,
u32 component_index
);
Parameters
LDKComponentRegistry *module
- Module used by this operation.
u32 component_type
- Registered ECS component type identifier.
u32 component_index
- Zero-based index of the component entry.
Returns
Pointer to the requested object or data; NULL when unavailable.
ldk_component_is_registered
Check whether a component type is registered.
LDK_API bool ldk_component_is_registered(
LDKComponentRegistry *registry,
u32 type
);
Parameters
LDKComponentRegistry *registry
- Registry on which the operation is performed.
u32 type
- Type identifier or kind used by the operation.
Returns
True when the queried condition holds; false otherwise.
ldk_component_name_get
Get the registered name of a component type.
LDK_API const char * ldk_component_name_get(
LDKComponentRegistry *registry,
u32 type
);
Parameters
LDKComponentRegistry *registry
- Registry on which the operation is performed.
u32 type
- Type identifier or kind used by the operation.
Returns
Pointer to the requested object or data; NULL when unavailable.