| 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 | { |
nothing calls this directly
no test coverage detected