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

Method Enable

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

Source from the content-addressed store, hash-verified

95 }
96
97 void BridgeObject::Enable(const ItemInfo& item)
98 {
99 _isEnabled = true;
100
101 UpdateCollisionMesh(item);
102 InitializeAttractor(item);
103 AssignSectors(item);
104
105 // Insert into room bridge tree.
106 auto& room = g_Level.Rooms[item.RoomNumber];
107 room.Bridges.Insert(item.Index, item.GetAabb());
108
109 // Store previous parameters.
110 _prevTransform = item.Pose;
111 _prevRoomNumber = item.RoomNumber;
112 _prevAabb = item.GetAabb();
113 _prevObb = item.GetObb();
114 }
115
116 void BridgeObject::Disable(const ItemInfo& item)
117 {

Callers 8

CloseTrapDoorFunction · 0.45
ControlPushableBlockFunction · 0.45
EnablePushableBridgeFunction · 0.45
IsPushableValidFunction · 0.45
GetPushableCollisionFunction · 0.45
StopMovePushableStackFunction · 0.45
TwoBlockPlatformControlFunction · 0.45

Calls 3

InsertMethod · 0.45
GetAabbMethod · 0.45
GetObbMethod · 0.45

Tested by

no test coverage detected