chore: initialize UE 5.8 + UnLua game framework project
This commit is contained in:
commit
943af16954
397 files changed
+95588
No files matched your search
@@ -0,0 +1,14 @@
|
||||
---@type LuaCharacter
|
||||
local M = UnLua.Class()
|
||||
|
||||
local Log = require("Framework.Log")
|
||||
|
||||
function M:ReceiveBeginPlay()
|
||||
Log.Info("LuaCharacter:ReceiveBeginPlay()")
|
||||
end
|
||||
|
||||
function M:ReceiveEndPlay(EndPlayReason)
|
||||
Log.Info("LuaCharacter:ReceiveEndPlay(reason=%s)", tostring(EndPlayReason))
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -0,0 +1,17 @@
|
||||
---@type LuaGameInstance
|
||||
local M = UnLua.Class()
|
||||
|
||||
local Bootstrap = require("Framework.Bootstrap")
|
||||
local Log = require("Framework.Log")
|
||||
|
||||
function M:ReceiveInit()
|
||||
Bootstrap.Init(self)
|
||||
Log.Info("LuaGameInstance:ReceiveInit()")
|
||||
end
|
||||
|
||||
function M:ReceiveShutdown()
|
||||
Log.Info("LuaGameInstance:ReceiveShutdown()")
|
||||
Bootstrap.Shutdown()
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -0,0 +1,14 @@
|
||||
---@type LuaGameModeBase
|
||||
local M = UnLua.Class()
|
||||
|
||||
local Log = require("Framework.Log")
|
||||
|
||||
function M:ReceiveBeginPlay()
|
||||
Log.Info("LuaGameMode:ReceiveBeginPlay()")
|
||||
end
|
||||
|
||||
function M:ReceiveEndPlay(EndPlayReason)
|
||||
Log.Info("LuaGameMode:ReceiveEndPlay(reason=%s)", tostring(EndPlayReason))
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -0,0 +1,14 @@
|
||||
---@type LuaPlayerController
|
||||
local M = UnLua.Class()
|
||||
|
||||
local Log = require("Framework.Log")
|
||||
|
||||
function M:ReceiveBeginPlay()
|
||||
Log.Info("LuaPlayerController:ReceiveBeginPlay()")
|
||||
end
|
||||
|
||||
function M:ReceiveEndPlay(EndPlayReason)
|
||||
Log.Info("LuaPlayerController:ReceiveEndPlay(reason=%s)", tostring(EndPlayReason))
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in new issue
Block a user