Typedef in ldk_ecs.h

LDKECSEntityIterFn

Callback visiting an ECS entity during iteration.

typedef bool(*LDKECSEntityIterFn)(LDKEntity entity, void *user);

Parameters

entity
Entity to inspect or modify.
user
Opaque caller-supplied data passed to the callback.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_ecs.h

ldk_ecs_initialize

Initialize the ECS.

LDK_API bool ldk_ecs_initialize(
 LDKECS *context,
 u32 entity_page_capacity,
 u32 entity_initial_pages
);

Parameters

LDKECS *context
Context used by this operation.
u32 entity_page_capacity
Entities allocated per page.
u32 entity_initial_pages
Number of entity pages initially allocated.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_ecs.h

ldk_ecs_terminate

Shut down the ECS.

LDK_API void ldk_ecs_terminate(void);