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

Method Initialize

TombEngine/Objects/Generic/Object/BridgeObject.cpp:38–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 void BridgeObject::Initialize(const ItemInfo& item)
39 {
40 _isEnabled = true;
41
42 InitializeCollisionMesh(item);
43 InitializeAttractor(item);
44 AssignSectors(item);
45
46 // Insert into room bridge tree.
47 auto& room = g_Level.Rooms[item.RoomNumber];
48 room.Bridges.Insert(item.Index, item.GetAabb());
49
50 // Store previous parameters.
51 _prevTransform = item.Pose;
52 _prevRoomNumber = item.RoomNumber;
53 _prevAabb = item.GetAabb();
54 _prevObb = item.GetObb();
55 }
56
57 void BridgeObject::Update(const ItemInfo& item)
58 {

Callers 5

InitializeFallingBlockFunction · 0.45
InitializeTrapDoorFunction · 0.45
InitializeBridgeFunction · 0.45
InitializePushableBlockFunction · 0.45

Calls 3

InsertMethod · 0.45
GetAabbMethod · 0.45
GetObbMethod · 0.45

Tested by

no test coverage detected