feat: integrate ts2lua-unreal v0.2.1 and UnLua TypeScript (.d.ts) generator
This commit is contained in:
1 parent
ebce41f347
commit
ee2e62bb34
282 files changed
+141794
-261
No files matched your search
@@ -1,22 +1,20 @@
|
||||
---@type LuaGameModeBase
|
||||
local M = UnLua.Class()
|
||||
|
||||
local Log = require("Framework.Log")
|
||||
|
||||
function M:ReceiveBeginPlay()
|
||||
local LuaGameMode = UnLua.Class()
|
||||
function LuaGameMode.ReceiveBeginPlay(self)
|
||||
Log.Info("LuaGameMode:ReceiveBeginPlay() - Demo scene started")
|
||||
UE.UKismetSystemLibrary.PrintString(
|
||||
self,
|
||||
"[UnLua Demo] LuaGameMode initialized!",
|
||||
true,
|
||||
true,
|
||||
UE.FLinearColor(0.3, 0.85, 1.0, 1.0),
|
||||
5.0
|
||||
UE.FLinearColor(0.3, 0.85, 1, 1),
|
||||
5
|
||||
)
|
||||
end
|
||||
|
||||
function M:ReceiveEndPlay(EndPlayReason)
|
||||
Log.Info("LuaGameMode:ReceiveEndPlay(reason=%s)", tostring(EndPlayReason))
|
||||
function LuaGameMode.ReceiveEndPlay(self, EndPlayReason)
|
||||
Log.Info(
|
||||
"LuaGameMode:ReceiveEndPlay(reason=%s)",
|
||||
tostring(EndPlayReason)
|
||||
)
|
||||
end
|
||||
|
||||
return M
|
||||
return LuaGameMode
|
||||
Reference in new issue
Block a user