Initial version - 1.2.0.60

EN: 1.2.0.60
CN: 1.2.0.61
JP: 1.2.0.63
KR: 1.2.0.67
This commit is contained in:
SL1900
2025-12-03 01:00:00 +09:00
commit 5e0d58cfad
3595 changed files with 9373562 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
local Event = class("Event")
function Event:ctor(listener, callback)
self._listener = listener
if type(callback) == "function" then
self._callback = callback
elseif type(callback) == "string" then
local cb = listener[callback]
if type(cb) == "function" then
self._callback = cb
else
self._callback = nil
end
else
self._callback = nil
end
end
return Event