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

Method callOnInit

components/lua/scriptscontainer.cpp:392–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390 }
391
392 void ScriptsContainer::callOnInit(LuaView& view, int scriptId, const sol::function& onInit, std::string_view data)
393 {
394 try
395 {
396 LuaUtil::call({ this, scriptId }, onInit, deserialize(view.sol(), data, mSerializer));
397 }
398 catch (std::exception& e)
399 {
400 printError(scriptId, "onInit failed", e);
401 }
402 }
403
404 void ScriptsContainer::save(ESM::LuaScripts& data)
405 {

Callers

nothing calls this directly

Calls 3

solMethod · 0.80
callFunction · 0.70
deserializeFunction · 0.70

Tested by

no test coverage detected