LDK_GAME_ABI_VERSION
#define LDK_GAME_ABI_VERSION 6u
Umbrella header for LDK games
This header centralizes all required includes and ensures proper integration with the stdx libraries, whether the engine is used as a shared library or statically linked into the game.
#define LDK_GAME_ABI_VERSION 6u
#define LDK_GAME_ABI_VERSION_NAME "game_abi_version"
Game-module entry point reporting the supported ABI version.
typedef u32(*LDKGameABIVersionFunc)(void);
The resulting numeric value.
LDK_GAME_API u32 game_abi_version(void);
LDK_GAME_API bool game_initialize(struct LDKGame *game);
LDK_GAME_API bool game_register_systems(void);
LDK_GAME_API bool game_start(struct LDKGame *game);
LDK_GAME_API void game_update(
struct LDKGame *game,
float delta_time
);
LDK_GAME_API void game_stop(struct LDKGame *game);
LDK_GAME_API void game_terminate(struct LDKGame *game);
LDK_GAME_API u32 game_component_metadata_count(void);
LDK_GAME_API const LDKComponentMeta * game_component_metadata_get(u32 index);
LDK_GAME_API u32 game_system_metadata_count(void);
LDK_GAME_API const LDKSystemMeta * game_system_metadata_get(u32 index);
Game-module entry point reporting the system metadata count.
typedef u32(*LDKGameSystemMetadataCountFunc)(void);
The resulting numeric value.
Game-module entry point retrieving system metadata by index.
typedef const LDKSystemMeta *(*LDKGameSystemMetadataGetFunc)(u32 index);
indexPointer to the requested object or data; NULL when unavailable.
#define LDK_GAME_SYSTEM_METADATA_COUNT_NAME "game_system_metadata_count"
#define LDK_GAME_SYSTEM_METADATA_GET_NAME "game_system_metadata_get"
Game-module entry point called to initialize a game instance.
typedef bool(*LDKGameInitializeFunc)(struct LDKGame *game);
gameTrue if the operation succeeds; false otherwise.
Game-module entry point called when gameplay starts.
typedef bool(*LDKGameStartFunc)(struct LDKGame *game);
gameTrue if the operation succeeds; false otherwise.
Game-module entry point called for a gameplay update.
typedef void(*LDKGameUpdateFunc)(struct LDKGame *game, float delta_time);
gamedelta_timeGame-module entry point called when gameplay stops.
typedef void(*LDKGameStopFunc)(struct LDKGame *game);
gameGame-module entry point called when the game instance is terminated.
typedef void(*LDKGameTerminateFunc)(struct LDKGame *game);
gameGame-module entry point reporting the component metadata count.
typedef u32(*LDKGameComponentMetadataCountFunc)(void);
The resulting numeric value.
Game-module entry point retrieving component metadata by index.
typedef const LDKComponentMeta *(*LDKGameComponentMetadataGetFunc)(u32 index);
indexPointer to the requested object or data; NULL when unavailable.
#define LDK_GAME_INITIALIZE_FUNC_NAME "game_initialize"
#define LDK_GAME_START_FUNC_NAME "game_start"
#define LDK_GAME_UPDATE_FUNC_NAME "game_update"
#define LDK_GAME_STOP_FUNC_NAME "game_stop"
#define LDK_GAME_TERMINATE_FUNC_NAME "game_terminate"
#define LDK_GAME_COMPONENT_METADATA_COUNT_NAME "game_component_metadata_count"
#define LDK_GAME_COMPONENT_METADATA_GET_NAME "game_component_metadata_get"
typedef struct LDKGame{
bool initialized;
void *user_data;
LDKLibrary *lib;
LDKGameInitializeFunc initialize;
LDKGameStartFunc start;
LDKGameUpdateFunc update;
LDKGameStopFunc stop;
LDKGameTerminateFunc terminate;
LDKGameComponentMetadataCountFunc metadata_count;
LDKGameComponentMetadataGetFunc metadata_get;
LDKGameSystemMetadataCountFunc system_metadata_count;
LDKGameSystemMetadataGetFunc system_metadata_get;
}LDKGame;