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.
42 lines
1.1 KiB
42 lines
1.1 KiB
/** |
|
* @file loadsave.h |
|
* |
|
* Interface of save game functionality. |
|
*/ |
|
#pragma once |
|
|
|
#include "player.h" |
|
#include "utils/attributes.h" |
|
|
|
namespace devilution { |
|
|
|
extern DVL_API_FOR_TEST bool gbIsHellfireSaveGame; |
|
extern DVL_API_FOR_TEST uint8_t giNumberOfLevels; |
|
|
|
void RemoveInvalidItem(Item &pItem); |
|
_item_indexes RemapItemIdxFromDiablo(_item_indexes i); |
|
_item_indexes RemapItemIdxToDiablo(_item_indexes i); |
|
_item_indexes RemapItemIdxFromSpawn(_item_indexes i); |
|
_item_indexes RemapItemIdxToSpawn(_item_indexes i); |
|
bool IsHeaderValid(uint32_t magicNumber); |
|
void LoadHotkeys(); |
|
void LoadHeroItems(Player &player); |
|
/** |
|
* @brief Remove invalid inventory items from the inventory grid |
|
* @param pnum The id of the player |
|
*/ |
|
void RemoveEmptyInventory(Player &player); |
|
|
|
/** |
|
* @brief Load game state |
|
* @param firstflag Can be set to false if we are simply reloading the current game |
|
*/ |
|
void LoadGame(bool firstflag); |
|
void SaveHotkeys(); |
|
void SaveHeroItems(Player &player); |
|
void SaveGameData(); |
|
void SaveGame(); |
|
void SaveLevel(); |
|
void LoadLevel(); |
|
|
|
} // namespace devilution
|
|
|