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

Function LoadRooms

TombEngine/Specific/level.cpp:1164–1178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1162}
1163
1164void LoadRooms()
1165{
1166 TENLog("Loading rooms... ", LogLevel::Info);
1167
1168 Wibble = 0;
1169
1170 LoadStaticRoomData();
1171 BuildOutsideRoomsTable();
1172
1173 int floordataCount = ReadInt32();
1174 g_Level.FloorData.resize(floordataCount);
1175 ReadBytes(g_Level.FloorData.data(), floordataCount * sizeof(short));
1176
1177 InitializeNeighborRoomList();
1178}
1179
1180void FreeLevel(bool partial)
1181{

Callers 1

LoadLevelFunction · 0.85

Calls 8

TENLogFunction · 0.85
LoadStaticRoomDataFunction · 0.85
BuildOutsideRoomsTableFunction · 0.85
ReadInt32Function · 0.85
ReadBytesFunction · 0.85
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected