| 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 | { |
no test coverage detected