LDKSystemCallbackSyncFn
Callback used to synchronize with system execution.
typedef bool(*LDKSystemCallbackSyncFn)(void *user);
Parameters
user
- Opaque caller-supplied data passed to the callback.
Returns
True if the operation succeeds; false otherwise.
LDKSystemInitializeFn
Callback called during ECS system initialization.
typedef int(*LDKSystemInitializeFn)(void *data);
Parameters
data
- Source data or system-owned context for this operation.
Returns
The resulting integer value.
LDKSystemTerminateFn
Callback called during ECS system termination.
typedef void(*LDKSystemTerminateFn)(void *data);
Parameters
data
- Source data or system-owned context for this operation.
LDKSystemUpdateFn
Callback called when an ECS system updates a group.
typedef void(*LDKSystemUpdateFn)(void *data, const LDKEntityGroup *group, float dt);
Parameters
data
- Source data or system-owned context for this operation.
group
- Entity group used for this system update.
dt
- Elapsed time since the preceding update, in seconds.
ldk_system_registry_callback_sync_set
Install an engine-side synchronization point invoked after each executed
update callback. The system registry does not interpret the callback; the
ECS uses it to commit deferred grouping membership changes safely between
systems. Passing NULL clears the handler.
LDK_API bool ldk_system_registry_callback_sync_set(
LDKSystemRegistry *registry,
LDKSystemCallbackSyncFn fn,
void *user
);
Parameters
LDKSystemRegistry *registry
- Registry on which the operation is performed.
LDKSystemCallbackSyncFn fn
- Callback invoked by this operation.
void *user
- Opaque caller-supplied data passed to the callback.
Returns
True if the operation succeeds; false otherwise.