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

Method asTable

components/lua/storage.cpp:118–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 }
117
118 sol::table LuaStorage::Section::asTable(lua_State* state)
119 {
120 checkIfActive();
121 sol::table res(state, sol::create);
122 for (const auto& [k, v] : mValues)
123 res[k] = v.getCopy(state);
124 return res;
125 }
126
127 void LuaStorage::initLuaBindings(LuaUtil::LuaView& view)
128 {

Callers 2

initLuaBindingsMethod · 0.80
saveMethod · 0.80

Calls 1

getCopyMethod · 0.80

Tested by

no test coverage detected