feat: integrate ts2lua-unreal v0.2.1 and UnLua TypeScript (.d.ts) generator

This commit is contained in:
szy73711 committed 2026-11-29 03:08:03 +08:00
1 parent ebce41f347
commit ee2e62bb34
282 files changed
+141794 -261

No files matched your search

+10 -14
View File
@@ -1,26 +1,22 @@
---@type LuaPlayerController
local M = UnLua.Class()
local Log = require("Framework.Log")
local EventBus = require("Framework.EventBus")
local HotReload = require("Framework.HotReload")
function M:ReceiveBeginPlay()
local LuaPlayerController = UnLua.Class()
function LuaPlayerController.ReceiveBeginPlay(self)
Log.Info("LuaPlayerController:ReceiveBeginPlay() - Ready for [Space]=Ping, [R]=HotReload")
end
function M:OnDemoPingPressed()
function LuaPlayerController.OnDemoPingPressed(self)
Log.Info("LuaPlayerController:OnDemoPingPressed() -> Emitting Demo.Ping")
EventBus.Emit("Demo.Ping", "LuaPlayerController")
end
function M:OnDemoHotReloadPressed()
function LuaPlayerController.OnDemoHotReloadPressed(self)
Log.Info("LuaPlayerController:OnDemoHotReloadPressed() -> Triggering HotReload.ReloadAll()")
HotReload.ReloadAll()
end
function M:ReceiveEndPlay(EndPlayReason)
Log.Info("LuaPlayerController:ReceiveEndPlay(reason=%s)", tostring(EndPlayReason))
function LuaPlayerController.ReceiveEndPlay(self, EndPlayReason)
Log.Info(
"LuaPlayerController:ReceiveEndPlay(reason=%s)",
tostring(EndPlayReason)
)
end
return M
return LuaPlayerController