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

Function HandleAllGlobalEvents

TombEngine/Game/control/volume.cpp:60–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 void HandleAllGlobalEvents(EventType type, Activator& activator)
61 {
62 // HACK: Speedhack to only process looped events which are actually existing.
63
64 if (type == EventType::Loop)
65 {
66 for (int setIndex : g_Level.LoopedEventSetIndices)
67 HandleEvent(g_Level.GlobalEventSets[setIndex].Events[(int)type], activator);
68 }
69 else
70 {
71 for (auto& set : g_Level.GlobalEventSets)
72 HandleEvent(set.Events[(int)type], activator);
73 }
74 }
75
76 EventSet* FindEventSet(const std::string& name)
77 {

Callers 5

UseItemMethod · 0.85
SaveMethod · 0.85
GamePhaseFunction · 0.85
FreezePhaseFunction · 0.85
InitializeOrLoadGameFunction · 0.85

Calls 1

HandleEventFunction · 0.85

Tested by

no test coverage detected