@rbxts/types 1.0.785 → 1.0.787
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 -6
- package/include/roblox.d.ts +52 -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: ReadonlyArray<Instance>,
|
|
11815
|
+
options?: CalculateConstraintsToPreserveConfig,
|
|
11816
|
+
): Array<unknown>;
|
|
11812
11817
|
/**
|
|
11813
11818
|
* Tags: Yields
|
|
11814
11819
|
*/
|
|
11815
|
-
IntersectAsync(
|
|
11820
|
+
IntersectAsync(
|
|
11821
|
+
this: GeometryService,
|
|
11822
|
+
part: Part | PartOperation,
|
|
11823
|
+
parts: ReadonlyArray<Part | PartOperation>,
|
|
11824
|
+
options?: GeometryServiceAsyncMethodConfig,
|
|
11825
|
+
): Array<PartOperation>;
|
|
11816
11826
|
/**
|
|
11817
11827
|
* Tags: Yields
|
|
11818
11828
|
*/
|
|
11819
|
-
SubtractAsync(
|
|
11829
|
+
SubtractAsync(
|
|
11830
|
+
this: GeometryService,
|
|
11831
|
+
part: Part | PartOperation,
|
|
11832
|
+
parts: ReadonlyArray<Part | PartOperation>,
|
|
11833
|
+
options?: GeometryServiceAsyncMethodConfig,
|
|
11834
|
+
): Array<PartOperation>;
|
|
11820
11835
|
/**
|
|
11821
11836
|
* Tags: Yields
|
|
11822
11837
|
*/
|
|
11823
|
-
UnionAsync(
|
|
11838
|
+
UnionAsync(
|
|
11839
|
+
this: GeometryService,
|
|
11840
|
+
part: Part | PartOperation,
|
|
11841
|
+
parts: ReadonlyArray<Part | PartOperation>,
|
|
11842
|
+
options?: GeometryServiceAsyncMethodConfig,
|
|
11843
|
+
): Array<PartOperation>;
|
|
11824
11844
|
}
|
|
11825
11845
|
|
|
11826
11846
|
interface GetTextBoundsParams extends Instance {
|
|
@@ -25592,7 +25612,7 @@ interface Terrain extends BasePart {
|
|
|
25592
25612
|
/**
|
|
25593
25613
|
* Tags: CustomLuaState
|
|
25594
25614
|
*/
|
|
25595
|
-
WriteVoxelChannels(this: Terrain, region: Region3, resolution: number, channels:
|
|
25615
|
+
WriteVoxelChannels(this: Terrain, region: Region3, resolution: number, channels: VoxelChannels): void;
|
|
25596
25616
|
/**
|
|
25597
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")
|
|
25598
25618
|
*
|
package/include/roblox.d.ts
CHANGED
|
@@ -3009,3 +3009,55 @@ interface UnbanAsyncConfig {
|
|
|
3009
3009
|
*/
|
|
3010
3010
|
ApplyToUniverse?: boolean;
|
|
3011
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
|
+
}
|