feat: integrate ts2lua-unreal v0.2.1 and UnLua TypeScript (.d.ts) generator

This commit is contained in:
szy73711 committed 2026-11-29 03:08:03 +08:00
1 parent ebce41f347
commit ee2e62bb34
282 files changed
+141794 -261

No files matched your search

+18 -28
View File
@@ -1,37 +1,27 @@
---@class Framework.Bootstrap
---Central Lua game framework bootstrapper initialized by ULuaGameInstance.
local ____exports = {}
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
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 = Bootstrap,
GameInstance = gameInstance,
Bootstrap = {Version = ____exports.Version, Init = ____exports.Init, Shutdown = ____exports.Shutdown},
GameInstance = gameInstance
}
Log.Info("Lua GameFramework initialized (version=%s, Lua=%s)", Bootstrap.Version, _VERSION)
Log.Info("Lua GameFramework initialized (version=%s, Lua=%s)", ____exports.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
return ____exports