LDKSystemBucket
Execution bucket for a system update callback.
UPDATE is zero intentionally so a zero-initialized descriptor gets the
normal/default gameplay bucket.
typedef enum LDKSystemBucket{
LDK_SYSTEM_BUCKET_UPDATE=0,
LDK_SYSTEM_BUCKET_PRE_UPDATE,
LDK_SYSTEM_BUCKET_POST_UPDATE,
LDK_SYSTEM_BUCKET_RENDER,
LDK_SYSTEM_BUCKET_COUNT
}LDKSystemBucket;
ldk_system_registry_run_bucket
Run initialized, enabled systems whose single update callback belongs to the
requested bucket. While paused, only systems with RUN_WHEN_PAUSED execute.
Structural and lifecycle changes are forbidden during update and lifecycle
callbacks.
LDK_API bool ldk_system_registry_run_bucket(
LDKSystemRegistry *registry,
LDKSystemBucket bucket,
float dt
);
Parameters
LDKSystemRegistry *registry
- Registry on which the operation is performed.
LDKSystemBucket bucket
- Bucket used by this operation.
float dt
- Elapsed time since the preceding update, in seconds.
Returns
True if the operation succeeds; false otherwise.