C SDK
Loading...
Searching...
No Matches
Data Structures | Typedefs | Enumerations
PleyCore

Data Structures

struct  PleyGameArgument
 
struct  PleyKeyValue
 
struct  PleyCore
 

Typedefs

typedef void(* PleyBasicCB) (PleyResult result, void *data)
 
typedef void(* PleyLogCB) (int32_t level, const char *location, const char *message, void *callback_data)
 
typedef struct PleyGameArgument PleyGameArgument
 
typedef void(* PleyOnGameActiveStatusChangedCB) (bool game_active, void *callback_data)
 
typedef struct PleyKeyValue PleyKeyValue
 
typedef void(* PleyOnGamePauseRequestCB) (void *callback_data)
 
typedef void(* PleyOnGameUnpauseRequestCB) (void *callback_data)
 
typedef int32_t PleyLogLevel
 
typedef struct PleyCore PleyCore
 

Enumerations

enum  { PLEY_LOG_LEVEL_DEBUG = 0 , PLEY_LOG_LEVEL_INFO , PLEY_LOG_LEVEL_WARNING , PLEY_LOG_LEVEL_ERROR }
 

Detailed Description


Data Structure Documentation

◆ PleyGameArgument

struct PleyGameArgument
Data Fields
char name[256]
const char * value

◆ PleyKeyValue

struct PleyKeyValue
Data Fields
char key[64]
char value[1024]

◆ PleyCore

struct PleyCore

Data Fields

bool(* is_initialized )()
 
PleyResult(* get_game_arguments )(const PleyGameArgument **arguments, int32_t *arguments_len)
 
PleyResult(* set_on_game_active_status_changed )(PleyOnGameActiveStatusChangedCB callback, void *callback_data)
 
PleyResult(* is_game_active )(bool *is_game_active)
 
PleyResult(* exit_game )()
 
PleyResult(* show_save_bookmark_prompt )()
 
PleyResult(* crash_game )(const char *error_message)
 
void(* set_on_log )(PleyLogCB callback, void *callback_data)
 
PleyLogLevel(* get_min_log_level )()
 
void(* set_min_log_level )(PleyLogLevel level)
 
bool(* is_log_standard_output_enabled )()
 
void(* set_log_standard_output_enabled )(bool enabled)
 
void(* run_loop_iteration )()
 
PleyResult(* set_support_dialog_custom_fields )(const PleyKeyValue *fields, int32_t fields_len)
 
PleyResult(* get_stack_trace )(const char **stack_trace)
 
PleyResult(* set_on_game_pause_request_callback )(PleyOnGamePauseRequestCB callback, void *callback_data)
 
PleyResult(* set_on_game_unpause_request_callback )(PleyOnGameUnpauseRequestCB callback, void *callback_data)
 
PleyResult(* show_controls_menu )()
 
PleyResult(* show_cookie_consent )()
 
PleyResult(* show_support_window )()
 

Field Documentation

◆ crash_game

PleyResult(* PleyCore::crash_game) (const char *error_message)

◆ exit_game

PleyResult(* PleyCore::exit_game) ()

◆ get_game_arguments

PleyResult(* PleyCore::get_game_arguments) (const PleyGameArgument **arguments, int32_t *arguments_len)

◆ get_min_log_level

PleyLogLevel(* PleyCore::get_min_log_level) ()

◆ get_stack_trace

PleyResult(* PleyCore::get_stack_trace) (const char **stack_trace)

◆ is_game_active

PleyResult(* PleyCore::is_game_active) (bool *is_game_active)

◆ is_initialized

bool(* PleyCore::is_initialized) ()

◆ is_log_standard_output_enabled

bool(* PleyCore::is_log_standard_output_enabled) ()

◆ run_loop_iteration

void(* PleyCore::run_loop_iteration) ()

◆ set_log_standard_output_enabled

void(* PleyCore::set_log_standard_output_enabled) (bool enabled)

◆ set_min_log_level

void(* PleyCore::set_min_log_level) (PleyLogLevel level)

◆ set_on_game_active_status_changed

PleyResult(* PleyCore::set_on_game_active_status_changed) (PleyOnGameActiveStatusChangedCB callback, void *callback_data)
Returns
Can return the following error: PLEY_RESULT_INVALID_ARGUMENTS

◆ set_on_game_pause_request_callback

PleyResult(* PleyCore::set_on_game_pause_request_callback) (PleyOnGamePauseRequestCB callback, void *callback_data)

◆ set_on_game_unpause_request_callback

PleyResult(* PleyCore::set_on_game_unpause_request_callback) (PleyOnGameUnpauseRequestCB callback, void *callback_data)

◆ set_on_log

void(* PleyCore::set_on_log) (PleyLogCB callback, void *callback_data)

◆ set_support_dialog_custom_fields

PleyResult(* PleyCore::set_support_dialog_custom_fields) (const PleyKeyValue *fields, int32_t fields_len)

◆ show_controls_menu

PleyResult(* PleyCore::show_controls_menu) ()

◆ show_cookie_consent

PleyResult(* PleyCore::show_cookie_consent) ()

◆ show_save_bookmark_prompt

PleyResult(* PleyCore::show_save_bookmark_prompt) ()

◆ show_support_window

PleyResult(* PleyCore::show_support_window) ()

Typedef Documentation

◆ PleyBasicCB

typedef void(* PleyBasicCB) (PleyResult result, void *data)

◆ PleyCore

typedef struct PleyCore PleyCore

◆ PleyGameArgument

◆ PleyKeyValue

typedef struct PleyKeyValue PleyKeyValue

◆ PleyLogCB

typedef void(* PleyLogCB) (int32_t level, const char *location, const char *message, void *callback_data)

◆ PleyLogLevel

typedef int32_t PleyLogLevel

◆ PleyOnGameActiveStatusChangedCB

typedef void(* PleyOnGameActiveStatusChangedCB) (bool game_active, void *callback_data)

◆ PleyOnGamePauseRequestCB

typedef void(* PleyOnGamePauseRequestCB) (void *callback_data)

◆ PleyOnGameUnpauseRequestCB

typedef void(* PleyOnGameUnpauseRequestCB) (void *callback_data)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PLEY_LOG_LEVEL_DEBUG 
PLEY_LOG_LEVEL_INFO 
PLEY_LOG_LEVEL_WARNING 
PLEY_LOG_LEVEL_ERROR