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

Function GetTriggerIndex

TombEngine/Game/control/trigger.cpp:325–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325short* GetTriggerIndex(FloorInfo* floor, int x, int y, int z)
326{
327 const auto& bottomSector = GetPointCollision(Vector3i(x, y, z), floor->RoomNumber).GetBottomSector();
328
329 if (bottomSector.TriggerIndex == NO_VALUE)
330 return nullptr;
331
332 return &g_Level.FloorData[bottomSector.TriggerIndex];
333}
334
335short* GetTriggerIndex(ItemInfo* item)
336{

Callers 8

PuzzleDoneCollisionFunction · 0.85
PuzzleDoneFunction · 0.85
KeyHoleCollisionFunction · 0.85
CogSwitchCollisionFunction · 0.85
CollideStatuePlinthFunction · 0.85
GetKeyTriggerFunction · 0.85
GetSwitchTriggerFunction · 0.85
TestTriggersFunction · 0.85

Calls 3

GetPointCollisionFunction · 0.85
GetFloorFunction · 0.85
Vector3iClass · 0.50

Tested by 1

TestTriggersFunction · 0.68