feat: move Lua scripts to Script/lua and add binary UE bundle packing
This commit is contained in:
1 parent
256a60ac80
commit
ebce41f347
41 files changed
+1545
-57
No files matched your search
@@ -0,0 +1,26 @@
|
||||
---@type LuaPlayerController
|
||||
local M = UnLua.Class()
|
||||
|
||||
local Log = require("Framework.Log")
|
||||
local EventBus = require("Framework.EventBus")
|
||||
local HotReload = require("Framework.HotReload")
|
||||
|
||||
function M:ReceiveBeginPlay()
|
||||
Log.Info("LuaPlayerController:ReceiveBeginPlay() - Ready for [Space]=Ping, [R]=HotReload")
|
||||
end
|
||||
|
||||
function M:OnDemoPingPressed()
|
||||
Log.Info("LuaPlayerController:OnDemoPingPressed() -> Emitting Demo.Ping")
|
||||
EventBus.Emit("Demo.Ping", "LuaPlayerController")
|
||||
end
|
||||
|
||||
function M:OnDemoHotReloadPressed()
|
||||
Log.Info("LuaPlayerController:OnDemoHotReloadPressed() -> Triggering HotReload.ReloadAll()")
|
||||
HotReload.ReloadAll()
|
||||
end
|
||||
|
||||
function M:ReceiveEndPlay(EndPlayReason)
|
||||
Log.Info("LuaPlayerController:ReceiveEndPlay(reason=%s)", tostring(EndPlayReason))
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in new issue
Block a user