ldk_game_instance_initialize
Initialize the game instance.
LDK_API bool ldk_game_instance_initialize(void);
Returns
True if the operation succeeds; false otherwise.
Initialize the game instance.
LDK_API bool ldk_game_instance_initialize(void);
True if the operation succeeds; false otherwise.
Check whether the game instance is paused.
LDK_API bool ldk_game_instance_is_paused(void);
True when the queried condition holds; false otherwise.
Check whether the game instance is started.
LDK_API bool ldk_game_instance_is_started(void);
True when the queried condition holds; false otherwise.
Check whether the game instance is in a single-step update.
LDK_API bool ldk_game_instance_is_stepping(void);
True when the queried condition holds; false otherwise.
Check whether the game instance is currently updating.
LDK_API bool ldk_game_instance_is_updating(void);
True when the queried condition holds; false otherwise.
Load a game module from a dynamic library.
LDK_API bool ldk_game_instance_load_from_shared_lib(const char *path);
const char *pathTrue if the operation succeeds; false otherwise.
Load a statically linked game instance.
LDK_API bool ldk_game_instance_load_static(void);
True if the operation succeeds; false otherwise.
Pause the game instance.
LDK_API bool ldk_game_instance_pause(void);
True if the operation succeeds; false otherwise.
Resume the game instance.
LDK_API bool ldk_game_instance_resume(void);
True if the operation succeeds; false otherwise.
Start the game instance.
LDK_API bool ldk_game_instance_start(void);
True if the operation succeeds; false otherwise.
Advance a paused game by one update step.
LDK_API bool ldk_game_instance_step(void);
True if the operation succeeds; false otherwise.
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);
True if the operation succeeds; false otherwise.
Shut down the game instance.
LDK_API void ldk_game_instance_terminate(void);
Unload the game instance.
LDK_API bool ldk_game_instance_unload(void);
True if the operation succeeds; false otherwise.