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:
1 parent
4ad4a8f36f
commit
783dccf53d
64 files changed
+2368
-714
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user