You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
858 B

/**
* @file loadsave.h
*
* Interface of save game functionality.
*/
#pragma once
#include "player.h"
namespace devilution {
extern bool gbIsHellfireSaveGame;
extern uint8_t giNumberOfLevels;
void RemoveInvalidItem(ItemStruct *pItem);
int RemapItemIdxFromDiablo(int i);
int RemapItemIdxToDiablo(int i);
int RemapItemIdxFromSpawn(int i);
int RemapItemIdxToSpawn(int i);
bool IsHeaderValid(uint32_t magicNumber);
void LoadHotkeys();
void LoadHeroItems(PlayerStruct &pPlayer);
/**
* @brief Remove invalid inventory items from the inventory grid
* @param pnum The id of the player
*/
void RemoveEmptyInventory(int pnum);
void LoadGame(bool firstflag);
void SaveHotkeys();
void SaveHeroItems(PlayerStruct &pPlayer);
void SaveGameData();
void SaveGame();
void SaveLevel();
void LoadLevel();
} // namespace devilution