LDKGroupingDesc
typedef struct LDKGroupingDesc{
u64 id;
const char *name;
const u32 *component_types;
u32 component_count;
}LDKGroupingDesc;
typedef struct LDKGroupingDesc{
u64 id;
const char *name;
const u32 *component_types;
u32 component_count;
}LDKGroupingDesc;
Get a registered ECS grouping by index.
LDK_API bool ldk_ecs_grouping_at(
u32 index,
LDKGroupingDesc *out
);
u32 indexLDKGroupingDesc *outTrue if the operation succeeds; false otherwise.
Legacy compatibility no-op. Project [groupings] sections are ignored.
LDK_API bool ldk_ecs_grouping_configure_file(const char *ini_path);
const char *ini_pathTrue if the operation succeeds; false otherwise.
Count the registered ECS group descriptions.
LDK_API u32 ldk_ecs_grouping_count(void);
Number of matching entries.
Find a registered ECS grouping by its stable ID.
LDK_API bool ldk_ecs_grouping_find_by_id(
u64 id,
LDKGroupingDesc *out
);
u64 idLDKGroupingDesc *outTrue if the operation succeeds; false otherwise.
Get the runtime entity group matching a registered grouping ID.
LDK_API const LDKEntityGroup * ldk_ecs_grouping_get(u64 id);
u64 idPointer to the requested object or data; NULL when unavailable.
Zero means an empty requirement set (or an invalid declaration). Hashes count and sorted unique u32 IDs in fixed little-endian byte order.
LDK_API u64 ldk_ecs_grouping_id(
const u32 *component_types,
u32 component_count
);
const u32 *component_typesu32 component_countComputed identifier or hash.
True when a grouping originated in the current configuration file.
LDK_API bool ldk_ecs_grouping_is_config_defined(u64 id);
u64 idTrue when the queried condition holds; false otherwise.
Register the ECS grouping.
LDK_API bool ldk_ecs_grouping_register(const LDKGroupingDesc *desc);
const LDKGroupingDesc *descTrue if the operation succeeds; false otherwise.
Clear all runtime membership state for registered Entity Groups while preserving their definitions. Intended for full scene/ECS entity resets.
LDK_API bool ldk_ecs_grouping_runtime_reset(void);
True if the operation succeeds; false otherwise.
Unregister the ECS grouping.
LDK_API bool ldk_ecs_grouping_unregister(u64 id);
u64 idTrue if the operation succeeds; false otherwise.