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

Function GetLocation

TombEngine/Game/collision/Point.cpp:511–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509 }
510
511 static RoomVector GetLocation(const Vector3i& pos, int roomNumber)
512 {
513 short tempRoomNumber = roomNumber;
514 const auto& sector = *GetFloor(pos.x, pos.y, pos.z, &tempRoomNumber);
515
516 return RoomVector(sector.RoomNumber, pos.y);
517 }
518
519 static RoomVector GetLocation(const ItemInfo& item)
520 {

Callers 1

GetPointCollisionFunction · 0.85

Calls 3

GetFloorFunction · 0.85
IsLaraMethod · 0.80
RoomVectorClass · 0.70

Tested by

no test coverage detected