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:
1 parent
4ad4a8f36f
commit
783dccf53d
64 files changed
+2368
-714
No files matched your search
@@ -1,4 +1,6 @@
|
||||
local ____exports = {}
|
||||
local ____exports = __module.env
|
||||
---
|
||||
-- @module_data
|
||||
local Listeners = {}
|
||||
function ____exports.On(eventName, callback, owner)
|
||||
assert(
|
||||
@@ -98,4 +100,23 @@ end
|
||||
function ____exports.Clear()
|
||||
Listeners = {}
|
||||
end
|
||||
return ____exports
|
||||
function __module.StashData(env, to)
|
||||
local ____has = to.__has__
|
||||
if not ____has then
|
||||
____has = {}
|
||||
to.__has__ = ____has
|
||||
end
|
||||
to.Listeners = Listeners
|
||||
____has.Listeners = true
|
||||
end
|
||||
function __module.RestoreData(env, from)
|
||||
local ____has = from.__has__
|
||||
if not ____has then
|
||||
return
|
||||
end
|
||||
if ____has.Listeners then
|
||||
Listeners = from.Listeners
|
||||
end
|
||||
end
|
||||
function __module.UpdateImports()
|
||||
end
|
||||
Reference in new issue
Block a user