@rbxts/types 1.0.784 → 1.0.786
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 +28 -11
- package/include/roblox.d.ts +95 -0
- package/package.json +1 -1
|
@@ -2946,7 +2946,7 @@ interface AudioEmitter extends Instance {
|
|
|
2946
2946
|
/**
|
|
2947
2947
|
* Tags: CustomLuaState
|
|
2948
2948
|
*/
|
|
2949
|
-
SetDistanceAttenuation(this: AudioEmitter, curve:
|
|
2949
|
+
SetDistanceAttenuation(this: AudioEmitter, curve: DistanceAttenuationCurve): void;
|
|
2950
2950
|
}
|
|
2951
2951
|
|
|
2952
2952
|
interface AudioEqualizer extends Instance {
|
|
@@ -11808,19 +11808,39 @@ interface GeometryService extends Instance {
|
|
|
11808
11808
|
* @deprecated
|
|
11809
11809
|
*/
|
|
11810
11810
|
readonly _nominal_GeometryService: unique symbol;
|
|
11811
|
-
CalculateConstraintsToPreserve(
|
|
11811
|
+
CalculateConstraintsToPreserve(
|
|
11812
|
+
this: GeometryService,
|
|
11813
|
+
source: Instance,
|
|
11814
|
+
destination: Array<any>,
|
|
11815
|
+
options?: CalculateConstraintsToPreserveConfig,
|
|
11816
|
+
): Array<unknown>;
|
|
11812
11817
|
/**
|
|
11813
11818
|
* Tags: Yields
|
|
11814
11819
|
*/
|
|
11815
|
-
IntersectAsync(
|
|
11820
|
+
IntersectAsync(
|
|
11821
|
+
this: GeometryService,
|
|
11822
|
+
part: BasePart,
|
|
11823
|
+
parts: Array<any>,
|
|
11824
|
+
options?: GeometryServiceAsyncMethodConfig,
|
|
11825
|
+
): Array<PartOperation>;
|
|
11816
11826
|
/**
|
|
11817
11827
|
* Tags: Yields
|
|
11818
11828
|
*/
|
|
11819
|
-
SubtractAsync(
|
|
11829
|
+
SubtractAsync(
|
|
11830
|
+
this: GeometryService,
|
|
11831
|
+
part: BasePart,
|
|
11832
|
+
parts: Array<any>,
|
|
11833
|
+
options?: GeometryServiceAsyncMethodConfig,
|
|
11834
|
+
): Array<PartOperation>;
|
|
11820
11835
|
/**
|
|
11821
11836
|
* Tags: Yields
|
|
11822
11837
|
*/
|
|
11823
|
-
UnionAsync(
|
|
11838
|
+
UnionAsync(
|
|
11839
|
+
this: GeometryService,
|
|
11840
|
+
part: BasePart,
|
|
11841
|
+
parts: Array<any>,
|
|
11842
|
+
options?: GeometryServiceAsyncMethodConfig,
|
|
11843
|
+
): Array<PartOperation>;
|
|
11824
11844
|
}
|
|
11825
11845
|
|
|
11826
11846
|
interface GetTextBoundsParams extends Instance {
|
|
@@ -14836,9 +14856,6 @@ interface ScreenGui extends LayerCollector {
|
|
|
14836
14856
|
*/
|
|
14837
14857
|
IgnoreGuiInset: boolean;
|
|
14838
14858
|
SafeAreaCompatibility: Enum.SafeAreaCompatibility;
|
|
14839
|
-
/**
|
|
14840
|
-
* Tags: NotBrowsable
|
|
14841
|
-
*/
|
|
14842
14859
|
ScreenInsets: Enum.ScreenInsets;
|
|
14843
14860
|
}
|
|
14844
14861
|
|
|
@@ -25595,7 +25612,7 @@ interface Terrain extends BasePart {
|
|
|
25595
25612
|
/**
|
|
25596
25613
|
* Tags: CustomLuaState
|
|
25597
25614
|
*/
|
|
25598
|
-
WriteVoxelChannels(this: Terrain, region: Region3, resolution: number, channels:
|
|
25615
|
+
WriteVoxelChannels(this: Terrain, region: Region3, resolution: number, channels: VoxelChannels): void;
|
|
25599
25616
|
/**
|
|
25600
25617
|
* Sets a certain region of [smooth terrain](https://developer.roblox.com/articles/Intro-To-Terrain "Smooth terrain") using the [table format](https://developer.roblox.com/articles/Intro-To-Terrain#Reading_and_writing_voxels "Smooth terrain")
|
|
25601
25618
|
*
|
|
@@ -29206,7 +29223,7 @@ interface Players extends Instance {
|
|
|
29206
29223
|
/**
|
|
29207
29224
|
* Tags: Yields
|
|
29208
29225
|
*/
|
|
29209
|
-
BanAsync(this: Players, config:
|
|
29226
|
+
BanAsync(this: Players, config: BanAsyncConfig): void;
|
|
29210
29227
|
/**
|
|
29211
29228
|
* Tags: Yields
|
|
29212
29229
|
*/
|
|
@@ -29431,7 +29448,7 @@ interface Players extends Instance {
|
|
|
29431
29448
|
/**
|
|
29432
29449
|
* Tags: Yields
|
|
29433
29450
|
*/
|
|
29434
|
-
UnbanAsync(this: Players, config:
|
|
29451
|
+
UnbanAsync(this: Players, config: UnbanAsyncConfig): void;
|
|
29435
29452
|
/**
|
|
29436
29453
|
* The PlayerAdded event fires when a player enters the game. This is used to fire an event when a player joins a game, such as loading the player's saved [GlobalDataStore](https://developer.roblox.com/en-us/api-reference/class/GlobalDataStore) data.
|
|
29437
29454
|
*
|
package/include/roblox.d.ts
CHANGED
|
@@ -2966,3 +2966,98 @@ declare const enum RobloxEmoji {
|
|
|
2966
2966
|
Premium = "",
|
|
2967
2967
|
Verified = "",
|
|
2968
2968
|
}
|
|
2969
|
+
|
|
2970
|
+
interface BanAsyncConfig {
|
|
2971
|
+
/**
|
|
2972
|
+
* (Required) UserID of the players to be banned.
|
|
2973
|
+
*
|
|
2974
|
+
* Max size is `50`. */
|
|
2975
|
+
UserIds: Array<number>;
|
|
2976
|
+
/**
|
|
2977
|
+
* (Required) Duration of the ban in seconds. Permanent bans should have a value of `-1`.
|
|
2978
|
+
*
|
|
2979
|
+
* Zero and all other negative values are invalid.
|
|
2980
|
+
*/
|
|
2981
|
+
Duration: number;
|
|
2982
|
+
/**
|
|
2983
|
+
* (Required) The message that will be displayed to users when they attempt to and fail to join an experience. Max size is 400.
|
|
2984
|
+
*/
|
|
2985
|
+
DisplayReason: string;
|
|
2986
|
+
/**
|
|
2987
|
+
* (Required) Any internal messaging that will be returned when querying the user's ban history. Max size is 1000.
|
|
2988
|
+
*/
|
|
2989
|
+
PrivateReason: string;
|
|
2990
|
+
/**
|
|
2991
|
+
* (Optional, default is `true`) Propagates the ban to all places within this universe.
|
|
2992
|
+
*/
|
|
2993
|
+
ApplyToUniverse?: boolean;
|
|
2994
|
+
/**
|
|
2995
|
+
* (Optional, default is `false`) When `true`, Roblox does not attempt to ban alt accounts.
|
|
2996
|
+
*/
|
|
2997
|
+
ExcludeAltAccounts?: boolean;
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
interface UnbanAsyncConfig {
|
|
3001
|
+
/**
|
|
3002
|
+
* (Required) UserIDs to be force allowed into the experience(s).
|
|
3003
|
+
*
|
|
3004
|
+
* Max size is `50`.
|
|
3005
|
+
*/
|
|
3006
|
+
UserIds: Array<number>;
|
|
3007
|
+
/**
|
|
3008
|
+
* (Optional, default is `true`) Propagates the unban to all places within this universe.
|
|
3009
|
+
*/
|
|
3010
|
+
ApplyToUniverse?: boolean;
|
|
3011
|
+
}
|
|
3012
|
+
|
|
3013
|
+
interface DistanceAttenuationCurve {
|
|
3014
|
+
/**
|
|
3015
|
+
* Keys are expected to be unique numbers greater than or equal to 0, while values are expected to be numbers between 0 and 1 (inclusive). Tables containing up to 400 key-value pairs are supported.
|
|
3016
|
+
*/
|
|
3017
|
+
[key: number]: number;
|
|
3018
|
+
}
|
|
3019
|
+
|
|
3020
|
+
interface CalculateConstraintsToPreserveConfig {
|
|
3021
|
+
/**
|
|
3022
|
+
* The distance tolerance, in regards to `Attachment` preservation, between the attachment and the closest point on the original part's surface versus the closest point on the resulting part's surface. If the resulting distance following the solid modeling operation is greater than this value, the `Parent` of attachments and their associated constraints will be `nil` in the returned recommendation table.
|
|
3023
|
+
*/
|
|
3024
|
+
tolerance?: number;
|
|
3025
|
+
/**
|
|
3026
|
+
* A `Enum.WeldConstraintPreserve` enum value describing how `WeldConstraints` are preserved in the resulting recommendation table.
|
|
3027
|
+
*/
|
|
3028
|
+
weldConstraintPreserve?: Enum.WeldConstraintPreserve;
|
|
3029
|
+
}
|
|
3030
|
+
|
|
3031
|
+
interface GeometryServiceAsyncMethodConfig {
|
|
3032
|
+
/**
|
|
3033
|
+
* The value of `CollisionFidelity` in the resulting parts.
|
|
3034
|
+
*/
|
|
3035
|
+
CollisionFidelity?: Enum.CollisionFidelity;
|
|
3036
|
+
/**
|
|
3037
|
+
* The value of `FluidFidelity` in the resulting parts.
|
|
3038
|
+
*/
|
|
3039
|
+
RenderFidelity?: Enum.RenderFidelity;
|
|
3040
|
+
/**
|
|
3041
|
+
* The value of FluidFidelity in the resulting parts.
|
|
3042
|
+
*/
|
|
3043
|
+
FluidFidelity?: Enum.FluidFidelity;
|
|
3044
|
+
/**
|
|
3045
|
+
* Boolean controlling whether the objects should all be kept together or properly split apart. Default is `true` (split).
|
|
3046
|
+
*/
|
|
3047
|
+
SplitApart?: boolean;
|
|
3048
|
+
}
|
|
3049
|
+
|
|
3050
|
+
interface VoxelChannels {
|
|
3051
|
+
/**
|
|
3052
|
+
* The `Enum.Material` material of the voxel. Note that `Water` is not supported anymore; instead, a voxel that contains only water should be entered as `SolidMaterial = Enum.Material.Air, LiquidOccupancy = x`, where `x` is a number between 0 (exclusive) and 1 (inclusive).
|
|
3053
|
+
*/
|
|
3054
|
+
SolidMaterial: Enum.Material;
|
|
3055
|
+
/**
|
|
3056
|
+
* The occupancy of the voxel's material as specified in the `SolidMaterial` channel. This should be a value between 0 (empty) and 1 (full).
|
|
3057
|
+
*/
|
|
3058
|
+
SolidOccupancy: number;
|
|
3059
|
+
/**
|
|
3060
|
+
* Specifies the occupancy of the `Water` material in a voxel as a value between 0 (no water) and 1 (full of water). If the `SolidOccupancy` is 1 and the `SolidMaterial` is not `Air`, this will be 0.
|
|
3061
|
+
*/
|
|
3062
|
+
LiquidOccupancy: number;
|
|
3063
|
+
}
|