22 #ifndef BAGEL_BAGLIB_SAVE_GAME_FILE_H 23 #define BAGEL_BAGLIB_SAVE_GAME_FILE_H 25 #include "common/serializer.h" 26 #include "bagel/boflib/dat_file.h" 30 #define MAX_SAVED_GAMES 40 31 #define MAX_SAVE_TITLE 128 32 #define MAX_USER_NAME 64 35 char _szTitle[MAX_SAVE_TITLE] = {
'\0' };
36 char _szUserName[MAX_USER_NAME] = {
'\0' };
41 return MAX_SAVE_TITLE + MAX_USER_NAME + 4;
45 #define MAX_SDEV_NAME 40 46 #define MAX_CLOSEUP_DEPTH 4 49 #define MAX_VAR_NAME 40 50 #define MAX_VAR_VALUE 60 53 char _szName[MAX_VAR_NAME];
54 char _szValue[MAX_VAR_VALUE];
72 #define MAX_OBJ_NAME 40 73 #define MAX_SDEV_NAME 40 77 char _szName[MAX_OBJ_NAME];
78 char _szSDev[MAX_SDEV_NAME];
98 #define mIsMsgWaiting 0x0001 104 StVar _stVarList[MAX_VARS];
105 StObj _stObjList[MAX_OBJS];
106 StObj _stObjListEx[MAX_OBJS];
107 char _szScript[MAX_FNAME];
109 char _szLocStack[MAX_CLOSEUP_DEPTH][MAX_SDEV_NAME];
131 int32 getNumSavedGames()
const {
132 return getNumberOfRecs();
134 int32 getActualNumSaves();
135 bool anySavedGames();
140 ErrorCode writeSavedGame();
145 ErrorCode readSavedGame(int32 slotNum);
152 ErrorCode readTitleOnly(int32 lSlot,
char *pGameTitle);
Definition: dat_file.h:69
Definition: serializer.h:79
Definition: save_game_file.h:52
Definition: save_game_file.h:127
Definition: save_game_file.h:103
Definition: save_game_file.h:76