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 Bootstrap = require("Framework.Bootstrap")
|
||||
local Log = require("Framework.Log")
|
||||
local LuaGameInstance = UnLua.Class()
|
||||
function LuaGameInstance.ReceiveInit(self)
|
||||
Bootstrap.Init(self)
|
||||
Log.Info("LuaGameInstance:ReceiveInit()")
|
||||
local ____exports = __module.env
|
||||
local Bootstrap = __MODULE__.Import("Framework.Bootstrap", __module)
|
||||
local Log = __MODULE__.Import("Framework.Log", __module)
|
||||
function ____exports.OnInit(gameInstance)
|
||||
Bootstrap.Init(gameInstance)
|
||||
Log.Info("LuaGameInstance.OnInit()")
|
||||
end
|
||||
function LuaGameInstance.ReceiveShutdown(self)
|
||||
Log.Info("LuaGameInstance:ReceiveShutdown()")
|
||||
function ____exports.OnShutdown(_gameInstance)
|
||||
Log.Info("LuaGameInstance.OnShutdown()")
|
||||
Bootstrap.Shutdown()
|
||||
end
|
||||
return LuaGameInstance
|
||||
function __module.UpdateImports()
|
||||
end
|
||||
Reference in new issue
Block a user