Files
florian.berthold 5bb7be4968 chore: hoist plugins to root and move main into Details/
Each Details_* plugin and the main Details addon now lives in its own
repo-root folder, matching the Exiles fork-layout convention.
2026-05-25 10:59:28 +02:00

32 lines
759 B
Lua

local addonName, details222 = ...
details222.Scheduler = {
Names = {},
Debug = false,
}
local printDebug = function(...)
if (details222.Scheduler.Debug) then
print("ISE:", ...)
end
end
function details222.Scheduler.NewTicker(seconds, callback, name)
local tickerHandler = C_Timer.NewTicker(seconds, callback)
if (name) then
details222.Scheduler.Names[name] = tickerHandler
end
return tickerHandler
end
function details222.Scheduler.Cancel(name)
local ticker = details222.Scheduler.Names[name]
if (ticker) then
ticker:Cancel()
details222.Scheduler.Names[name] = nil
printDebug("Ticker", name, "Cancelled")
else
printDebug("Ticker", name, " Not Found")
end
end