DungeonCrawl
Loading...
Searching...
No Matches
save_menu.h
Go to the documentation of this file.
1
5#ifndef SAVE_MENU_H
6#define SAVE_MENU_H
7
8#include "menu.h"
9
10// Global variables to store menu state
11extern int selected_save_file_id;
12extern char last_save_name[50];
13
17int init_save_menu(void);
18
24
29const char* get_save_name(void);
30
35menu_result_t show_save_game_menu(void);
36
42menu_result_t show_load_game_menu(bool game_in_progress);
43
47void shutdown_save_menu(void);
48
49#endif// SAVE_MENU_H
Exposes helper functions to work with menus.
menu_result_t show_load_game_menu(bool game_in_progress)
Show load game interface to select a save file.
Definition save_menu.c:82
menu_result_t show_save_game_menu(void)
Show save game interface to get save name from user.
Definition save_menu.c:51
void shutdown_save_menu(void)
Shuts down the save menu and frees associated data.
Definition save_menu.c:209
int get_selected_save_file_id(void)
Get the ID of the save file selected by the user.
Definition save_menu.c:40
const char * get_save_name(void)
Get the name of the latest save entered by the user.
Definition save_menu.c:44
int init_save_menu(void)
Initialize the save menu with the needed data.
Definition save_menu.c:24