feat: upgrade to ts2lua-unreal v0.3.0 and refactor Game classes to pure C++ callback + TS composition hot-reload

This commit is contained in:
szy73711 committed 2026-11-30 02:42:51 +08:00
1 parent 4ad4a8f36f
commit 783dccf53d
64 files changed
+2368 -714

No files matched your search

+9 -10
View File
@@ -1,7 +1,5 @@
local ____lualib = require("lualib_bundle")
local __TS__Class = ____lualib.__TS__Class
local ____exports = {}
____exports.BTCondition = __TS__Class()
local ____exports = __module.env
____exports.BTCondition = __TS__DefineClass("BTCondition", __module)
local BTCondition = ____exports.BTCondition
BTCondition.name = "BTCondition"
function BTCondition.prototype.____constructor(self, check)
@@ -12,7 +10,7 @@ function BTCondition.prototype.Tick(self, ctx)
end
function BTCondition.prototype.Reset(self)
end
____exports.BTAction = __TS__Class()
____exports.BTAction = __TS__DefineClass("BTAction", __module)
local BTAction = ____exports.BTAction
BTAction.name = "BTAction"
function BTAction.prototype.____constructor(self, action)
@@ -23,7 +21,7 @@ function BTAction.prototype.Tick(self, ctx)
end
function BTAction.prototype.Reset(self)
end
____exports.BTSequence = __TS__Class()
____exports.BTSequence = __TS__DefineClass("BTSequence", __module)
local BTSequence = ____exports.BTSequence
BTSequence.name = "BTSequence"
function BTSequence.prototype.____constructor(self, children)
@@ -55,7 +53,7 @@ function BTSequence.prototype.Reset(self)
end
end
end
____exports.BTSelector = __TS__Class()
____exports.BTSelector = __TS__DefineClass("BTSelector", __module)
local BTSelector = ____exports.BTSelector
BTSelector.name = "BTSelector"
function BTSelector.prototype.____constructor(self, children)
@@ -87,7 +85,7 @@ function BTSelector.prototype.Reset(self)
end
end
end
____exports.BTInverter = __TS__Class()
____exports.BTInverter = __TS__DefineClass("BTInverter", __module)
local BTInverter = ____exports.BTInverter
BTInverter.name = "BTInverter"
function BTInverter.prototype.____constructor(self, child)
@@ -106,7 +104,7 @@ end
function BTInverter.prototype.Reset(self)
self.child:Reset()
end
____exports.BTCooldown = __TS__Class()
____exports.BTCooldown = __TS__DefineClass("BTCooldown", __module)
local BTCooldown = ____exports.BTCooldown
BTCooldown.name = "BTCooldown"
function BTCooldown.prototype.____constructor(self, child, cooldownSeconds)
@@ -127,4 +125,5 @@ end
function BTCooldown.prototype.Reset(self)
self.child:Reset()
end
return ____exports
function __module.UpdateImports()
end