World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Классы | |
struct | SavegameList |
struct | SavegameHeader |
Функции | |
void | LoadGame (unsigned int uSlot) |
void | SaveGame (bool IsAutoSAve, bool NotSaveWorld) |
void | DoSavegame (unsigned int uSlot) |
bool | Initialize_GamesLOD_NewLOD () |
void | SaveNewGame () |
Переменные | |
unsigned int | uNumSavegameFiles |
constexpr unsigned int | MAX_SAVE_SLOTS = 45 |
std::array< unsigned int, MAX_SAVE_SLOTS > | pSavegameUsedSlots |
struct SavegameList * | pSavegameList |
std::array< SavegameHeader, MAX_SAVE_SLOTS > | pSavegameHeader |
std::array< class Image *, MAX_SAVE_SLOTS > | pSavegameThumbnails |
void LoadGame | ( | unsigned int | uSlot | ) |
См. определение в файле SaveLoad.cpp строка 77
Перекрестные ссылки NPCStats::_476C60_on_load_game(), __debugbreak(), Party::alignment, bFlashQuestBook, ViewingParams::bRedrawGameUI, LOD::WriteableFile::CloseWriteFile(), CopyFile(), Image::Create(), current_screen_type, NPCData_Image_MM7::Deserialize(), Party_Image_MM7::Deserialize(), Timer_Image_MM7::Deserialize(), OtherOverlayList_Image_MM7::Deserialize(), LOD::File::DoesContainerExist(), dword_6BE364_game_settings_1, engine, Localization::FormatString(), Image::GetWidth(), LloydBeacon::image, LOD::WriteableFile::LoadFile(), LOD::File::LoadRaw(), localization, logger, MakeDataPath(), MapsLongTimers_count, MM7Initialization(), pAudioPlayer, pCurrentMapName, pEventTimer, SavegameList::pFileList, pGames_LOD, NPCStats::pGroups_copy, AudioPlayer::PlaySound(), SavegameHeader::pLocationName, pNew_LOD, NPCStats::pNewNPCData, pNPCStats, pOtherOverlayList, pParty, Party::pPlayers, pSavegameList, pSavegameThumbnails, pSavegameUsedSlots, Timer::Resume(), SCREEN_GAME, AudioPlayer::SetMasterVolume(), AudioPlayer::SetMusicVolume(), SetUserInterface(), SOUND_error, Party::sRotationY, Timer::StopGameTime(), StringPrintf(), uActiveCharacter, uNumSavegameFiles, Player::vBeacons, viewparams и Log::Warning().
Используется в Application::Menu::EventLoop() и Application::Game::GameLoop().
void SaveGame | ( | bool | IsAutoSAve, |
bool | NotSaveWorld | ||
) |
См. определение в файле SaveLoad.cpp строка 238
Перекрестные ссылки IndoorLocation::_visible_outlines, IndoorLocation::blv, ChestsSerialize(), CompactLayingItemsList(), zlib::Compress(), CopyFile(), OutdoorLocation::ddm, IndoorLocation::dlv, PCX::Encode16(), SavegameHeader::field_30, Localization::FormatString(), Image::GetPixels(), Party::GetPlayingTime(), LloydBeacon::image, IMAGE_FORMAT_R5G6B5, LocationTime_stru1::last_visit, LEVEL_Indoor, OutdoorLocation::loc_time, localization, logger, MakeDataPath(), pActors, OutdoorLocation::pBModels, pCurrentMapName, IndoorLocation::pDoors, pEventTimer, BSPModel::pFaces, IndoorLocation::pFaces, NPCStats::pGroups_copy, pIndoor, SavegameHeader::playing_time, pLevelDecorations, SavegameHeader::pLocationName, ODMHeader::pMagic, SavegameHeader::pName, pNew_LOD, NPCStats::pNewNPCData, pNPCStats, pOtherOverlayList, pOutdoor, pParty, Party::pPlayers, pSpriteObjects, IndoorLocation::ptr_0002B4_doors_ddata, render, s_SavedMapName, NPCData_Image_MM7::Serialize(), Party_Image_MM7::Serialize(), Timer_Image_MM7::Serialize(), OtherOverlayList_Image_MM7::Serialize(), Party::sPrevRotationX, Party::sPrevRotationY, Party::sRotationX, Party::sRotationY, StringPrintf(), IndoorLocation::stru1, stru_5E4C90_MapPersistVars, BLVFace::uAttributes, LloydBeacon::uBeaconTime, ODMHeader::uCompressedSize, uCurrentlyLoadedLevelType, ODMHeader::uDecompressedSize, BLVHeader::uDoors_ddata_Size, Party::uFallStartY, OutdoorLocation::uFullyRevealedCellOnMap, uNumActors, DDM_DLV_Header::uNumBModels, DDM_DLV_Header::uNumDecorations, IndoorLocation::uNumFaces, DDM_DLV_Header::uNumFacesInBModels, uNumLevelDecorations, uNumSpriteObjects, OutdoorLocation::uPartiallyRevealedCellOnMap, ODMHeader::uVersion, Player::vBeacons, Party::vPosition, Party::vPrevPosition, Log::Warning() и LOD::WriteableFile::Write().
Используется в DoSavegame(), Application::Game::EventLoop(), Application::Game::GameLoop(), SaveNewGame(), Transition_StopSound_Autosave() и TravelByTransport().
void DoSavegame | ( | unsigned int | uSlot | ) |
См. определение в файле SaveLoad.cpp строка 514
Перекрестные ссылки LOD::WriteableFile::_4621A7(), ViewingParams::bRedrawGameUI, LOD::WriteableFile::CloseWriteFile(), CopyFile(), current_screen_type, GameUI_StatusBar_OnEvent(), Party::GetPlayingTime(), Localization::GetString(), GUI_UpdateWindows(), localization, MakeDataPath(), MAX_SAVE_SLOTS, pCurrentMapName, pEventTimer, pGUIWindow_CurrentMenu, pNew_LOD, pParty, pSavegameHeader, pSavegameThumbnails, GUIWindow::Release(), Timer::Resume(), SaveGame(), SCREEN_GAME, StringPrintf(), viewparams и LOD::WriteableFile::Write().
Используется в Application::Menu::EventLoop().
bool Initialize_GamesLOD_NewLOD | ( | ) |
См. определение в файле LOD.cpp строка 1218
Перекрестные ссылки LOD::WriteableFile::AllocSubIndicesAndIO(), MakeDataPath(), LOD::File::Open(), pGames_LOD и pNew_LOD.
Используется в Engine::SecondaryInitialization().
void SaveNewGame | ( | ) |
См. определение в файле SaveLoad.cpp строка 566
Перекрестные ссылки LOD::WriteableFile::AppendDirectory(), LOD::WriteableFile::ClearSubNodes(), LOD::WriteableFile::CloseWriteFile(), LOD::WriteableFile::CreateNewLod(), LOD::WriteableFile::CreateTempFile(), LOD::FileHeader::dword_0000A8, LOD::WriteableFile::FixDirectoryOffsets(), LOD::File::GetSubNodeName(), LOD::File::GetSubNodesCount(), LOD::WriteableFile::LoadFile(), LOD::File::LoadRaw(), LOD::FileHeader::LodDescription, LOD::FileHeader::LODSize, LOD::FileHeader::LodVersion, MakeDataPath(), pGames_LOD, pNew_LOD, pParty, pSavegameHeader, SaveGame(), Party::sPrevRotationX, Party::sPrevRotationY, Party::sRotationX, Party::sRotationY, Party::uFallStartY, Party::vPosition и Party::vPrevPosition.
Используется в Application::Game::Loop().
unsigned int uNumSavegameFiles |
См. определение в файле SaveLoad.cpp строка 42
Используется в GUIWindow_Load::GUIWindow_Load(), SavegameList::Initialize(), LoadGame() и UI_DrawSaveLoad().
|
constexpr |
См. определение в файле SaveLoad.h строка 33
Используется в DoSavegame(), GUIWindow_Load::GUIWindow_Load(), GUIWindow_Save::GUIWindow_Save(), SavegameList::Reset() и UI_DrawSaveLoad().
std::array<unsigned int, MAX_SAVE_SLOTS> pSavegameUsedSlots |
См. определение в файле SaveLoad.cpp строка 43
Используется в Application::Menu::EventLoop(), GUIWindow_Load::GUIWindow_Load(), GUIWindow_Save::GUIWindow_Save(), LoadGame(), MainMenuLoad_EventLoop() и UI_DrawSaveLoad().
struct SavegameList* pSavegameList |
См. определение в файле SaveLoad.cpp строка 41
Используется в GUIWindow_Load::GUIWindow_Load(), GUIWindow_Save::GUIWindow_Save(), SavegameList::Initialize() и LoadGame().
std::array<SavegameHeader, MAX_SAVE_SLOTS> pSavegameHeader |
См. определение в файле SaveLoad.cpp строка 45
Используется в DoSavegame(), Application::Menu::EventLoop(), GUIWindow_Load::GUIWindow_Load(), GUIWindow_Save::GUIWindow_Save(), MainMenuLoad_EventLoop(), SaveNewGame() и UI_DrawSaveLoad().
std::array<class Image *, MAX_SAVE_SLOTS> pSavegameThumbnails |
См. определение в файле SaveLoad.cpp строка 44
Используется в DoSavegame(), GUIWindow_Load::GUIWindow_Load(), GUIWindow_Save::GUIWindow_Save(), LoadGame() и UI_DrawSaveLoad().