World of Warcraft Forever API · C_DurationUtil.md, for your AI
C_DurationUtil
3 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
C_DurationUtil.CreateDuration
duration = C_DurationUtil.CreateDuration()
Creates a zero duration container that can represent a time span.
Returns
duration | LuaDurationObject |
|---|
C_DurationUtil.CreateDurationTextBinding
binding = C_DurationUtil.CreateDurationTextBinding()
Creates a duration text binding, which automatically updates a font string with formatted text derived from a duration object.
Returns
binding | DurationTextBinding |
|---|
C_DurationUtil.CreateManualClock
clock = C_DurationUtil.CreateManualClock()
Creates a manually driven time source for use with duration objects.
Returns
clock | LuaDurationManualClock |
|---|