1 /** 2 * @file loadsave.h 3 * 4 * Interface of save game functionality. 5 */ 6 #ifndef __LOADSAVE_H__ 7 #define __LOADSAVE_H__ 8 9 #include "player.h" 10 11 DEVILUTION_BEGIN_NAMESPACE 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 extern bool gbIsHellfireSaveGame; 18 extern int giNumberOfLevels; 19 20 void RemoveInvalidItem(ItemStruct *pItem); 21 int RemapItemIdxFromDiablo(int i); 22 int RemapItemIdxToDiablo(int i); 23 bool IsHeaderValid(Uint32 magicNumber); 24 void LoadHotkeys(); 25 void LoadHeroItems(PlayerStruct *pPlayer); 26 /** 27 * @brief Remove invalid inventory items from the inventory grid 28 * @param pnum The id of the player 29 */ 30 void RemoveEmptyInventory(int pnum); 31 void LoadGame(BOOL firstflag); 32 void SaveHotkeys(); 33 void SaveHeroItems(PlayerStruct *pPlayer); 34 void SaveGame(); 35 void SaveLevel(); 36 void LoadLevel(); 37 38 #ifdef __cplusplus 39 } 40 #endif 41 42 DEVILUTION_END_NAMESPACE 43 44 #endif /* __LOADSAVE_H__ */ 45