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

Method Disable

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

Source from the content-addressed store, hash-verified

114 }
115
116 void BridgeObject::Disable(const ItemInfo& item)
117 {
118 _isEnabled = false;
119
120 // TODO: Also destroy attractor here when they're ready. Maybe contain in std::optional?
121 DeassignSectors(item);
122
123 // Remove from previous room bridge tree.
124 auto& prevRoom = g_Level.Rooms[_prevRoomNumber];
125 prevRoom.Bridges.Remove(item.Index);
126 }
127
128 void BridgeObject::InitializeCollisionMesh(const ItemInfo& item)
129 {

Callers 12

ControlCrumblingPlatformFunction · 0.45
OpenTrapDoorFunction · 0.45
ControlPushableBlockFunction · 0.45
DisablePushableBridgeFunction · 0.45
IsPushableValidFunction · 0.45
GetPushableCollisionFunction · 0.45
StartMovePushableStackFunction · 0.45
TwoBlockPlatformControlFunction · 0.45
RemoveRoomFlipItemsFunction · 0.45
ParseLevelFunction · 0.45
KillItemFunction · 0.45

Calls 1

RemoveMethod · 0.45

Tested by

no test coverage detected