Function in ldk.h

ldk_game_instance_initialize

Initialize the game instance.

LDK_API bool ldk_game_instance_initialize(void);

Returns

True if the operation succeeds; false otherwise.

Function in ldk.h

ldk_game_instance_is_paused

Check whether the game instance is paused.

LDK_API bool ldk_game_instance_is_paused(void);

Returns

True when the queried condition holds; false otherwise.

Function in ldk.h

ldk_game_instance_is_started

Check whether the game instance is started.

LDK_API bool ldk_game_instance_is_started(void);

Returns

True when the queried condition holds; false otherwise.

Function in ldk.h

ldk_game_instance_is_stepping

Check whether the game instance is in a single-step update.

LDK_API bool ldk_game_instance_is_stepping(void);

Returns

True when the queried condition holds; false otherwise.

Function in ldk.h

ldk_game_instance_is_updating

Check whether the game instance is currently updating.

LDK_API bool ldk_game_instance_is_updating(void);

Returns

True when the queried condition holds; false otherwise.

Function in ldk.h

ldk_game_instance_load_from_shared_lib

Load a game module from a dynamic library.

LDK_API bool ldk_game_instance_load_from_shared_lib(const char *path);

Parameters

const char *path
Path identifying the file or resource.

Returns

True if the operation succeeds; false otherwise.

Function in ldk.h

ldk_game_instance_load_static

Load a statically linked game instance.

LDK_API bool ldk_game_instance_load_static(void);

Returns

True if the operation succeeds; false otherwise.

Function in ldk.h

ldk_game_instance_pause

Pause the game instance.

LDK_API bool ldk_game_instance_pause(void);

Returns

True if the operation succeeds; false otherwise.

Function in ldk.h

ldk_game_instance_resume

Resume the game instance.

LDK_API bool ldk_game_instance_resume(void);

Returns

True if the operation succeeds; false otherwise.

Function in ldk.h

ldk_game_instance_start

Start the game instance.

LDK_API bool ldk_game_instance_start(void);

Returns

True if the operation succeeds; false otherwise.

Function in ldk.h

ldk_game_instance_step

Advance a paused game by one update step.

LDK_API bool ldk_game_instance_step(void);

Returns

True if the operation succeeds; false otherwise.

Function in ldk.h

ldk_game_instance_stop

Stop gameplay without unloading the game module or clearing the ECS. The editor may then reload the original scene from disk. A stop requested during an update is completed at the safe frame boundary.

LDK_API bool ldk_game_instance_stop(void);

Returns

True if the operation succeeds; false otherwise.

Function in ldk.h

ldk_game_instance_terminate

Shut down the game instance.

LDK_API void ldk_game_instance_terminate(void);
Function in ldk.h

ldk_game_instance_unload

Unload the game instance.

LDK_API bool ldk_game_instance_unload(void);

Returns

True if the operation succeeds; false otherwise.