MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / LoadHub

Method LoadHub

TombEngine/Game/savegame.cpp:1745–1760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1743}
1744
1745void SaveGame::LoadHub(int index)
1746{
1747 // Don't attempt to load hub data if level is a title level.
1748 if (index == 0)
1749 return;
1750
1751 if (IsOnHub(index))
1752 {
1753 // Load hub data.
1754 TENLog(fmt::format("Loading hub data for level #{}.", index), LogLevel::Info);
1755 Parse(Hub[index], true);
1756 }
1757
1758 // Restore vehicle (also for cases when no hub data yet exists).
1759 InitializePlayerVehicle(*LaraItem);
1760}
1761
1762bool SaveGame::IsOnHub(int index)
1763{

Callers

nothing calls this directly

Calls 3

TENLogFunction · 0.85
InitializePlayerVehicleFunction · 0.85
formatFunction · 0.50

Tested by

no test coverage detected