@rbxts/types 1.0.554 → 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 +26 -13
- package/include/lua.d.ts +3 -0
- package/include/roblox.d.ts +110 -1
- package/package.json +1 -1
|
@@ -10212,7 +10212,7 @@ interface GroupService extends Instance {
|
|
|
10212
10212
|
*
|
|
10213
10213
|
* A boolean indicating if this is the player's primary group
|
|
10214
10214
|
*
|
|
10215
|
-
* IsInClan
|
|
10215
|
+
* ### IsInClan
|
|
10216
10216
|
*
|
|
10217
10217
|
* A boolean indicating if the player is in this group's clan
|
|
10218
10218
|
*
|
|
@@ -17755,11 +17755,11 @@ interface JointsService extends Instance {
|
|
|
17755
17755
|
*/
|
|
17756
17756
|
CreateJoinAfterMoveJoints(this: JointsService): void;
|
|
17757
17757
|
/**
|
|
17758
|
-
* Sets the PVInstance that will be connected with the target PVInstance specified by [SetJoinAfterMoveTarget](https://developer.roblox.com/api-reference/function/JointsService/SetJoinAfterMoveTarget
|
|
17758
|
+
* Sets the PVInstance that will be connected with the target PVInstance specified by [JointsService:SetJoinAfterMoveTarget](https://developer.roblox.com/en-us/api-reference/function/JointsService/SetJoinAfterMoveTarget).
|
|
17759
17759
|
*/
|
|
17760
17760
|
SetJoinAfterMoveInstance(this: JointsService, joinInstance: PVInstance): void;
|
|
17761
17761
|
/**
|
|
17762
|
-
* Sets the PVInstance that will be connected with the PVInstance specified by [SetJoinAfterMoveInstance](https://developer.roblox.com/api-reference/function/JointsService/SetJoinAfterMoveInstance
|
|
17762
|
+
* Sets the PVInstance that will be connected with the PVInstance specified by [JointsService:SetJoinAfterMoveInstance](https://developer.roblox.com/en-us/api-reference/function/JointsService/SetJoinAfterMoveInstance).
|
|
17763
17763
|
*/
|
|
17764
17764
|
SetJoinAfterMoveTarget(this: JointsService, joinTarget: PVInstance): void;
|
|
17765
17765
|
/**
|
|
@@ -23214,7 +23214,7 @@ interface Model extends PVInstance {
|
|
|
23214
23214
|
TranslateBy(this: Model, delta: Vector3): void;
|
|
23215
23215
|
}
|
|
23216
23216
|
|
|
23217
|
-
/** Actor */
|
|
23217
|
+
/** Actor Class */
|
|
23218
23218
|
interface Actor extends Model {
|
|
23219
23219
|
/**
|
|
23220
23220
|
* **DO NOT USE!**
|
|
@@ -24652,19 +24652,19 @@ interface PhysicsService extends Instance {
|
|
|
24652
24652
|
* This function will throw a runtime error in the following circumstances:
|
|
24653
24653
|
*
|
|
24654
24654
|
* * The specified group does not exist.
|
|
24655
|
-
* * The specified part is not a BasePart.
|
|
24655
|
+
* * The specified part is not a BasePart.
|
|
24656
24656
|
*/
|
|
24657
24657
|
CollisionGroupContainsPart(this: PhysicsService, name: string, part: BasePart): boolean;
|
|
24658
24658
|
/**
|
|
24659
24659
|
* Sets the collision status between two groups.
|
|
24660
24660
|
*
|
|
24661
|
-
* This function will throw an error if either of the groups do not exist.
|
|
24661
|
+
* This function will throw an error if either of the groups do not exist.
|
|
24662
24662
|
*/
|
|
24663
24663
|
CollisionGroupSetCollidable(this: PhysicsService, name1: string, name2: string, collidable: boolean): void;
|
|
24664
24664
|
/**
|
|
24665
24665
|
* Returns whether the two specified collision groups will collide.
|
|
24666
24666
|
*
|
|
24667
|
-
* This function will throw an error if either of the groups do not exist.
|
|
24667
|
+
* This function will throw an error if either of the groups do not exist.
|
|
24668
24668
|
*/
|
|
24669
24669
|
CollisionGroupsAreCollidable(this: PhysicsService, name1: string, name2: string): boolean;
|
|
24670
24670
|
/**
|
|
@@ -24680,7 +24680,7 @@ interface PhysicsService extends Instance {
|
|
|
24680
24680
|
/**
|
|
24681
24681
|
* Returns the name of the collision group with the corresponding id. This function will return nil if the group with the corresponding id has not been named.
|
|
24682
24682
|
*
|
|
24683
|
-
* This function will throw an error if the id is not in the range of 0 <= id <
|
|
24683
|
+
* This function will throw an error if the id is not in the range of 0 <= id < maxCollisionGroups
|
|
24684
24684
|
*/
|
|
24685
24685
|
GetCollisionGroupName(this: PhysicsService, name: number): string;
|
|
24686
24686
|
/**
|
|
@@ -24723,7 +24723,7 @@ interface PhysicsService extends Instance {
|
|
|
24723
24723
|
* This function will throw a runtime error in the following circumstances:
|
|
24724
24724
|
*
|
|
24725
24725
|
* * The name “Default” is provided.
|
|
24726
|
-
* * The function is called from a client.
|
|
24726
|
+
* * The function is called from a client.
|
|
24727
24727
|
*/
|
|
24728
24728
|
RemoveCollisionGroup(this: PhysicsService, name: string): void;
|
|
24729
24729
|
/**
|
|
@@ -24734,7 +24734,7 @@ interface PhysicsService extends Instance {
|
|
|
24734
24734
|
* This function will throw a runtime error in the following circumstances:
|
|
24735
24735
|
*
|
|
24736
24736
|
* * Invalid or empty name provided for either argument.
|
|
24737
|
-
* * The function is called from a client.
|
|
24737
|
+
* * The function is called from a client.
|
|
24738
24738
|
*/
|
|
24739
24739
|
RenameCollisionGroup(this: PhysicsService, from: string, to: string): void;
|
|
24740
24740
|
/**
|
|
@@ -26663,7 +26663,9 @@ interface RemoteEvent<T extends Callback = Callback> extends Instance {
|
|
|
26663
26663
|
*
|
|
26664
26664
|
* Since this function is used to communicate from the server to the client, it will only work when used in a [Script](https://developer.roblox.com/en-us/api-reference/class/Script).
|
|
26665
26665
|
*
|
|
26666
|
-
* The
|
|
26666
|
+
* The behavior of this function, as well as other [RemoteEvent](https://developer.roblox.com/en-us/api-reference/class/RemoteEvent) and [RemoteFunction](https://developer.roblox.com/en-us/api-reference/class/RemoteFunction) events and functions, is well documented in [this](https://developer.roblox.com/articles/Remote-Functions-and-Events) article.
|
|
26667
|
+
*
|
|
26668
|
+
* There are limitations on the kinds of data that can be passed between the client and server. For more information, see [Parameter Limitations](https://developer.roblox.com/articles/Remote-Functions-and-Events#parameter-limitations).
|
|
26667
26669
|
*
|
|
26668
26670
|
* Note
|
|
26669
26671
|
* ----
|
|
@@ -26676,6 +26678,8 @@ interface RemoteEvent<T extends Callback = Callback> extends Instance {
|
|
|
26676
26678
|
*
|
|
26677
26679
|
* Since this function is used for communication from server to client, so it will only work when used by a server-side [Script](https://developer.roblox.com/en-us/api-reference/class/Script). For client-to-server communication (the other direction), use [FireServer](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireServer). Direct client-to-client communication not possible on Roblox; however, it can be simulated using a [Script](https://developer.roblox.com/en-us/api-reference/class/Script) that relays information received through some other means, such as [FireServer](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireServer).
|
|
26678
26680
|
*
|
|
26681
|
+
* There are limitations on the kinds of data that can be passed between the client and server. For more information, see [Parameter Limitations](https://developer.roblox.com/articles/Remote-Functions-and-Events#parameter-limitations).
|
|
26682
|
+
*
|
|
26679
26683
|
* See also
|
|
26680
26684
|
* --------
|
|
26681
26685
|
*
|
|
@@ -26693,7 +26697,9 @@ interface RemoteEvent<T extends Callback = Callback> extends Instance {
|
|
|
26693
26697
|
*
|
|
26694
26698
|
* When firing from the client note that nothing has to be passed in by default (unlike firing to the client from the server - where the player is passed in).
|
|
26695
26699
|
*
|
|
26696
|
-
* The
|
|
26700
|
+
* The behavior of this function, as well as other [RemoteEvent](https://developer.roblox.com/en-us/api-reference/class/RemoteEvent) and [RemoteFunction](https://developer.roblox.com/en-us/api-reference/class/RemoteFunction) events and functions, is well documented in [this](https://developer.roblox.com/articles/Remote-Functions-and-Events) article.
|
|
26701
|
+
*
|
|
26702
|
+
* There are limitations on the kinds of data that can be passed between the client and server. For more information, see [Parameter Limitations](https://developer.roblox.com/articles/Remote-Functions-and-Events#parameter-limitations).
|
|
26697
26703
|
*/
|
|
26698
26704
|
FireServer(this: RemoteEvent, ...args: Parameters<T>): void;
|
|
26699
26705
|
/**
|
|
@@ -26750,7 +26756,9 @@ interface RemoteFunction<T extends Callback = Callback> extends Instance {
|
|
|
26750
26756
|
* Warning
|
|
26751
26757
|
* -------
|
|
26752
26758
|
*
|
|
26753
|
-
* If a client disconnects or leaves the game while it is being invoked from the server, the InvokeClient function will error. It is therefore recommended to wrap this function in a pcall so it
|
|
26759
|
+
* If a client disconnects or leaves the game while it is being invoked from the server, the InvokeClient function will error. It is therefore recommended to wrap this function in a pcall so it doesn't stop the execution of other code.
|
|
26760
|
+
*
|
|
26761
|
+
* There are limitations on the kinds of data that can be passed between the client and server. For more information, see [Parameter Limitations](https://developer.roblox.com/articles/Remote-Functions-and-Events#parameter-limitations).
|
|
26754
26762
|
* Tags: Yields
|
|
26755
26763
|
*/
|
|
26756
26764
|
InvokeClient(this: RemoteFunction, player: Player, ...args: Parameters<T>): unknown;
|
|
@@ -26767,6 +26775,8 @@ interface RemoteFunction<T extends Callback = Callback> extends Instance {
|
|
|
26767
26775
|
* ----
|
|
26768
26776
|
*
|
|
26769
26777
|
* When handling the invocation from the client note that nothing has to be passed in by default (unlike invoking the server where the player is passed in).
|
|
26778
|
+
*
|
|
26779
|
+
* There are limitations on the kinds of data that can be passed between the client and server. For more information, see [Parameter Limitations](https://developer.roblox.com/articles/Remote-Functions-and-Events#parameter-limitations).
|
|
26770
26780
|
* Tags: Yields
|
|
26771
26781
|
*/
|
|
26772
26782
|
InvokeServer(this: RemoteFunction, ...args: Parameters<T>): ReturnType<T>;
|
|
@@ -34267,6 +34277,9 @@ interface Vector3Curve extends Instance {
|
|
|
34267
34277
|
* @deprecated
|
|
34268
34278
|
*/
|
|
34269
34279
|
readonly _nominal_Vector3Curve: unique symbol;
|
|
34280
|
+
/**
|
|
34281
|
+
* Samples the 3 FloatCurves (X, Y, Z) at the time passed as argument. Returns the 3 samples as a tuple of 3 numbers. If a channel curve is missing or no key is found in the curve the channel is evaluated as nil.
|
|
34282
|
+
*/
|
|
34270
34283
|
GetValueAtTime(this: Vector3Curve, time: number): unknown;
|
|
34271
34284
|
/**
|
|
34272
34285
|
* Returns the FloatCurve controlling the X channel. It is the first child instance of type FloatCurve named `X`. If none is found an empty FloatCurve is created.
|
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
|
|