World of Warcraft Forever API · TimedSignalMapAPI.md, for your AI
TimedSignalMapAPI (widget methods)
8 functions, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
CancelAllSignals
self:CancelAllSignals()
Cancels all scheduled signals.
CancelSignal
self:CancelSignal(key)
Cancels the scheduled signal for the specified key, if one exists.
Arguments
key | number | Key to cancel. No effect if the key is not scheduled. |
|---|
GetNextSignal
key, time = self:GetNextSignal()
Returns the next key due to signal along with its scheduled time.
Returns
key | number | The key that has been scheduled. |
|---|---|---|
time | FrameTime | Absolute time, on the same clock as GetTime(), at which the key is scheduled to signal. |
GetSignalCount
count = self:GetSignalCount()
Returns the number of keys currently scheduled to signal.
Returns
count | size | Count of scheduled keys. |
|---|
GetSignalTime
time = self:GetSignalTime(key)
Returns the absolute time at which the specified key is scheduled to signal.
Arguments
key | number | Key to query. |
|---|
Returns
time | FrameTime may be nil | Absolute time the key will signal; nil if not scheduled. |
|---|
HasSignal
hasSignal = self:HasSignal(key)
Returns whether the specified key is currently scheduled to signal.
Arguments
key | number | Key to test. |
|---|
Returns
hasSignal | bool | True if the key is scheduled to signal. |
|---|
SignalAfter
self:SignalAfter(key, secondsFromNow)
Schedules the specified key to signal after a delay from the current time, replacing any existing schedule for that key.
Arguments
key | number | Key to signal. Re-scheduling an existing key replaces its time. |
|---|---|---|
secondsFromNow | Seconds | Delay in seconds from now, converted to an absolute time when scheduled. |
SignalAt
self:SignalAt(key, time)
Schedules the specified key to signal at an absolute time, replacing any existing schedule for that key.
Arguments
key | number | Key to signal. Re-scheduling an existing key replaces its time. |
|---|---|---|
time | FrameTime | Absolute time at which to signal, on the same clock as GetTime(). |