Struct in ldk_entity.h

LDKEntityRegistry

typedef struct LDKEntityRegistry{
  XHPool pool;
  void(*component_state_changed)(void *user, LDKEntity entity);
  void *component_state_user;
}LDKEntityRegistry;
Function in ldk_entity.h

ldk_entity_module_initialize

Initialize the entity module.

LDK_API bool ldk_entity_module_initialize(
 LDKEntityRegistry *system,
 u32 page_capacity,
 u32 initial_pages
);

Parameters

LDKEntityRegistry *system
System used by this operation.
u32 page_capacity
Number of entries per allocation page.
u32 initial_pages
Number of pages initially allocated.

Returns

True if the operation succeeds; false otherwise.