World of Warcraft Forever API · C_CurveUtil.md, for your AI
C_CurveUtil
5 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_CurveUtil.CreateColorCurve
curve = C_CurveUtil.CreateColorCurve()
Returns a new color curve object with no assigned points.
Returns
curve | LuaColorCurveObject |
|---|
C_CurveUtil.CreateCurve
curve = C_CurveUtil.CreateCurve()
Returns a new curve object with no assigned points.
Returns
curve | LuaCurveObject |
|---|
C_CurveUtil.EvaluateColorFromBoolean
value = C_CurveUtil.EvaluateColorFromBoolean(boolean, valueIfTrue, valueIfFalse)
Evaluates a potentially-secret boolean value and returns a color.
Arguments
boolean | bool | |
|---|---|---|
valueIfTrue | colorRGBA | |
valueIfFalse | colorRGBA |
Returns
value | colorRGBA |
|---|
C_CurveUtil.EvaluateColorValueFromBoolean
value = C_CurveUtil.EvaluateColorValueFromBoolean(boolean, valueIfTrue, valueIfFalse)
Evaluates a potentially-secret boolean value and returns a single color component (eg. alpha).
Arguments
boolean | bool | |
|---|---|---|
valueIfTrue | SingleColorValue | |
valueIfFalse | SingleColorValue |
Returns
value | SingleColorValue |
|---|
C_CurveUtil.EvaluateGameCurve
y = C_CurveUtil.EvaluateGameCurve(curveID, x)
Arguments
curveID | number | |
|---|---|---|
x | number |
Returns
y | number |
|---|