@rbxts/types 1.0.551 → 1.0.555
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.
- package/include/generated/None.d.ts +178 -33
- package/include/generated/PluginSecurity.d.ts +26 -3
- package/include/generated/enums.d.ts +139 -87
- package/include/lua.d.ts +3 -0
- package/include/roblox.d.ts +110 -1
- package/package.json +1 -1
package/include/lua.d.ts
CHANGED
|
@@ -721,6 +721,9 @@ declare namespace coroutine {
|
|
|
721
721
|
|
|
722
722
|
/** Suspends the execution of the calling coroutine. Any arguments to yield are passed as extra results to resume. */
|
|
723
723
|
function yield(...params: Array<unknown>): LuaTuple<Array<unknown>>;
|
|
724
|
+
|
|
725
|
+
/** Takes a suspended coroutine and makes it "dead" (non-runnable). */
|
|
726
|
+
function close(co: thread): void;
|
|
724
727
|
}
|
|
725
728
|
|
|
726
729
|
declare function next<T extends ReadonlyArray<any>>(
|
package/include/roblox.d.ts
CHANGED
|
@@ -1052,6 +1052,8 @@ interface CFrame {
|
|
|
1052
1052
|
readonly _nominal_CFrame: unique symbol;
|
|
1053
1053
|
/** The 3D position of the CFrame */
|
|
1054
1054
|
readonly Position: Vector3;
|
|
1055
|
+
/** A copy of the CFrame with no translation. */
|
|
1056
|
+
readonly Rotation: CFrame;
|
|
1055
1057
|
/** The x-coordinate of the position */
|
|
1056
1058
|
readonly X: number;
|
|
1057
1059
|
/** The y-coordinate of the position */
|
|
@@ -1101,6 +1103,17 @@ interface CFrame {
|
|
|
1101
1103
|
}
|
|
1102
1104
|
|
|
1103
1105
|
interface CFrameConstructor {
|
|
1106
|
+
/**
|
|
1107
|
+
* An identity CFrame, one with no translation or rotation.
|
|
1108
|
+
*
|
|
1109
|
+
* This API member is a **constant**, and must be accessed through the `CFrame` global as opposed to an individual
|
|
1110
|
+
* `CFrame` object.
|
|
1111
|
+
*
|
|
1112
|
+
* ```lua
|
|
1113
|
+
* print(CFrame.identity) --> 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1
|
|
1114
|
+
* ```
|
|
1115
|
+
*/
|
|
1116
|
+
readonly identity: CFrame;
|
|
1104
1117
|
/** Equivalent to fromEulerAnglesXYZ */
|
|
1105
1118
|
Angles: (rX: number, rY: number, rZ: number) => CFrame;
|
|
1106
1119
|
/** Creates a rotated CFrame from a Unit Vector3 and a rotation in radians */
|
|
@@ -1807,7 +1820,9 @@ interface Vector2 {
|
|
|
1807
1820
|
* @deprecated
|
|
1808
1821
|
*/
|
|
1809
1822
|
readonly _nominal_Vector2: unique symbol;
|
|
1823
|
+
/** The x-coordinate of the Vector2. */
|
|
1810
1824
|
readonly X: number;
|
|
1825
|
+
/** The y-coordinate of the Vector2. */
|
|
1811
1826
|
readonly Y: number;
|
|
1812
1827
|
/** A normalized copy of the vector - has a magnitude of 1. */
|
|
1813
1828
|
readonly Unit: Vector2;
|
|
@@ -1821,7 +1836,54 @@ interface Vector2 {
|
|
|
1821
1836
|
Cross(this: Vector2, other: Vector2): number;
|
|
1822
1837
|
}
|
|
1823
1838
|
|
|
1824
|
-
|
|
1839
|
+
interface Vector2Constructor {
|
|
1840
|
+
/**
|
|
1841
|
+
* A Vector2 with a magnitude of zero.
|
|
1842
|
+
*
|
|
1843
|
+
* This API member is a **constant**, and must be accessed through the `Vector2` global as opposed to an individual
|
|
1844
|
+
* `Vector2` object.
|
|
1845
|
+
*
|
|
1846
|
+
* ```lua
|
|
1847
|
+
* print(Vector2.zero) --> 0, 0
|
|
1848
|
+
* ```
|
|
1849
|
+
*/
|
|
1850
|
+
readonly zero: Vector2;
|
|
1851
|
+
/**
|
|
1852
|
+
* A Vector2 with a value of 1 on every axis.
|
|
1853
|
+
*
|
|
1854
|
+
* This API member is a **constant**, and must be accessed through the `Vector2` global as opposed to an individual
|
|
1855
|
+
* `Vector2` object.
|
|
1856
|
+
*
|
|
1857
|
+
* ```lua
|
|
1858
|
+
* print(Vector2.one) --> 1, 1
|
|
1859
|
+
* ```
|
|
1860
|
+
*/
|
|
1861
|
+
readonly one: Vector2;
|
|
1862
|
+
/**
|
|
1863
|
+
* A Vector2 with a value of 1 on the X axis.
|
|
1864
|
+
*
|
|
1865
|
+
* This API member is a **constant**, and must be accessed through the `Vector2` global as opposed to an individual
|
|
1866
|
+
* `Vector2` object.
|
|
1867
|
+
*
|
|
1868
|
+
* ```lua
|
|
1869
|
+
* print(Vector2.xAxis) --> 1, 0
|
|
1870
|
+
* ```
|
|
1871
|
+
*/
|
|
1872
|
+
readonly xAxis: Vector2;
|
|
1873
|
+
/**
|
|
1874
|
+
* A Vector2 with a value of 1 on the Y axis.
|
|
1875
|
+
*
|
|
1876
|
+
* This API member is a **constant**, and must be accessed through the `Vector2` global as opposed to an individual
|
|
1877
|
+
* `Vector2` object.
|
|
1878
|
+
*
|
|
1879
|
+
* ```lua
|
|
1880
|
+
* print(Vector2.yAxis) --> 0, 1
|
|
1881
|
+
* ```
|
|
1882
|
+
*/
|
|
1883
|
+
readonly yAxis: Vector2;
|
|
1884
|
+
/** Returns a Vector2 from the given x and y components. */
|
|
1885
|
+
new (x?: number, y?: number): Vector2;
|
|
1886
|
+
}
|
|
1825
1887
|
|
|
1826
1888
|
declare const Vector2: Vector2Constructor;
|
|
1827
1889
|
|
|
@@ -1871,8 +1933,55 @@ interface Vector3 {
|
|
|
1871
1933
|
}
|
|
1872
1934
|
|
|
1873
1935
|
interface Vector3Constructor {
|
|
1936
|
+
/**
|
|
1937
|
+
* A Vector3 with a magnitude of zero.
|
|
1938
|
+
*
|
|
1939
|
+
* This API member is a **constant**, and must be accessed through the `Vector3` global as opposed to an individual
|
|
1940
|
+
* `Vector3` object.
|
|
1941
|
+
*
|
|
1942
|
+
* ```lua
|
|
1943
|
+
* print(Vector3.zero) --> 0, 0, 0
|
|
1944
|
+
* ```
|
|
1945
|
+
*/
|
|
1946
|
+
readonly zero: Vector3;
|
|
1947
|
+
/**
|
|
1948
|
+
* A Vector3 with a value of 1 on every axis.
|
|
1949
|
+
*
|
|
1950
|
+
* This API member is a **constant**, and must be accessed through the `Vector3` global as opposed to an individual
|
|
1951
|
+
* `Vector3` object.
|
|
1952
|
+
*
|
|
1953
|
+
* ```lua
|
|
1954
|
+
* print(Vector3.one) --> 1, 1, 1
|
|
1955
|
+
* ```
|
|
1956
|
+
*/
|
|
1957
|
+
readonly one: Vector3;
|
|
1958
|
+
/**
|
|
1959
|
+
* A Vector3 with a value of 1 on the X axis.
|
|
1960
|
+
*
|
|
1961
|
+
* This API member is a **constant**, and must be accessed through the `Vector3` global as opposed to an individual
|
|
1962
|
+
* `Vector3` object.
|
|
1963
|
+
*
|
|
1964
|
+
* ```lua
|
|
1965
|
+
* print(Vector3.xAxis) --> 1, 0, 0
|
|
1966
|
+
* ```
|
|
1967
|
+
*/
|
|
1968
|
+
readonly xAxis: Vector3;
|
|
1969
|
+
/**
|
|
1970
|
+
* A Vector3 with a value of 1 on the Y axis.
|
|
1971
|
+
*
|
|
1972
|
+
* This API member is a **constant**, and must be accessed through the `Vector3` global as opposed to an individual
|
|
1973
|
+
* `Vector3` object.
|
|
1974
|
+
*
|
|
1975
|
+
* ```lua
|
|
1976
|
+
* print(Vector3.yAxis) --> 0, 1, 0
|
|
1977
|
+
* ```
|
|
1978
|
+
*/
|
|
1979
|
+
readonly yAxis: Vector3;
|
|
1980
|
+
/** Constructs a new Vector3 in a particular direction. */
|
|
1874
1981
|
FromNormalId: (norm: Enum.NormalId) => Vector3;
|
|
1982
|
+
/** Constructs a new Vector3 for a particular axis. */
|
|
1875
1983
|
FromAxis: (axis: Enum.Axis) => Vector3;
|
|
1984
|
+
/** Constructs a new Vector3 using the given x, y, and z components. */
|
|
1876
1985
|
new (x?: number, y?: number, z?: number): Vector3;
|
|
1877
1986
|
}
|
|
1878
1987
|
|