chore: initialize UE 5.8 + UnLua game framework project

This commit is contained in:
szy73711 committed 2026-11-28 01:45:03 +08:00
commit 943af16954
397 files changed
+95588

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
---@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