v0.13.8

CurveObject

object type10 methodsavailable in: camelot

It has every method of CurveObjectBase, plus 10 of its own.

Inherits from

  1. CurveObject · 10
  2. CurveObjectBase · 3

The number is each type's own documented methods. A CurveObject has all of them.

Methods

In the emulator: 10 implemented.

methodwhat it doesstatus
AddPointAdds a single point to the curve. · warcraft.wiki.gg ↗
(pointX: number, pointY: number)
implemented
ClearPointsRemoves all points from the curve. Evaluating an empty curve always yields a zero value. · warcraft.wiki.gg ↗
()
implemented
CopyReturns a new copy of this curve. · warcraft.wiki.gg ↗
(): LuaCurveObject
implemented
EvaluateReturns a calculated 'y' value from the configured curve points. · warcraft.wiki.gg ↗
(x: number): number
implemented
GetPointReturns the vector for an individual point index on the curve. · warcraft.wiki.gg ↗
(index: number): Vector2DMixin?
implemented
GetPointCountReturns the total number of points on the curve. · warcraft.wiki.gg ↗
(): size
implemented
GetPointsReturns the vectors for all points on the curve. · warcraft.wiki.gg ↗
(): vector2[]
implemented
RemovePointRemoves a single point from the curve. Raises an error if the supplied point index is out of range. · warcraft.wiki.gg ↗
(index: number)
implemented
SetPointsReplaces all points on the curve. · warcraft.wiki.gg ↗
(point: vector2[])
implemented
SetToDefaultsResets all state on the curve, and clears the secret values flag. · warcraft.wiki.gg ↗
()
implemented

sources

Methods and inheritance: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗.