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

Method save

components/lua/scriptscontainer.cpp:404–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402 }
403
404 void ScriptsContainer::save(ESM::LuaScripts& data)
405 {
406 if (const UnloadedData* unloadedData = std::get_if<UnloadedData>(&mData))
407 {
408 data.mScripts = unloadedData->mScripts;
409 return;
410 }
411 mLua.protectedCall([&](LuaView& view) { save(view, data); });
412 }
413
414 void ScriptsContainer::save(LuaView&, ESM::LuaScripts& data)
415 {

Callers

nothing calls this directly

Calls 7

saveFunction · 0.85
callFunction · 0.70
serializeFunction · 0.70
protectedCallMethod · 0.45
clearMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected