@rbxts/types 1.0.781 → 1.0.782
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11537,11 +11537,11 @@ interface FloatCurve extends Instance {
|
|
|
11537
11537
|
/**
|
|
11538
11538
|
* The first returned value is the index of the last key with key.time <= time (or min(1,length) if no key was found). The second returned value is the index of the first key with key.time >= time or the length of the curve if no key was found satisfying the inequality.
|
|
11539
11539
|
*/
|
|
11540
|
-
GetKeyIndicesAtTime(this: FloatCurve, time: number):
|
|
11540
|
+
GetKeyIndicesAtTime(this: FloatCurve, time: number): [before: number, after: number];
|
|
11541
11541
|
/**
|
|
11542
11542
|
* Returns a copy of all the keys in the FloatCurve as a Lua array of FloatCurveKey.
|
|
11543
11543
|
*/
|
|
11544
|
-
GetKeys(this: FloatCurve):
|
|
11544
|
+
GetKeys(this: FloatCurve): Array<FloatCurveKey>;
|
|
11545
11545
|
/**
|
|
11546
11546
|
* Samples the float curve at a given time passed as argument.
|
|
11547
11547
|
*/
|
|
@@ -11549,7 +11549,7 @@ interface FloatCurve extends Instance {
|
|
|
11549
11549
|
/**
|
|
11550
11550
|
* Adds the key passed as argument to this curve. If a key exists at the same time it will be replaced. First return value is true if a key was added, false if a previous key was replaced. Second return value is the index at which the marker was added.
|
|
11551
11551
|
*/
|
|
11552
|
-
InsertKey(this: FloatCurve, key: FloatCurveKey):
|
|
11552
|
+
InsertKey(this: FloatCurve, key: FloatCurveKey): [isNew: boolean, index: number];
|
|
11553
11553
|
/**
|
|
11554
11554
|
* Removes a given number of Keys starting from a given index. Returns the number of keys that were removed.
|
|
11555
11555
|
*/
|