DungeonCrawl
|
Exposes functions for the save menu. More...
#include "menu.h"
Go to the source code of this file.
Functions | |
int | init_save_menu (void) |
Initialize the save menu with the needed data. | |
int | get_selected_save_file_id (void) |
Get the ID of the save file selected by the user. | |
const char * | get_save_name (void) |
Get the name of the latest save entered by the user. | |
menu_result_t | show_save_game_menu (void) |
Show save game interface to get save name from user. | |
menu_result_t | show_load_game_menu (bool game_in_progress) |
Show load game interface to select a save file. | |
void | shutdown_save_menu (void) |
Shuts down the save menu and frees associated data. |
Variables | |
int | selected_save_file_id |
char | last_save_name [50] |
Exposes functions for the save menu.
Definition in file save_menu.h.
const char * get_save_name | ( | void | ) |
Get the name of the latest save entered by the user.
Definition at line 44 of file save_menu.c.
int get_selected_save_file_id | ( | void | ) |
Get the ID of the save file selected by the user.
Definition at line 40 of file save_menu.c.
int init_save_menu | ( | void | ) |
Initialize the save menu with the needed data.
Definition at line 24 of file save_menu.c.
menu_result_t show_load_game_menu | ( | bool | game_in_progress | ) |
Show load game interface to select a save file.
game_in_progress | indicates whether there's an active game that might need confirmation to discard |
Definition at line 82 of file save_menu.c.
menu_result_t show_save_game_menu | ( | void | ) |
Show save game interface to get save name from user.
Definition at line 51 of file save_menu.c.
void shutdown_save_menu | ( | void | ) |
Shuts down the save menu and frees associated data.
Definition at line 209 of file save_menu.c.
|
extern |
Definition at line 22 of file save_menu.c.
|
extern |
Definition at line 21 of file save_menu.c.