feat: upgrade to ts2lua-unreal v0.3.0 and refactor Game classes to pure C++ callback + TS composition hot-reload

This commit is contained in:
szy73711 committed 2026-11-30 02:42:51 +08:00
1 parent 4ad4a8f36f
commit 783dccf53d
64 files changed
+2368 -714

No files matched your search

+9 -8
View File
@@ -1,12 +1,13 @@
local Log = require("Framework.Log")
local LuaCharacter = UnLua.Class()
function LuaCharacter.ReceiveBeginPlay(self)
Log.Info("LuaCharacter:ReceiveBeginPlay()")
local ____exports = __module.env
local Log = __MODULE__.Import("Framework.Log", __module)
function ____exports.OnBeginPlay(_character)
Log.Info("LuaCharacter.OnBeginPlay()")
end
function LuaCharacter.ReceiveEndPlay(self, EndPlayReason)
function ____exports.OnEndPlay(_character, endPlayReason)
Log.Info(
"LuaCharacter:ReceiveEndPlay(reason=%s)",
tostring(EndPlayReason)
"LuaCharacter.OnEndPlay(reason=%s)",
tostring(endPlayReason)
)
end
return LuaCharacter
function __module.UpdateImports()
end