MCPcopy Create free account
hub / github.com/OpenMW/openmw / registerTimerCallback

Method registerTimerCallback

components/lua/scriptscontainer.cpp:678–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676 }
677
678 void ScriptsContainer::registerTimerCallback(
679 int scriptId, std::string_view callbackName, sol::main_protected_function callback)
680 {
681 getScript(scriptId).mRegisteredCallbacks.emplace(std::string(callbackName), std::move(callback));
682 }
683
684 void ScriptsContainer::insertTimer(std::vector<Timer>& timerQueue, Timer&& t)
685 {

Callers 2

TEST_FFunction · 0.80

Calls 1

emplaceMethod · 0.80

Tested by 1

TEST_FFunction · 0.64