---@class Framework.Bootstrap ---Central Lua game framework bootstrapper initialized by ULuaGameInstance. local Log = require("Framework.Log") local EventBus = require("Framework.EventBus") local HotReload = require("Framework.HotReload") local Bootstrap = { Version = "0.1.0", IsInitialized = false, GameInstance = nil, } ---@param gameInstance ULuaGameInstance function Bootstrap.Init(gameInstance) Bootstrap.GameInstance = gameInstance Bootstrap.IsInitialized = true _G.GameFramework = { Log = Log, EventBus = EventBus, HotReload = HotReload, Bootstrap = Bootstrap, GameInstance = gameInstance, } Log.Info("Lua GameFramework initialized (version=%s, Lua=%s)", Bootstrap.Version, _VERSION) end function Bootstrap.Shutdown() Log.Info("Lua GameFramework shutting down...") EventBus.Clear() Bootstrap.GameInstance = nil Bootstrap.IsInitialized = false _G.GameFramework = nil end return Bootstrap