MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / get

Method get

src/Core/Triggers/TriggerGroup.cpp:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 std::weak_ptr<Trigger> TriggerGroup::get(const std::string& triggerName)
23 {
24 if (m_triggerMap.find(triggerName) != m_triggerMap.end())
25 {
26 return m_triggerMap[triggerName];
27 }
28 throw Exceptions::UnknownTrigger(
29 m_fromNsp, m_name, triggerName, this->getTriggersNames(), EXC_INFO);
30 }
31
32 TriggerGroup& TriggerGroup::add(const std::string& triggerName)
33 {

Callers 15

pushParameterFromLuaMethod · 0.95
onRegisterMethod · 0.95
onUnregisterMethod · 0.95
TriggerGroup.cppFile · 0.45
getTriggersMethod · 0.45
getTriggerMethod · 0.45
TriggerManager.cppFile · 0.45
removeMethod · 0.45
getRelativePositionMethod · 0.45
setRelativePositionMethod · 0.45
findClosestSegmentMethod · 0.45

Calls 4

getTriggersNamesMethod · 0.95
UnknownTriggerClass · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected