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

Method onRegister

src/Core/Triggers/TriggerGroup.cpp:106–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 void TriggerGroup::onRegister(
107 const std::string& triggerName, std::function<void(const TriggerEnv&)> callback)
108 {
109 this->get(triggerName).lock()->onRegister(callback);
110 }
111
112 void TriggerGroup::onUnregister(
113 const std::string& triggerName, std::function<void(const TriggerEnv&)> callback)

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
lockMethod · 0.80

Tested by

no test coverage detected