1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-24 19:23:56 +00:00
openmw/files/builtin_scripts/scripts/omw/settings/global.lua

19 lines
No EOL
466 B
Lua

local storage = require('openmw.storage')
local common = require('scripts.omw.settings.common')
return {
interfaceName = 'Settings',
interface = {
registerGroup = common.registerGroup,
},
engineHandlers = {
onLoad = common.onLoad,
onSave = common.onSave,
},
eventHandlers = {
[common.setGlobalEvent] = function(e)
storage.globalSection(e.groupKey):set(e.settingKey, e.value)
end,
},
}