@rbxts/types 1.0.614 → 1.0.617
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.
|
@@ -24240,7 +24240,7 @@ interface WorldRoot extends Model {
|
|
|
24240
24240
|
*
|
|
24241
24241
|
* This and other spatial query functions do not consider parts' [CanCollide](https://developer.roblox.com/en-us/api-reference/property/BasePart/CanCollide) or [CanTouch](https://developer.roblox.com/en-us/api-reference/property/BasePart/CanTouch) properties. However, it will consider parts' collision group if specified by the given OverlapParams.
|
|
24242
24242
|
*/
|
|
24243
|
-
GetPartBoundsInBox(this: WorldRoot, cframe: CFrame, size: Vector3, overlapParams?: OverlapParams): Array<
|
|
24243
|
+
GetPartBoundsInBox(this: WorldRoot, cframe: CFrame, size: Vector3, overlapParams?: OverlapParams): Array<BasePart>;
|
|
24244
24244
|
/**
|
|
24245
24245
|
* **GetPartBoundsInRadius** returns an array of parts whose _bounding boxes_ overlap a sphere whose volume is described using the given center (Vector3) and radius (number).
|
|
24246
24246
|
*
|
|
@@ -24250,7 +24250,12 @@ interface WorldRoot extends Model {
|
|
|
24250
24250
|
*
|
|
24251
24251
|
* This and other spatial query functions do not consider parts' [CanCollide](https://developer.roblox.com/en-us/api-reference/property/BasePart/CanCollide) or [CanTouch](https://developer.roblox.com/en-us/api-reference/property/BasePart/CanTouch) properties. However, it will consider parts' collision group if specified by the given OverlapParams.
|
|
24252
24252
|
*/
|
|
24253
|
-
GetPartBoundsInRadius(
|
|
24253
|
+
GetPartBoundsInRadius(
|
|
24254
|
+
this: WorldRoot,
|
|
24255
|
+
position: Vector3,
|
|
24256
|
+
radius: number,
|
|
24257
|
+
overlapParams?: OverlapParams,
|
|
24258
|
+
): Array<BasePart>;
|
|
24254
24259
|
/**
|
|
24255
24260
|
* **GetPartsInPart** returns an array of parts whose occupied space is shared with the given part, which must exist in the same WorldRoot ([Workspace](https://developer.roblox.com/en-us/api-reference/class/Workspace)) as the parts to be queried.
|
|
24256
24261
|
*
|
|
@@ -24262,7 +24267,7 @@ interface WorldRoot extends Model {
|
|
|
24262
24267
|
*
|
|
24263
24268
|
* This and other spatial query functions do not consider parts' [CanCollide](https://developer.roblox.com/en-us/api-reference/property/BasePart/CanCollide) or [CanTouch](https://developer.roblox.com/en-us/api-reference/property/BasePart/CanTouch) properties. However, it will consider parts' collision group if specified by the given OverlapParams.
|
|
24264
24269
|
*/
|
|
24265
|
-
GetPartsInPart(this: WorldRoot, part: BasePart, overlapParams?: OverlapParams): Array<
|
|
24270
|
+
GetPartsInPart(this: WorldRoot, part: BasePart, overlapParams?: OverlapParams): Array<BasePart>;
|
|
24266
24271
|
/**
|
|
24267
24272
|
* **IsRegion3Empty** returns a bool indicating whether there are no [BasePart](https://developer.roblox.com/en-us/api-reference/class/BasePart)s within the given [Region3](https://developer.roblox.com/en-us/api-reference/datatype/Region3).
|
|
24268
24273
|
*
|
package/include/roblox.d.ts
CHANGED
|
@@ -1183,7 +1183,7 @@ interface Color3 {
|
|
|
1183
1183
|
/** Returns a Color3 interpolated between two Color3 objects. Alpha is a number from 0 to 1. */
|
|
1184
1184
|
Lerp(this: Color3, goal: Color3, alpha: number): Color3;
|
|
1185
1185
|
/** Returns the [hue, saturation, and value](https://en.wikipedia.org/wiki/HSL_and_HSV) of a Color3. This function is the inverse operation of the `Color3.fromHSV` constructor. */
|
|
1186
|
-
ToHSV(): LuaTuple<[number, number, number]>;
|
|
1186
|
+
ToHSV(this: Color3): LuaTuple<[number, number, number]>;
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Converts the color to a six-character hexadecimal string representing the color in the format RRGGBB. It is not
|
|
1189
1189
|
* prefixed with an octothorpe (#), although this can be concatenated easily.
|
|
@@ -1194,7 +1194,7 @@ interface Color3 {
|
|
|
1194
1194
|
* print(BrickColor.new("Really red").Color:ToHex()) --> "FF0000"
|
|
1195
1195
|
* ```
|
|
1196
1196
|
*/
|
|
1197
|
-
ToHex(): string;
|
|
1197
|
+
ToHex(this: Color3): string;
|
|
1198
1198
|
}
|
|
1199
1199
|
|
|
1200
1200
|
interface Color3Constructor {
|
|
@@ -1319,16 +1319,16 @@ interface DateTime {
|
|
|
1319
1319
|
readonly UnixTimestampMillis: number;
|
|
1320
1320
|
|
|
1321
1321
|
/** Converts the value of this DateTime object to Universal Coordinated Time (UTC) */
|
|
1322
|
-
ToUniversalTime(): TimeValueTable;
|
|
1322
|
+
ToUniversalTime(this: DateTime): TimeValueTable;
|
|
1323
1323
|
|
|
1324
1324
|
/** Converts the value of this DateTime object to local time */
|
|
1325
|
-
ToLocalTime(): TimeValueTable;
|
|
1325
|
+
ToLocalTime(this: DateTime): TimeValueTable;
|
|
1326
1326
|
|
|
1327
1327
|
/**
|
|
1328
1328
|
* Formats a date as a [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time string.
|
|
1329
1329
|
* An example ISO 8601 date-time string would be `2020-01-02T10:30:45Z`, which represents January 2nd 2020 at 10:30 AM, 45 seconds.
|
|
1330
1330
|
*/
|
|
1331
|
-
ToIsoDate(): string;
|
|
1331
|
+
ToIsoDate(this: DateTime): string;
|
|
1332
1332
|
|
|
1333
1333
|
/**
|
|
1334
1334
|
* Generates a string from the DateTime value interpreted as Universal Coordinated Time (UTC) and a format string.
|
|
@@ -1337,7 +1337,7 @@ interface DateTime {
|
|
|
1337
1337
|
* @param format
|
|
1338
1338
|
* @param locale
|
|
1339
1339
|
*/
|
|
1340
|
-
FormatUniversalTime(format: string, locale: string): string;
|
|
1340
|
+
FormatUniversalTime(this: DateTime, format: string, locale: string): string;
|
|
1341
1341
|
|
|
1342
1342
|
/**
|
|
1343
1343
|
* Generates a string from the DateTime value interpreted as local time and a format string.
|
|
@@ -1346,7 +1346,7 @@ interface DateTime {
|
|
|
1346
1346
|
* @param format
|
|
1347
1347
|
* @param locale
|
|
1348
1348
|
*/
|
|
1349
|
-
FormatLocalTime(format: string, locale: string): string;
|
|
1349
|
+
FormatLocalTime(this: DateTime, format: string, locale: string): string;
|
|
1350
1350
|
}
|
|
1351
1351
|
|
|
1352
1352
|
interface DateTimeConstructor {
|