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

Function HandleEvent

TombEngine/Game/control/volume.cpp:91–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 bool HandleEvent(Event& event, Activator& activator)
92 {
93 if (!event.Enabled || event.CallCounter == 0 || event.Function.empty())
94 return false;
95
96 g_GameScript->ExecuteFunction(event.Function, activator, event.Data);
97 if (event.CallCounter != NO_VALUE)
98 event.CallCounter--;
99
100 return true;
101 }
102
103 bool HandleEvent(const std::string& name, EventType eventType, Activator activator)
104 {

Callers 4

HandleAllGlobalEventsFunction · 0.85
TestVolumesFunction · 0.85
TestTriggersFunction · 0.85
HandleEventMethod · 0.85

Calls 3

FindEventSetFunction · 0.85
ExecuteFunctionMethod · 0.80
emptyMethod · 0.45

Tested by 2

TestVolumesFunction · 0.68
TestTriggersFunction · 0.68