feat: move Lua scripts to Script/lua and add binary UE bundle packing

This commit is contained in:
szy73711 committed 2026-11-29 00:18:13 +08:00
1 parent 256a60ac80
commit ebce41f347
41 files changed
+1545 -57

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