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

Function FindEventSet

TombEngine/Game/control/volume.cpp:76–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 EventSet* FindEventSet(const std::string& name)
77 {
78 for (auto& eventSet : g_Level.GlobalEventSets)
79 if (eventSet.Name == name)
80 return &eventSet;
81
82 for (auto& eventSet : g_Level.VolumeEventSets)
83 if (eventSet.Name == name)
84 return &eventSet;
85
86 TENLog(fmt::format("Error: event {} could not be found. Check if event with such name exists in project.", name), LogLevel::Error, LogConfig::All, false);
87
88 return nullptr;
89 }
90
91 bool HandleEvent(Event& event, Activator& activator)
92 {

Callers 2

HandleEventFunction · 0.85
SetEventStateFunction · 0.85

Calls 2

TENLogFunction · 0.85
formatFunction · 0.50

Tested by

no test coverage detected