1 // SONIC ROBO BLAST 2
2 //-----------------------------------------------------------------------------
3 // Copyright (C) 1993-1996 by id Software, Inc.
4 // Copyright (C) 1998-2000 by DooM Legacy Team.
5 // Copyright (C) 1999-2020 by Sonic Team Junior.
6 //
7 // This program is free software distributed under the
8 // terms of the GNU General Public License, version 2.
9 // See the 'LICENSE' file for more details.
10 //-----------------------------------------------------------------------------
11 /// \file  p_saveg.h
12 /// \brief Savegame I/O, archiving, persistence
13 
14 #ifndef __P_SAVEG__
15 #define __P_SAVEG__
16 
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20 
21 // Persistent storage/archiving.
22 // These are the load / save game routines.
23 
24 void P_SaveGame(INT16 mapnum);
25 void P_SaveNetGame(boolean resending);
26 boolean P_LoadGame(INT16 mapoverride);
27 boolean P_LoadNetGame(boolean reloading);
28 
29 mobj_t *P_FindNewPosition(UINT32 oldposition);
30 
31 typedef struct
32 {
33 	UINT8 skin;
34 	UINT8 botskin;
35 	INT32 score;
36 	INT32 lives;
37 	INT32 continues;
38 	UINT16 emeralds;
39 	UINT8 numgameovers;
40 } savedata_t;
41 
42 extern savedata_t savedata;
43 extern UINT8 *save_p;
44 
45 #endif
46