2022-06-28 21:59:54 +02:00
|
|
|
local ____exports = {}
|
2022-07-09 14:03:57 +02:00
|
|
|
local ____EventDataCache = require("main.emitting.EventDataCache")
|
|
|
|
|
local EventUpdates = ____EventDataCache.default
|
2022-07-16 23:10:32 +02:00
|
|
|
local ____EventDataQueue = require("main.emitting.EventDataQueue")
|
|
|
|
|
local EventDataQueueManager = ____EventDataQueue.EventDataQueueManager
|
2022-06-28 21:59:54 +02:00
|
|
|
function ____exports.initGlobal(force)
|
|
|
|
|
if force == nil then
|
|
|
|
|
force = false
|
|
|
|
|
end
|
|
|
|
|
log(("Initialising Kafkatorio Global variables (force=" .. tostring(force)) .. ")...")
|
|
|
|
|
global.MOD_VERSION = script.active_mods[script.mod_name]
|
|
|
|
|
global.FACTORIO_VERSION = script.active_mods.base
|
2022-07-09 14:03:57 +02:00
|
|
|
EventDataQueueManager:init(true)
|
|
|
|
|
EventUpdates:init(true)
|
2022-06-28 21:59:54 +02:00
|
|
|
log("Finished initialising Kafkatorio Global variables")
|
|
|
|
|
end
|
|
|
|
|
return ____exports
|