test: add comprehensive ts2lua-unreal TS/Lua 5.4 test suites and upgrade to v0.2.2
This commit is contained in:
1 parent
ee2e62bb34
commit
3dd61c32a9
75 files changed
+9929
-10
No files matched your search
@@ -0,0 +1,17 @@
|
||||
local UnLuaSubActor = require("Tests.Syntax.UnLuaSubActor")
|
||||
local UnLuaGrandChildActor = UnLua.Class("Tests.Syntax.UnLuaSubActor")
|
||||
function UnLuaGrandChildActor.ReceiveBeginPlay(self)
|
||||
UnLuaSubActor.ReceiveBeginPlay(self)
|
||||
self.tier = 3
|
||||
self.callTrace[#self.callTrace + 1] = "GrandChild.ReceiveBeginPlay"
|
||||
end
|
||||
function UnLuaGrandChildActor.ComputeBonus(self, baseVal, multiplier)
|
||||
if multiplier == nil then
|
||||
multiplier = 2
|
||||
end
|
||||
return UnLuaSubActor.ComputeBonus(self, baseVal, multiplier) + self.tier
|
||||
end
|
||||
function UnLuaGrandChildActor.GetTier(self)
|
||||
return self.tier
|
||||
end
|
||||
return UnLuaGrandChildActor
|
||||
Reference in new issue
Block a user