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

Function FillCollideableStaticsList

TombEngine/Game/camera.cpp:1485–1507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1483}
1484
1485std::vector<StaticMesh*> FillCollideableStaticsList()
1486{
1487 std::vector<StaticMesh*> staticList;
1488 auto& roomList = g_Level.Rooms[Camera.pos.RoomNumber].NeighborRoomNumbers;
1489
1490 for (int i : roomList)
1491 {
1492 auto* room = &g_Level.Rooms[i];
1493
1494 if (!room->Active())
1495 continue;
1496
1497 for (short j = 0; j < room->mesh.size(); j++)
1498 {
1499 if (!CheckStaticCollideCamera(&room->mesh[j]))
1500 continue;
1501
1502 staticList.push_back(&room->mesh[j]);
1503 }
1504 }
1505
1506 return staticList;
1507}
1508
1509void ItemsCollideCamera()
1510{

Callers 1

ItemsCollideCameraFunction · 0.85

Calls 4

CheckStaticCollideCameraFunction · 0.85
ActiveMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected