Update - 1.9.0.103

EN: 1.9.0.103
CN: 1.9.0.104
JP: 1.9.0.106
KR: 1.9.0.108
This commit is contained in:
SL1900
2026-04-18 00:15:00 +09:00
parent 35fe1f046d
commit e0549005e1
1150 changed files with 941124 additions and 19847 deletions
+11 -3
View File
@@ -160,9 +160,15 @@ function EventManager.Remove(nEventId, listener, callback)
end
end
function EventManager.RemoveAll(nEventId)
mapEvent[nEventId] = nil
mapTempAdd[nEventId] = nil
mapTempRemove[nEventId] = nil
if type(mapEvent) == "table" then
mapEvent[nEventId] = nil
end
if type(mapTempAdd) == "table" then
mapTempAdd[nEventId] = nil
end
if type(mapTempRemove) == "table" then
mapTempRemove[nEventId] = nil
end
end
function EventManager.Hit(nEventId, ...)
if mapEvent == nil or mapOnHitEventId == nil then
@@ -190,6 +196,8 @@ function EventManager.Hit(nEventId, ...)
mapOnHitEventId[nEventId] = nil
ProcAdd(nEventId)
ProcRemove(nEventId)
elseif mapOnHitEventId[nEventId] ~= nil then
printWarn("在同一帧里,不应重复触发同一事件,EvendId:" .. tostring(nEventId))
end
end
local mapEntityEvent, mapTempEntityEventAdd, mapTempEntityEventRemove, mapOnHitEntityEventId