Kafkatorio/modules/events-mod/src/generated/lua/main/events/configurationUpdate.lua
Adam 80eb001bbf emit entity prototypes
- mod: refactor event handlers to separate files
- lib: update models for prototypes
2022-07-08 21:06:09 +02:00

13 lines
587 B
Lua

local ____exports = {}
local ____global_2Dinit = require("main.global-init")
local initGlobal = ____global_2Dinit.initGlobal
local ____prototypeUpdates = require("main.events.prototypeUpdates")
local emitPrototypes = ____prototypeUpdates.emitPrototypes
local ____ConfigurationUpdateHandler = require("main.events.handlers.ConfigurationUpdateHandler")
local ConfigurationUpdates = ____ConfigurationUpdateHandler.default
script.on_configuration_changed(function(data)
initGlobal(true)
ConfigurationUpdates:emitConfigurationUpdate(data)
emitPrototypes()
end)
return ____exports