Files
UnrealLuaDemo/Script/lua/Framework/Bootstrap.lua
T

28 lines
958 B
Lua

local ____exports = {}
local Log = require("Framework.Log")
local EventBus = require("Framework.EventBus")
local HotReload = require("Framework.HotReload")
function ____exports.Shutdown()
Log.Info("Lua GameFramework shutting down...")
EventBus.Clear()
____exports.GameInstance = nil
____exports.IsInitialized = false
_G.GameFramework = nil
end
____exports.Version = "0.1.0"
____exports.IsInitialized = false
____exports.GameInstance = nil
function ____exports.Init(gameInstance)
____exports.GameInstance = gameInstance
____exports.IsInitialized = true
_G.GameFramework = {
Log = Log,
EventBus = EventBus,
HotReload = HotReload,
Bootstrap = {Version = ____exports.Version, Init = ____exports.Init, Shutdown = ____exports.Shutdown},
GameInstance = gameInstance
}
Log.Info("Lua GameFramework initialized (version=%s, Lua=%s)", ____exports.Version, _VERSION)
end
return ____exports