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

Function SetEventState

TombEngine/Game/control/volume.cpp:123–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 bool SetEventState(const std::string& name, EventType eventType, bool enabled)
124 {
125 auto* eventSet = FindEventSet(name);
126
127 if (eventSet == nullptr)
128 return false;
129
130 eventSet->Events[(int)eventType].Enabled = enabled;
131
132 return true;
133 }
134
135 void TestVolumes(int roomNumber, const BoundingOrientedBox& box, ActivatorFlags activatorFlag, Activator activator)
136 {

Callers 2

EnableEventMethod · 0.85
DisableEventMethod · 0.85

Calls 1

FindEventSetFunction · 0.85

Tested by

no test coverage detected