@rbxts/types 1.0.729 → 1.0.730
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 +150 -96
- package/include/generated/enums.d.ts +144 -136
- package/package.json +1 -1
|
@@ -261,9 +261,9 @@ interface CreatableInstances {
|
|
|
261
261
|
DoubleConstrainedValue: DoubleConstrainedValue;
|
|
262
262
|
DragDetector: DragDetector;
|
|
263
263
|
Dragger: Dragger;
|
|
264
|
-
DynamicImage: DynamicImage;
|
|
265
264
|
DynamicMesh: DynamicMesh;
|
|
266
265
|
EchoSoundEffect: EchoSoundEffect;
|
|
266
|
+
EditableImage: EditableImage;
|
|
267
267
|
EqualizerSoundEffect: EqualizerSoundEffect;
|
|
268
268
|
EulerRotationCurve: EulerRotationCurve;
|
|
269
269
|
ExperienceInviteOptions: ExperienceInviteOptions;
|
|
@@ -325,6 +325,7 @@ interface CreatableInstances {
|
|
|
325
325
|
Part: Part;
|
|
326
326
|
ParticleEmitter: ParticleEmitter;
|
|
327
327
|
PartOperation: PartOperation;
|
|
328
|
+
Path2D: Path2D;
|
|
328
329
|
PathfindingLink: PathfindingLink;
|
|
329
330
|
PathfindingModifier: PathfindingModifier;
|
|
330
331
|
PitchShiftSoundEffect: PitchShiftSoundEffect;
|
|
@@ -417,6 +418,7 @@ interface CreatableInstances {
|
|
|
417
418
|
UITextSizeConstraint: UITextSizeConstraint;
|
|
418
419
|
UnionOperation: UnionOperation;
|
|
419
420
|
UniversalConstraint: UniversalConstraint;
|
|
421
|
+
UnreliableRemoteEvent: UnreliableRemoteEvent;
|
|
420
422
|
UserNotification: UserNotification;
|
|
421
423
|
UserNotificationPayload: UserNotificationPayload;
|
|
422
424
|
UserNotificationPayloadAnalyticsData: UserNotificationPayloadAnalyticsData;
|
|
@@ -501,6 +503,7 @@ interface Instances extends Services, CreatableInstances, AbstractInstances {
|
|
|
501
503
|
AssetSoundEffect: AssetSoundEffect;
|
|
502
504
|
AudioPages: AudioPages;
|
|
503
505
|
BaseImportData: BaseImportData;
|
|
506
|
+
BaseRemoteEvent: BaseRemoteEvent;
|
|
504
507
|
BaseWrap: BaseWrap;
|
|
505
508
|
BubbleChatConfiguration: BubbleChatConfiguration;
|
|
506
509
|
CatalogPages: CatalogPages;
|
|
@@ -2300,11 +2303,11 @@ interface AssetService extends Instance {
|
|
|
2300
2303
|
/**
|
|
2301
2304
|
* Tags: Yields
|
|
2302
2305
|
*/
|
|
2303
|
-
|
|
2306
|
+
CreateDynamicMeshAsync(this: AssetService, meshId: string): DynamicMesh;
|
|
2304
2307
|
/**
|
|
2305
2308
|
* Tags: Yields
|
|
2306
2309
|
*/
|
|
2307
|
-
|
|
2310
|
+
CreateEditableImageAsync(this: AssetService, textureId: string): EditableImage;
|
|
2308
2311
|
/**
|
|
2309
2312
|
* Clones a place with placeId equal to given templatePlaceId. It is placed into the inventory of the place's creator with the given name and description. This method will also return the placeId of the new place, which can be used with TeleportService. This method cannot be used to clone places that you do not own.
|
|
2310
2313
|
*
|
|
@@ -2436,6 +2439,10 @@ interface AssetService extends Instance {
|
|
|
2436
2439
|
* Tags: Yields
|
|
2437
2440
|
*/
|
|
2438
2441
|
SearchAudio(this: AssetService, searchParameters: AudioSearchParams): AudioPages;
|
|
2442
|
+
/**
|
|
2443
|
+
* Tags: Yields
|
|
2444
|
+
*/
|
|
2445
|
+
createDynamicMeshFromPartAsync(this: AssetService, meshPart: MeshPart): DynamicMesh;
|
|
2439
2446
|
}
|
|
2440
2447
|
|
|
2441
2448
|
/** **Note**
|
|
@@ -4652,6 +4659,112 @@ interface StarterGui extends BasePlayerGui {
|
|
|
4652
4659
|
GetCore<T extends keyof GettableCores>(this: StarterGui, parameter: T): GettableCores[T];
|
|
4653
4660
|
}
|
|
4654
4661
|
|
|
4662
|
+
interface BaseRemoteEvent extends Instance {
|
|
4663
|
+
/**
|
|
4664
|
+
* **DO NOT USE!**
|
|
4665
|
+
*
|
|
4666
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
4667
|
+
* @hidden
|
|
4668
|
+
* @deprecated
|
|
4669
|
+
*/
|
|
4670
|
+
readonly _nominal_BaseRemoteEvent: unique symbol;
|
|
4671
|
+
}
|
|
4672
|
+
|
|
4673
|
+
/** A **RemoteEvent** is designed to provide a one-way message between the server and clients, allowing [Scripts](https://developer.roblox.com/en-us/api-reference/class/Script) to call code in [LocalScripts](https://developer.roblox.com/en-us/api-reference/class/LocalScript) and vice-versa. This message can be directed from one client to the server, from the server to a particular client, or from the server to all clients.
|
|
4674
|
+
*
|
|
4675
|
+
* In order for both the server and clients to utilize a remote event, the RemoteEvent object itself must be in a place where both sides can see it. As such, we recommend that you store the RemoteEvent inside of [ReplicatedStorage](https://developer.roblox.com/en-us/api-reference/class/ReplicatedStorage), although in some cases it's appropriate to store it in the workspace or inside a [Tool](https://developer.roblox.com/en-us/api-reference/class/Tool).
|
|
4676
|
+
*
|
|
4677
|
+
* If you need the result of the call, you should use a [RemoteFunction](https://developer.roblox.com/en-us/api-reference/class/RemoteFunction) instead. Otherwise a remote event is recommended since it will minimize network traffic/latency and won't yield the script to wait for a response. See [Remote Functions and Events](https://developer.roblox.com/en-us/articles/remote-functions-and-events) for more info.
|
|
4678
|
+
*/
|
|
4679
|
+
interface RemoteEvent<T extends Callback = Callback> extends BaseRemoteEvent {
|
|
4680
|
+
/**
|
|
4681
|
+
* **DO NOT USE!**
|
|
4682
|
+
*
|
|
4683
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
4684
|
+
* @hidden
|
|
4685
|
+
* @deprecated
|
|
4686
|
+
*/
|
|
4687
|
+
readonly _nominal_RemoteEvent: unique symbol;
|
|
4688
|
+
/**
|
|
4689
|
+
* The FireAllClients function fires the [RemoteEvent.OnClientEvent](https://developer.roblox.com/en-us/api-reference/event/RemoteEvent/OnClientEvent) event for each client.
|
|
4690
|
+
*
|
|
4691
|
+
* Unlike [RemoteEvent:FireClient](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireClient), this event does not take a target player as an argument. Instead it will fire to all clients who have the same remote event connected to an OnClientEvent event.
|
|
4692
|
+
*
|
|
4693
|
+
* 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).
|
|
4694
|
+
*
|
|
4695
|
+
* 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.
|
|
4696
|
+
*
|
|
4697
|
+
* 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).
|
|
4698
|
+
*
|
|
4699
|
+
* Note
|
|
4700
|
+
* ----
|
|
4701
|
+
*
|
|
4702
|
+
* * Data can be passed from server to client through remote events in the same way data is passed from client to server. Any extra information can be passed in as arguments to the [RemoteEvent:FireClient](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireClient) and FireAllClients functions. Note that the FireClient function still needs to pass the player to send the message to as the first argument.
|
|
4703
|
+
*/
|
|
4704
|
+
FireAllClients(this: RemoteEvent, ...args: Parameters<T>): void;
|
|
4705
|
+
/**
|
|
4706
|
+
* **FireClient** causes [OnClientEvent](https://developer.roblox.com/en-us/api-reference/event/RemoteEvent/OnClientEvent) to be fired in [LocalScript](https://developer.roblox.com/en-us/api-reference/class/LocalScript)s running for the given [Player](https://developer.roblox.com/en-us/api-reference/class/Player). Additional data passed to this function is then provided to OnClientEvent; beware of [limitations](https://developer.roblox.com/articles/Remote-Functions-and-Events#parameter-limitations) on this data.
|
|
4707
|
+
*
|
|
4708
|
+
* 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).
|
|
4709
|
+
*
|
|
4710
|
+
* 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).
|
|
4711
|
+
*
|
|
4712
|
+
* See also
|
|
4713
|
+
* --------
|
|
4714
|
+
*
|
|
4715
|
+
* * [FireAllClients](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireAllClients), which works similarly but for all [Player](https://developer.roblox.com/en-us/api-reference/class/Player)
|
|
4716
|
+
*
|
|
4717
|
+
* * [Remote Functions and Events](https://developer.roblox.com/articles/Remote-Functions-and-Events), which describes related classes, functions and events and also important limitations on the data that can be sent
|
|
4718
|
+
*
|
|
4719
|
+
* * Sometimes a game will need to send information from one client to another. Roblox does not support direct client to client contact, so any communication must first go through the server. This is typically done using remote events (although functions could be used if desired). First, the sending client would call FireServer. On the server, the function connected to OnServerEvent would hear this firing, and itself would then call FireClient.
|
|
4720
|
+
*/
|
|
4721
|
+
FireClient(this: RemoteEvent, player: Player, ...args: Parameters<T>): void;
|
|
4722
|
+
/**
|
|
4723
|
+
* The FireServer event fires the [RemoteEvent.OnServerEvent](https://developer.roblox.com/en-us/api-reference/event/RemoteEvent/OnServerEvent) event on the server using the arguments specified with an additional player argument at the beginning.
|
|
4724
|
+
*
|
|
4725
|
+
* Since this function is used to communicate from the client to the server, it will only work when used in a [LocalScript](https://developer.roblox.com/en-us/api-reference/class/LocalScript).
|
|
4726
|
+
*
|
|
4727
|
+
* 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).
|
|
4728
|
+
*
|
|
4729
|
+
* 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.
|
|
4730
|
+
*
|
|
4731
|
+
* 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).
|
|
4732
|
+
*/
|
|
4733
|
+
FireServer(this: RemoteEvent, ...args: Parameters<T>): void;
|
|
4734
|
+
/**
|
|
4735
|
+
* The OnClientEvent event fires listening functions in [LocalScript](https://developer.roblox.com/en-us/api-reference/class/LocalScript) when either [RemoteEvent:FireClient](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireClient) or [RemoteEvent:FireAllClients](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireAllClients) is fired by the server from a [Script](https://developer.roblox.com/en-us/api-reference/class/Script).
|
|
4736
|
+
*
|
|
4737
|
+
* This is used to retrieve remote events fired by the server and intended for the client. This event is in place to provide a method for communicating between the server and client, which is well documented in [this](https://developer.roblox.com/articles/Remote-Functions-and-Events) article. This event retrieves remote events fired by the server to the client.
|
|
4738
|
+
*
|
|
4739
|
+
* To fire from the client to the server, you should use [RemoteEvent:FireServer](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireServer) and [RemoteEvent.OnServerEvent](https://developer.roblox.com/en-us/api-reference/event/RemoteEvent/OnServerEvent).
|
|
4740
|
+
*/
|
|
4741
|
+
readonly OnClientEvent: RBXScriptSignal<T>;
|
|
4742
|
+
/**
|
|
4743
|
+
* Fires listening functions in [Script](https://developer.roblox.com/en-us/api-reference/class/Script) when [RemoteEvent:FireServer](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireServer) is called from a [LocalScript](https://developer.roblox.com/en-us/api-reference/class/LocalScript).
|
|
4744
|
+
*
|
|
4745
|
+
* This is used to retrieve remote events fired by the client and intended for the server. This event is in place to provide a method for communicating between the client and server, which is well documented in [this](https://developer.roblox.com/articles/Remote-Functions-and-Events) article. This event retrieves remote events fired by the client to the server.
|
|
4746
|
+
*
|
|
4747
|
+
* To fire from the server to the client, you should use [RemoteEvent:FireClient](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireClient) and [RemoteEvent.OnClientEvent](https://developer.roblox.com/en-us/api-reference/event/RemoteEvent/OnClientEvent).
|
|
4748
|
+
*/
|
|
4749
|
+
readonly OnServerEvent: RBXScriptSignal<(player: Player, ...args: Array<unknown>) => void>;
|
|
4750
|
+
}
|
|
4751
|
+
|
|
4752
|
+
interface UnreliableRemoteEvent extends BaseRemoteEvent {
|
|
4753
|
+
/**
|
|
4754
|
+
* **DO NOT USE!**
|
|
4755
|
+
*
|
|
4756
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
4757
|
+
* @hidden
|
|
4758
|
+
* @deprecated
|
|
4759
|
+
*/
|
|
4760
|
+
readonly _nominal_UnreliableRemoteEvent: unique symbol;
|
|
4761
|
+
FireAllClients(this: UnreliableRemoteEvent, arguments: Array<any>): void;
|
|
4762
|
+
FireClient(this: UnreliableRemoteEvent, player: Player, arguments: Array<any>): void;
|
|
4763
|
+
FireServer(this: UnreliableRemoteEvent, arguments: Array<any>): void;
|
|
4764
|
+
readonly OnClientEvent: RBXScriptSignal<(arguments: Array<any>) => void>;
|
|
4765
|
+
readonly OnServerEvent: RBXScriptSignal<(player: Player, arguments: Array<any>) => void>;
|
|
4766
|
+
}
|
|
4767
|
+
|
|
4655
4768
|
/** The base class for [WrapTarget](https://developer.roblox.com/en-us/api-reference/class/WrapTarget) and [WrapLayer](https://developer.roblox.com/en-us/api-reference/class/WrapLayer) objects. Note that [MeshPart](https://developer.roblox.com/en-us/api-reference/class/MeshPart) is the only valid parent type for [BaseWrap](https://developer.roblox.com/en-us/api-reference/class/BaseWrap) and that it behaves more like a component of [MeshPart](https://developer.roblox.com/en-us/api-reference/class/MeshPart) than an independent object. */
|
|
4656
4769
|
interface BaseWrap extends Instance {
|
|
4657
4770
|
/**
|
|
@@ -9887,7 +10000,7 @@ interface DataStoreService extends Instance {
|
|
|
9887
10000
|
/**
|
|
9888
10001
|
* This function returns the default [GlobalDataStore](https://developer.roblox.com/en-us/api-reference/class/GlobalDataStore). If you want to access a specific **named** data store instead, you should use the [GetDataStore()](https://developer.roblox.com/en-us/api-reference/function/DataStoreService/GetDataStore) function.
|
|
9889
10002
|
*/
|
|
9890
|
-
GetGlobalDataStore(this: DataStoreService):
|
|
10003
|
+
GetGlobalDataStore(this: DataStoreService): DataStore;
|
|
9891
10004
|
/**
|
|
9892
10005
|
* This method returns an [OrderedDataStore](https://developer.roblox.com/en-us/api-reference/class/OrderedDataStore), similar to the way [GetDataStore()](https://developer.roblox.com/en-us/api-reference/function/DataStoreService/GetDataStore) does with [GlobalDataStores](https://developer.roblox.com/en-us/api-reference/class/GlobalDataStore). Subsequent calls to this method with the same name/scope will return the same object.
|
|
9893
10006
|
*/
|
|
@@ -10354,7 +10467,7 @@ interface DraggerService extends Instance {
|
|
|
10354
10467
|
ShowPivotIndicator: boolean;
|
|
10355
10468
|
}
|
|
10356
10469
|
|
|
10357
|
-
interface
|
|
10470
|
+
interface EditableImage extends Instance {
|
|
10358
10471
|
/**
|
|
10359
10472
|
* **DO NOT USE!**
|
|
10360
10473
|
*
|
|
@@ -10362,24 +10475,24 @@ interface DynamicImage extends Instance {
|
|
|
10362
10475
|
* @hidden
|
|
10363
10476
|
* @deprecated
|
|
10364
10477
|
*/
|
|
10365
|
-
readonly
|
|
10478
|
+
readonly _nominal_EditableImage: unique symbol;
|
|
10366
10479
|
Size: Vector2;
|
|
10367
|
-
Copy(this:
|
|
10368
|
-
Crop(this:
|
|
10369
|
-
DrawCircle(this:
|
|
10370
|
-
DrawImage(this:
|
|
10371
|
-
DrawLine(this:
|
|
10372
|
-
DrawRectangle(this:
|
|
10480
|
+
Copy(this: EditableImage, min: Vector2, max: Vector2): EditableImage;
|
|
10481
|
+
Crop(this: EditableImage, min: Vector2, max: Vector2): void;
|
|
10482
|
+
DrawCircle(this: EditableImage, center: Vector2, radius: number, color: Color3, transparency: number): void;
|
|
10483
|
+
DrawImage(this: EditableImage, position: Vector2, image: EditableImage, combineType: CastsToEnum<Enum.ImageCombineType>): void;
|
|
10484
|
+
DrawLine(this: EditableImage, p1: Vector2, p2: Vector2, color: Color3, transparency: number): void;
|
|
10485
|
+
DrawRectangle(this: EditableImage, position: Vector2, size: Vector2, color: Color3, transparency: number): void;
|
|
10373
10486
|
/**
|
|
10374
10487
|
* Tags: CustomLuaState
|
|
10375
10488
|
*/
|
|
10376
|
-
ReadPixels(this:
|
|
10377
|
-
Resize(this:
|
|
10378
|
-
Rotate(this:
|
|
10489
|
+
ReadPixels(this: EditableImage, position: Vector2, size: Vector2): unknown;
|
|
10490
|
+
Resize(this: EditableImage, size: Vector2): void;
|
|
10491
|
+
Rotate(this: EditableImage, degrees: number, changeSize: boolean): void;
|
|
10379
10492
|
/**
|
|
10380
10493
|
* Tags: CustomLuaState
|
|
10381
10494
|
*/
|
|
10382
|
-
WritePixels(this:
|
|
10495
|
+
WritePixels(this: EditableImage, position: Vector2, size: Vector2, pixels: Array<any>): void;
|
|
10383
10496
|
}
|
|
10384
10497
|
|
|
10385
10498
|
interface EngineAPICloudProcessingService extends Instance {
|
|
@@ -11454,7 +11567,11 @@ interface DataStore extends GlobalDataStore {
|
|
|
11454
11567
|
* @deprecated
|
|
11455
11568
|
*/
|
|
11456
11569
|
readonly _nominal_DataStore: unique symbol;
|
|
11457
|
-
GetAsync<T>(
|
|
11570
|
+
GetAsync<T>(
|
|
11571
|
+
this: DataStore,
|
|
11572
|
+
key: string,
|
|
11573
|
+
options?: DataStoreGetOptions,
|
|
11574
|
+
): LuaTuple<[T | undefined, DataStoreKeyInfo]>;
|
|
11458
11575
|
IncrementAsync(
|
|
11459
11576
|
this: DataStore,
|
|
11460
11577
|
key: string,
|
|
@@ -15034,6 +15151,17 @@ interface SelectionPointLasso extends SelectionLasso {
|
|
|
15034
15151
|
Point: Vector3;
|
|
15035
15152
|
}
|
|
15036
15153
|
|
|
15154
|
+
interface Path2D extends GuiBase {
|
|
15155
|
+
/**
|
|
15156
|
+
* **DO NOT USE!**
|
|
15157
|
+
*
|
|
15158
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
15159
|
+
* @hidden
|
|
15160
|
+
* @deprecated
|
|
15161
|
+
*/
|
|
15162
|
+
readonly _nominal_Path2D: unique symbol;
|
|
15163
|
+
}
|
|
15164
|
+
|
|
15037
15165
|
/** The GuiService is a service which currently allows developers to control what [GuiObject](https://developer.roblox.com/en-us/api-reference/class/GuiObject) is currently being selected by the gamepad navigator. It also allows clients to check if Roblox's main menu is currently open.
|
|
15038
15166
|
*
|
|
15039
15167
|
* This service has a lot of hidden members, which are mainly used internally by Roblox's [CoreScripts](https://developer.roblox.com/en-us/api-reference/class/CoreScript).
|
|
@@ -26430,6 +26558,7 @@ interface PackageLink extends Instance {
|
|
|
26430
26558
|
* @deprecated
|
|
26431
26559
|
*/
|
|
26432
26560
|
readonly _nominal_PackageLink: unique symbol;
|
|
26561
|
+
readonly DefaultName: string;
|
|
26433
26562
|
/**
|
|
26434
26563
|
* The id of the asset this package corresponds to.
|
|
26435
26564
|
*
|
|
@@ -29433,85 +29562,6 @@ interface RemoteDebuggerServer extends Instance {
|
|
|
29433
29562
|
readonly _nominal_RemoteDebuggerServer: unique symbol;
|
|
29434
29563
|
}
|
|
29435
29564
|
|
|
29436
|
-
/** A **RemoteEvent** is designed to provide a one-way message between the server and clients, allowing [Scripts](https://developer.roblox.com/en-us/api-reference/class/Script) to call code in [LocalScripts](https://developer.roblox.com/en-us/api-reference/class/LocalScript) and vice-versa. This message can be directed from one client to the server, from the server to a particular client, or from the server to all clients.
|
|
29437
|
-
*
|
|
29438
|
-
* In order for both the server and clients to utilize a remote event, the RemoteEvent object itself must be in a place where both sides can see it. As such, we recommend that you store the RemoteEvent inside of [ReplicatedStorage](https://developer.roblox.com/en-us/api-reference/class/ReplicatedStorage), although in some cases it's appropriate to store it in the workspace or inside a [Tool](https://developer.roblox.com/en-us/api-reference/class/Tool).
|
|
29439
|
-
*
|
|
29440
|
-
* If you need the result of the call, you should use a [RemoteFunction](https://developer.roblox.com/en-us/api-reference/class/RemoteFunction) instead. Otherwise a remote event is recommended since it will minimize network traffic/latency and won't yield the script to wait for a response. See [Remote Functions and Events](https://developer.roblox.com/en-us/articles/remote-functions-and-events) for more info.
|
|
29441
|
-
*/
|
|
29442
|
-
interface RemoteEvent<T extends Callback = Callback> extends Instance {
|
|
29443
|
-
/**
|
|
29444
|
-
* **DO NOT USE!**
|
|
29445
|
-
*
|
|
29446
|
-
* This field exists to force TypeScript to recognize this as a nominal type
|
|
29447
|
-
* @hidden
|
|
29448
|
-
* @deprecated
|
|
29449
|
-
*/
|
|
29450
|
-
readonly _nominal_RemoteEvent: unique symbol;
|
|
29451
|
-
/**
|
|
29452
|
-
* The FireAllClients function fires the [RemoteEvent.OnClientEvent](https://developer.roblox.com/en-us/api-reference/event/RemoteEvent/OnClientEvent) event for each client.
|
|
29453
|
-
*
|
|
29454
|
-
* Unlike [RemoteEvent:FireClient](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireClient), this event does not take a target player as an argument. Instead it will fire to all clients who have the same remote event connected to an OnClientEvent event.
|
|
29455
|
-
*
|
|
29456
|
-
* 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).
|
|
29457
|
-
*
|
|
29458
|
-
* 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.
|
|
29459
|
-
*
|
|
29460
|
-
* 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).
|
|
29461
|
-
*
|
|
29462
|
-
* Note
|
|
29463
|
-
* ----
|
|
29464
|
-
*
|
|
29465
|
-
* * Data can be passed from server to client through remote events in the same way data is passed from client to server. Any extra information can be passed in as arguments to the [RemoteEvent:FireClient](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireClient) and FireAllClients functions. Note that the FireClient function still needs to pass the player to send the message to as the first argument.
|
|
29466
|
-
*/
|
|
29467
|
-
FireAllClients(this: RemoteEvent, ...args: Parameters<T>): void;
|
|
29468
|
-
/**
|
|
29469
|
-
* **FireClient** causes [OnClientEvent](https://developer.roblox.com/en-us/api-reference/event/RemoteEvent/OnClientEvent) to be fired in [LocalScript](https://developer.roblox.com/en-us/api-reference/class/LocalScript)s running for the given [Player](https://developer.roblox.com/en-us/api-reference/class/Player). Additional data passed to this function is then provided to OnClientEvent; beware of [limitations](https://developer.roblox.com/articles/Remote-Functions-and-Events#parameter-limitations) on this data.
|
|
29470
|
-
*
|
|
29471
|
-
* 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).
|
|
29472
|
-
*
|
|
29473
|
-
* 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).
|
|
29474
|
-
*
|
|
29475
|
-
* See also
|
|
29476
|
-
* --------
|
|
29477
|
-
*
|
|
29478
|
-
* * [FireAllClients](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireAllClients), which works similarly but for all [Player](https://developer.roblox.com/en-us/api-reference/class/Player)
|
|
29479
|
-
*
|
|
29480
|
-
* * [Remote Functions and Events](https://developer.roblox.com/articles/Remote-Functions-and-Events), which describes related classes, functions and events and also important limitations on the data that can be sent
|
|
29481
|
-
*
|
|
29482
|
-
* * Sometimes a game will need to send information from one client to another. Roblox does not support direct client to client contact, so any communication must first go through the server. This is typically done using remote events (although functions could be used if desired). First, the sending client would call FireServer. On the server, the function connected to OnServerEvent would hear this firing, and itself would then call FireClient.
|
|
29483
|
-
*/
|
|
29484
|
-
FireClient(this: RemoteEvent, player: Player, ...args: Parameters<T>): void;
|
|
29485
|
-
/**
|
|
29486
|
-
* The FireServer event fires the [RemoteEvent.OnServerEvent](https://developer.roblox.com/en-us/api-reference/event/RemoteEvent/OnServerEvent) event on the server using the arguments specified with an additional player argument at the beginning.
|
|
29487
|
-
*
|
|
29488
|
-
* Since this function is used to communicate from the client to the server, it will only work when used in a [LocalScript](https://developer.roblox.com/en-us/api-reference/class/LocalScript).
|
|
29489
|
-
*
|
|
29490
|
-
* 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).
|
|
29491
|
-
*
|
|
29492
|
-
* 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.
|
|
29493
|
-
*
|
|
29494
|
-
* 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).
|
|
29495
|
-
*/
|
|
29496
|
-
FireServer(this: RemoteEvent, ...args: Parameters<T>): void;
|
|
29497
|
-
/**
|
|
29498
|
-
* The OnClientEvent event fires listening functions in [LocalScript](https://developer.roblox.com/en-us/api-reference/class/LocalScript) when either [RemoteEvent:FireClient](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireClient) or [RemoteEvent:FireAllClients](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireAllClients) is fired by the server from a [Script](https://developer.roblox.com/en-us/api-reference/class/Script).
|
|
29499
|
-
*
|
|
29500
|
-
* This is used to retrieve remote events fired by the server and intended for the client. This event is in place to provide a method for communicating between the server and client, which is well documented in [this](https://developer.roblox.com/articles/Remote-Functions-and-Events) article. This event retrieves remote events fired by the server to the client.
|
|
29501
|
-
*
|
|
29502
|
-
* To fire from the client to the server, you should use [RemoteEvent:FireServer](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireServer) and [RemoteEvent.OnServerEvent](https://developer.roblox.com/en-us/api-reference/event/RemoteEvent/OnServerEvent).
|
|
29503
|
-
*/
|
|
29504
|
-
readonly OnClientEvent: RBXScriptSignal<T>;
|
|
29505
|
-
/**
|
|
29506
|
-
* Fires listening functions in [Script](https://developer.roblox.com/en-us/api-reference/class/Script) when [RemoteEvent:FireServer](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireServer) is called from a [LocalScript](https://developer.roblox.com/en-us/api-reference/class/LocalScript).
|
|
29507
|
-
*
|
|
29508
|
-
* This is used to retrieve remote events fired by the client and intended for the server. This event is in place to provide a method for communicating between the client and server, which is well documented in [this](https://developer.roblox.com/articles/Remote-Functions-and-Events) article. This event retrieves remote events fired by the client to the server.
|
|
29509
|
-
*
|
|
29510
|
-
* To fire from the server to the client, you should use [RemoteEvent:FireClient](https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireClient) and [RemoteEvent.OnClientEvent](https://developer.roblox.com/en-us/api-reference/event/RemoteEvent/OnClientEvent).
|
|
29511
|
-
*/
|
|
29512
|
-
readonly OnServerEvent: RBXScriptSignal<(player: Player, ...args: Array<unknown>) => void>;
|
|
29513
|
-
}
|
|
29514
|
-
|
|
29515
29565
|
/** A server should rarely invoke a client via [InvokeClient()](https://developer.roblox.com/en-us/api-reference/function/RemoteFunction/InvokeClient) as it can be potentially game breaking. For client-only actions that don't require a callback, like updating a GUI, a [server-to-client remote event](#server-to-client-remote-event) should be used instead. If [InvokeClient()](https://developer.roblox.com/en-us/api-reference/function/RemoteFunction/InvokeClient) is used, risks include:
|
|
29516
29566
|
*
|
|
29517
29567
|
* * If the client throws an error, the server will throw the error too.
|
|
@@ -29684,6 +29734,7 @@ interface RomarkService extends Instance {
|
|
|
29684
29734
|
* @deprecated
|
|
29685
29735
|
*/
|
|
29686
29736
|
readonly _nominal_RomarkService: unique symbol;
|
|
29737
|
+
EndRemoteRomarkTest(this: RomarkService): void;
|
|
29687
29738
|
}
|
|
29688
29739
|
|
|
29689
29740
|
/** A sorted list of [RotationCurveKey](https://developer.roblox.com/en-us/api-reference/class/RotationCurveKeys). RotationCurveKeys are value-time points on a curve that dictate the animation curves. It provides a sampling method returning its result as the rotation component of a CFrame. */
|
|
@@ -31084,6 +31135,7 @@ interface Sound extends Instance {
|
|
|
31084
31135
|
* Sounds parented to a [BasePart](https://developer.roblox.com/en-us/api-reference/class/BasePart) or [Attachment](https://developer.roblox.com/en-us/api-reference/class/Attachment) that are descendants of the [Workspace](https://developer.roblox.com/en-us/api-reference/class/Workspace) are considered 3D sounds and their volume whilst playing is dependent on the distance between the client's sound listener ([Camera](https://developer.roblox.com/en-us/api-reference/class/Camera) position by default) and the Sound's parent. Two properties influence this behavior EmitterSize and [Sound.RollOffMode](https://developer.roblox.com/en-us/api-reference/property/Sound/RollOffMode).
|
|
31085
31136
|
*
|
|
31086
31137
|
* The way the [Sound](https://developer.roblox.com/en-us/api-reference/class/Sound) attenuates (fades out) after the distance between the listener and the sound exceeds the EmitterSize is determined by RollOffMode.
|
|
31138
|
+
* @deprecated Use `RollOffMinDistance` instead
|
|
31087
31139
|
*/
|
|
31088
31140
|
EmitterSize: number;
|
|
31089
31141
|
/**
|
|
@@ -31129,12 +31181,14 @@ interface Sound extends Instance {
|
|
|
31129
31181
|
* How MaxDistance impacts the attenuation of a sound (manner in which it fades out) is dependent on the [Sound.RollOffMode](https://developer.roblox.com/en-us/api-reference/property/Sound/RollOffMode) property. When RollOffMode is set to use an inverse type distance model (Inverse or InverseTapered) the MaxDistance will not effect the attenuation of the sound. This means that low values for MaxDistance will cause the sound to abruptly cut off when the listener reaches the MaxDistance. In most cases this is not desirable and developers are advised not to use low MaxDistance values.
|
|
31130
31182
|
*
|
|
31131
31183
|
* When RollOffMode is set to a linear type distance model (Linear or LinearSquared) the sound will attenuate between [Sound.EmitterSize](https://developer.roblox.com/en-us/api-reference/property/Sound/EmitterSize) and MaxDistance (with playback volume reaching zero at MaxDistance). This is less realistic, but in some cases allows attenuation to be handled in a more intuitive way.
|
|
31184
|
+
* @deprecated Use `RollOffMaxDistance` instead
|
|
31132
31185
|
*/
|
|
31133
31186
|
MaxDistance: number;
|
|
31134
31187
|
/**
|
|
31135
31188
|
* The minimum distance at which a 3D [Sound](https://developer.roblox.com/en-us/api-reference/class/Sound) (direct child of a [BasePart](https://developer.roblox.com/en-us/api-reference/class/BasePart) or [Attachment](https://developer.roblox.com/en-us/api-reference/class/Attachment)) will begin to attenuate. Effectively, the emitter size.
|
|
31136
31189
|
*
|
|
31137
31190
|
* Deprecated in favor of Sound.EmitterSize.
|
|
31191
|
+
* @deprecated Use `RollOffMinDistance` instead
|
|
31138
31192
|
*/
|
|
31139
31193
|
MinDistance: number;
|
|
31140
31194
|
/**
|
|
@@ -4888,9 +4888,17 @@ declare namespace Enum {
|
|
|
4888
4888
|
|
|
4889
4889
|
export const SelfView: SelfView;
|
|
4890
4890
|
|
|
4891
|
+
export interface Captures extends globalThis.EnumItem {
|
|
4892
|
+
Name: "Captures";
|
|
4893
|
+
Value: 7;
|
|
4894
|
+
EnumType: typeof globalThis.Enum.CoreGuiType;
|
|
4895
|
+
}
|
|
4896
|
+
|
|
4897
|
+
export const Captures: Captures;
|
|
4898
|
+
|
|
4891
4899
|
export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.CoreGuiType>;
|
|
4892
4900
|
}
|
|
4893
|
-
export type CoreGuiType = CoreGuiType.PlayerList | CoreGuiType.Health | CoreGuiType.Backpack | CoreGuiType.Chat | CoreGuiType.All | CoreGuiType.EmotesMenu | CoreGuiType.SelfView;
|
|
4901
|
+
export type CoreGuiType = CoreGuiType.PlayerList | CoreGuiType.Health | CoreGuiType.Backpack | CoreGuiType.Chat | CoreGuiType.All | CoreGuiType.EmotesMenu | CoreGuiType.SelfView | CoreGuiType.Captures;
|
|
4894
4902
|
|
|
4895
4903
|
export namespace CreateOutfitFailure {
|
|
4896
4904
|
export interface InvalidName extends globalThis.EnumItem {
|
|
@@ -11402,79 +11410,61 @@ declare namespace Enum {
|
|
|
11402
11410
|
|
|
11403
11411
|
export const Plastic: Plastic;
|
|
11404
11412
|
|
|
11405
|
-
export interface
|
|
11406
|
-
Name: "
|
|
11407
|
-
Value:
|
|
11408
|
-
EnumType: typeof globalThis.Enum.Material;
|
|
11409
|
-
}
|
|
11410
|
-
|
|
11411
|
-
export const Wood: Wood;
|
|
11412
|
-
|
|
11413
|
-
export interface Slate extends globalThis.EnumItem {
|
|
11414
|
-
Name: "Slate";
|
|
11415
|
-
Value: 800;
|
|
11416
|
-
EnumType: typeof globalThis.Enum.Material;
|
|
11417
|
-
}
|
|
11418
|
-
|
|
11419
|
-
export const Slate: Slate;
|
|
11420
|
-
|
|
11421
|
-
export interface Concrete extends globalThis.EnumItem {
|
|
11422
|
-
Name: "Concrete";
|
|
11423
|
-
Value: 816;
|
|
11413
|
+
export interface SmoothPlastic extends globalThis.EnumItem {
|
|
11414
|
+
Name: "SmoothPlastic";
|
|
11415
|
+
Value: 272;
|
|
11424
11416
|
EnumType: typeof globalThis.Enum.Material;
|
|
11425
11417
|
}
|
|
11426
11418
|
|
|
11427
|
-
export const
|
|
11419
|
+
export const SmoothPlastic: SmoothPlastic;
|
|
11428
11420
|
|
|
11429
|
-
export interface
|
|
11430
|
-
Name: "
|
|
11431
|
-
Value:
|
|
11421
|
+
export interface Neon extends globalThis.EnumItem {
|
|
11422
|
+
Name: "Neon";
|
|
11423
|
+
Value: 288;
|
|
11432
11424
|
EnumType: typeof globalThis.Enum.Material;
|
|
11433
11425
|
}
|
|
11434
11426
|
|
|
11435
|
-
export const
|
|
11427
|
+
export const Neon: Neon;
|
|
11436
11428
|
|
|
11437
|
-
export interface
|
|
11438
|
-
Name: "
|
|
11439
|
-
Value:
|
|
11429
|
+
export interface Wood extends globalThis.EnumItem {
|
|
11430
|
+
Name: "Wood";
|
|
11431
|
+
Value: 512;
|
|
11440
11432
|
EnumType: typeof globalThis.Enum.Material;
|
|
11441
11433
|
}
|
|
11442
11434
|
|
|
11443
|
-
export const
|
|
11435
|
+
export const Wood: Wood;
|
|
11444
11436
|
|
|
11445
|
-
export interface
|
|
11446
|
-
Name: "
|
|
11447
|
-
Value:
|
|
11437
|
+
export interface WoodPlanks extends globalThis.EnumItem {
|
|
11438
|
+
Name: "WoodPlanks";
|
|
11439
|
+
Value: 528;
|
|
11448
11440
|
EnumType: typeof globalThis.Enum.Material;
|
|
11449
11441
|
}
|
|
11450
11442
|
|
|
11451
|
-
export const
|
|
11452
|
-
/** @deprecated renamed to Foil */
|
|
11453
|
-
export const Aluminum: Foil;
|
|
11443
|
+
export const WoodPlanks: WoodPlanks;
|
|
11454
11444
|
|
|
11455
|
-
export interface
|
|
11456
|
-
Name: "
|
|
11457
|
-
Value:
|
|
11445
|
+
export interface Marble extends globalThis.EnumItem {
|
|
11446
|
+
Name: "Marble";
|
|
11447
|
+
Value: 784;
|
|
11458
11448
|
EnumType: typeof globalThis.Enum.Material;
|
|
11459
11449
|
}
|
|
11460
11450
|
|
|
11461
|
-
export const
|
|
11451
|
+
export const Marble: Marble;
|
|
11462
11452
|
|
|
11463
|
-
export interface
|
|
11464
|
-
Name: "
|
|
11465
|
-
Value:
|
|
11453
|
+
export interface Slate extends globalThis.EnumItem {
|
|
11454
|
+
Name: "Slate";
|
|
11455
|
+
Value: 800;
|
|
11466
11456
|
EnumType: typeof globalThis.Enum.Material;
|
|
11467
11457
|
}
|
|
11468
11458
|
|
|
11469
|
-
export const
|
|
11459
|
+
export const Slate: Slate;
|
|
11470
11460
|
|
|
11471
|
-
export interface
|
|
11472
|
-
Name: "
|
|
11473
|
-
Value:
|
|
11461
|
+
export interface Concrete extends globalThis.EnumItem {
|
|
11462
|
+
Name: "Concrete";
|
|
11463
|
+
Value: 816;
|
|
11474
11464
|
EnumType: typeof globalThis.Enum.Material;
|
|
11475
11465
|
}
|
|
11476
11466
|
|
|
11477
|
-
export const
|
|
11467
|
+
export const Concrete: Concrete;
|
|
11478
11468
|
|
|
11479
11469
|
export interface Granite extends globalThis.EnumItem {
|
|
11480
11470
|
Name: "Granite";
|
|
@@ -11500,149 +11490,151 @@ declare namespace Enum {
|
|
|
11500
11490
|
|
|
11501
11491
|
export const Pebble: Pebble;
|
|
11502
11492
|
|
|
11503
|
-
export interface
|
|
11504
|
-
Name: "
|
|
11505
|
-
Value:
|
|
11493
|
+
export interface Cobblestone extends globalThis.EnumItem {
|
|
11494
|
+
Name: "Cobblestone";
|
|
11495
|
+
Value: 880;
|
|
11506
11496
|
EnumType: typeof globalThis.Enum.Material;
|
|
11507
11497
|
}
|
|
11508
11498
|
|
|
11509
|
-
export const
|
|
11499
|
+
export const Cobblestone: Cobblestone;
|
|
11510
11500
|
|
|
11511
|
-
export interface
|
|
11512
|
-
Name: "
|
|
11513
|
-
Value:
|
|
11501
|
+
export interface Rock extends globalThis.EnumItem {
|
|
11502
|
+
Name: "Rock";
|
|
11503
|
+
Value: 896;
|
|
11514
11504
|
EnumType: typeof globalThis.Enum.Material;
|
|
11515
11505
|
}
|
|
11516
11506
|
|
|
11517
|
-
export const
|
|
11507
|
+
export const Rock: Rock;
|
|
11518
11508
|
|
|
11519
|
-
export interface
|
|
11520
|
-
Name: "
|
|
11521
|
-
Value:
|
|
11509
|
+
export interface Sandstone extends globalThis.EnumItem {
|
|
11510
|
+
Name: "Sandstone";
|
|
11511
|
+
Value: 912;
|
|
11522
11512
|
EnumType: typeof globalThis.Enum.Material;
|
|
11523
11513
|
}
|
|
11524
11514
|
|
|
11525
|
-
export const
|
|
11515
|
+
export const Sandstone: Sandstone;
|
|
11526
11516
|
|
|
11527
|
-
export interface
|
|
11528
|
-
Name: "
|
|
11529
|
-
Value:
|
|
11517
|
+
export interface Basalt extends globalThis.EnumItem {
|
|
11518
|
+
Name: "Basalt";
|
|
11519
|
+
Value: 788;
|
|
11530
11520
|
EnumType: typeof globalThis.Enum.Material;
|
|
11531
11521
|
}
|
|
11532
11522
|
|
|
11533
|
-
export const
|
|
11523
|
+
export const Basalt: Basalt;
|
|
11534
11524
|
|
|
11535
|
-
export interface
|
|
11536
|
-
Name: "
|
|
11537
|
-
Value:
|
|
11525
|
+
export interface CrackedLava extends globalThis.EnumItem {
|
|
11526
|
+
Name: "CrackedLava";
|
|
11527
|
+
Value: 804;
|
|
11538
11528
|
EnumType: typeof globalThis.Enum.Material;
|
|
11539
11529
|
}
|
|
11540
11530
|
|
|
11541
|
-
export const
|
|
11531
|
+
export const CrackedLava: CrackedLava;
|
|
11542
11532
|
|
|
11543
|
-
export interface
|
|
11544
|
-
Name: "
|
|
11545
|
-
Value:
|
|
11533
|
+
export interface Limestone extends globalThis.EnumItem {
|
|
11534
|
+
Name: "Limestone";
|
|
11535
|
+
Value: 820;
|
|
11546
11536
|
EnumType: typeof globalThis.Enum.Material;
|
|
11547
11537
|
}
|
|
11548
11538
|
|
|
11549
|
-
export const
|
|
11539
|
+
export const Limestone: Limestone;
|
|
11550
11540
|
|
|
11551
|
-
export interface
|
|
11552
|
-
Name: "
|
|
11553
|
-
Value:
|
|
11541
|
+
export interface Pavement extends globalThis.EnumItem {
|
|
11542
|
+
Name: "Pavement";
|
|
11543
|
+
Value: 836;
|
|
11554
11544
|
EnumType: typeof globalThis.Enum.Material;
|
|
11555
11545
|
}
|
|
11556
11546
|
|
|
11557
|
-
export const
|
|
11547
|
+
export const Pavement: Pavement;
|
|
11558
11548
|
|
|
11559
|
-
export interface
|
|
11560
|
-
Name: "
|
|
11561
|
-
Value:
|
|
11549
|
+
export interface CorrodedMetal extends globalThis.EnumItem {
|
|
11550
|
+
Name: "CorrodedMetal";
|
|
11551
|
+
Value: 1040;
|
|
11562
11552
|
EnumType: typeof globalThis.Enum.Material;
|
|
11563
11553
|
}
|
|
11564
11554
|
|
|
11565
|
-
export const
|
|
11555
|
+
export const CorrodedMetal: CorrodedMetal;
|
|
11566
11556
|
|
|
11567
|
-
export interface
|
|
11568
|
-
Name: "
|
|
11569
|
-
Value:
|
|
11557
|
+
export interface DiamondPlate extends globalThis.EnumItem {
|
|
11558
|
+
Name: "DiamondPlate";
|
|
11559
|
+
Value: 1056;
|
|
11570
11560
|
EnumType: typeof globalThis.Enum.Material;
|
|
11571
11561
|
}
|
|
11572
11562
|
|
|
11573
|
-
export const
|
|
11563
|
+
export const DiamondPlate: DiamondPlate;
|
|
11574
11564
|
|
|
11575
|
-
export interface
|
|
11576
|
-
Name: "
|
|
11577
|
-
Value:
|
|
11565
|
+
export interface Foil extends globalThis.EnumItem {
|
|
11566
|
+
Name: "Foil";
|
|
11567
|
+
Value: 1072;
|
|
11578
11568
|
EnumType: typeof globalThis.Enum.Material;
|
|
11579
11569
|
}
|
|
11580
11570
|
|
|
11581
|
-
export const
|
|
11571
|
+
export const Foil: Foil;
|
|
11572
|
+
/** @deprecated renamed to Foil */
|
|
11573
|
+
export const Aluminum: Foil;
|
|
11582
11574
|
|
|
11583
|
-
export interface
|
|
11584
|
-
Name: "
|
|
11585
|
-
Value:
|
|
11575
|
+
export interface Metal extends globalThis.EnumItem {
|
|
11576
|
+
Name: "Metal";
|
|
11577
|
+
Value: 1088;
|
|
11586
11578
|
EnumType: typeof globalThis.Enum.Material;
|
|
11587
11579
|
}
|
|
11588
11580
|
|
|
11589
|
-
export const
|
|
11581
|
+
export const Metal: Metal;
|
|
11590
11582
|
|
|
11591
|
-
export interface
|
|
11592
|
-
Name: "
|
|
11593
|
-
Value:
|
|
11583
|
+
export interface Grass extends globalThis.EnumItem {
|
|
11584
|
+
Name: "Grass";
|
|
11585
|
+
Value: 1280;
|
|
11594
11586
|
EnumType: typeof globalThis.Enum.Material;
|
|
11595
11587
|
}
|
|
11596
11588
|
|
|
11597
|
-
export const
|
|
11589
|
+
export const Grass: Grass;
|
|
11598
11590
|
|
|
11599
|
-
export interface
|
|
11600
|
-
Name: "
|
|
11601
|
-
Value:
|
|
11591
|
+
export interface LeafyGrass extends globalThis.EnumItem {
|
|
11592
|
+
Name: "LeafyGrass";
|
|
11593
|
+
Value: 1284;
|
|
11602
11594
|
EnumType: typeof globalThis.Enum.Material;
|
|
11603
11595
|
}
|
|
11604
11596
|
|
|
11605
|
-
export const
|
|
11597
|
+
export const LeafyGrass: LeafyGrass;
|
|
11606
11598
|
|
|
11607
|
-
export interface
|
|
11608
|
-
Name: "
|
|
11609
|
-
Value:
|
|
11599
|
+
export interface Sand extends globalThis.EnumItem {
|
|
11600
|
+
Name: "Sand";
|
|
11601
|
+
Value: 1296;
|
|
11610
11602
|
EnumType: typeof globalThis.Enum.Material;
|
|
11611
11603
|
}
|
|
11612
11604
|
|
|
11613
|
-
export const
|
|
11605
|
+
export const Sand: Sand;
|
|
11614
11606
|
|
|
11615
|
-
export interface
|
|
11616
|
-
Name: "
|
|
11617
|
-
Value:
|
|
11607
|
+
export interface Fabric extends globalThis.EnumItem {
|
|
11608
|
+
Name: "Fabric";
|
|
11609
|
+
Value: 1312;
|
|
11618
11610
|
EnumType: typeof globalThis.Enum.Material;
|
|
11619
11611
|
}
|
|
11620
11612
|
|
|
11621
|
-
export const
|
|
11613
|
+
export const Fabric: Fabric;
|
|
11622
11614
|
|
|
11623
|
-
export interface
|
|
11624
|
-
Name: "
|
|
11625
|
-
Value:
|
|
11615
|
+
export interface Snow extends globalThis.EnumItem {
|
|
11616
|
+
Name: "Snow";
|
|
11617
|
+
Value: 1328;
|
|
11626
11618
|
EnumType: typeof globalThis.Enum.Material;
|
|
11627
11619
|
}
|
|
11628
11620
|
|
|
11629
|
-
export const
|
|
11621
|
+
export const Snow: Snow;
|
|
11630
11622
|
|
|
11631
|
-
export interface
|
|
11632
|
-
Name: "
|
|
11633
|
-
Value:
|
|
11623
|
+
export interface Mud extends globalThis.EnumItem {
|
|
11624
|
+
Name: "Mud";
|
|
11625
|
+
Value: 1344;
|
|
11634
11626
|
EnumType: typeof globalThis.Enum.Material;
|
|
11635
11627
|
}
|
|
11636
11628
|
|
|
11637
|
-
export const
|
|
11629
|
+
export const Mud: Mud;
|
|
11638
11630
|
|
|
11639
|
-
export interface
|
|
11640
|
-
Name: "
|
|
11641
|
-
Value:
|
|
11631
|
+
export interface Ground extends globalThis.EnumItem {
|
|
11632
|
+
Name: "Ground";
|
|
11633
|
+
Value: 1360;
|
|
11642
11634
|
EnumType: typeof globalThis.Enum.Material;
|
|
11643
11635
|
}
|
|
11644
11636
|
|
|
11645
|
-
export const
|
|
11637
|
+
export const Ground: Ground;
|
|
11646
11638
|
|
|
11647
11639
|
export interface Asphalt extends globalThis.EnumItem {
|
|
11648
11640
|
Name: "Asphalt";
|
|
@@ -11652,14 +11644,6 @@ declare namespace Enum {
|
|
|
11652
11644
|
|
|
11653
11645
|
export const Asphalt: Asphalt;
|
|
11654
11646
|
|
|
11655
|
-
export interface LeafyGrass extends globalThis.EnumItem {
|
|
11656
|
-
Name: "LeafyGrass";
|
|
11657
|
-
Value: 1284;
|
|
11658
|
-
EnumType: typeof globalThis.Enum.Material;
|
|
11659
|
-
}
|
|
11660
|
-
|
|
11661
|
-
export const LeafyGrass: LeafyGrass;
|
|
11662
|
-
|
|
11663
11647
|
export interface Salt extends globalThis.EnumItem {
|
|
11664
11648
|
Name: "Salt";
|
|
11665
11649
|
Value: 1392;
|
|
@@ -11668,21 +11652,29 @@ declare namespace Enum {
|
|
|
11668
11652
|
|
|
11669
11653
|
export const Salt: Salt;
|
|
11670
11654
|
|
|
11671
|
-
export interface
|
|
11672
|
-
Name: "
|
|
11673
|
-
Value:
|
|
11655
|
+
export interface Ice extends globalThis.EnumItem {
|
|
11656
|
+
Name: "Ice";
|
|
11657
|
+
Value: 1536;
|
|
11674
11658
|
EnumType: typeof globalThis.Enum.Material;
|
|
11675
11659
|
}
|
|
11676
11660
|
|
|
11677
|
-
export const
|
|
11661
|
+
export const Ice: Ice;
|
|
11678
11662
|
|
|
11679
|
-
export interface
|
|
11680
|
-
Name: "
|
|
11681
|
-
Value:
|
|
11663
|
+
export interface Glacier extends globalThis.EnumItem {
|
|
11664
|
+
Name: "Glacier";
|
|
11665
|
+
Value: 1552;
|
|
11682
11666
|
EnumType: typeof globalThis.Enum.Material;
|
|
11683
11667
|
}
|
|
11684
11668
|
|
|
11685
|
-
export const
|
|
11669
|
+
export const Glacier: Glacier;
|
|
11670
|
+
|
|
11671
|
+
export interface Glass extends globalThis.EnumItem {
|
|
11672
|
+
Name: "Glass";
|
|
11673
|
+
Value: 1568;
|
|
11674
|
+
EnumType: typeof globalThis.Enum.Material;
|
|
11675
|
+
}
|
|
11676
|
+
|
|
11677
|
+
export const Glass: Glass;
|
|
11686
11678
|
|
|
11687
11679
|
export interface ForceField extends globalThis.EnumItem {
|
|
11688
11680
|
Name: "ForceField";
|
|
@@ -11692,6 +11684,22 @@ declare namespace Enum {
|
|
|
11692
11684
|
|
|
11693
11685
|
export const ForceField: ForceField;
|
|
11694
11686
|
|
|
11687
|
+
export interface Air extends globalThis.EnumItem {
|
|
11688
|
+
Name: "Air";
|
|
11689
|
+
Value: 1792;
|
|
11690
|
+
EnumType: typeof globalThis.Enum.Material;
|
|
11691
|
+
}
|
|
11692
|
+
|
|
11693
|
+
export const Air: Air;
|
|
11694
|
+
|
|
11695
|
+
export interface Water extends globalThis.EnumItem {
|
|
11696
|
+
Name: "Water";
|
|
11697
|
+
Value: 2048;
|
|
11698
|
+
EnumType: typeof globalThis.Enum.Material;
|
|
11699
|
+
}
|
|
11700
|
+
|
|
11701
|
+
export const Water: Water;
|
|
11702
|
+
|
|
11695
11703
|
export interface Cardboard extends globalThis.EnumItem {
|
|
11696
11704
|
Name: "Cardboard";
|
|
11697
11705
|
Value: 2304;
|
|
@@ -11758,7 +11766,7 @@ declare namespace Enum {
|
|
|
11758
11766
|
|
|
11759
11767
|
export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.Material>;
|
|
11760
11768
|
}
|
|
11761
|
-
export type Material = Material.Plastic | Material.
|
|
11769
|
+
export type Material = Material.Plastic | Material.SmoothPlastic | Material.Neon | Material.Wood | Material.WoodPlanks | Material.Marble | Material.Slate | Material.Concrete | Material.Granite | Material.Brick | Material.Pebble | Material.Cobblestone | Material.Rock | Material.Sandstone | Material.Basalt | Material.CrackedLava | Material.Limestone | Material.Pavement | Material.CorrodedMetal | Material.DiamondPlate | Material.Foil | Material.Metal | Material.Grass | Material.LeafyGrass | Material.Sand | Material.Fabric | Material.Snow | Material.Mud | Material.Ground | Material.Asphalt | Material.Salt | Material.Ice | Material.Glacier | Material.Glass | Material.ForceField | Material.Air | Material.Water | Material.Cardboard | Material.Carpet | Material.CeramicTiles | Material.ClayRoofTiles | Material.RoofShingles | Material.Leather | Material.Plaster | Material.Rubber;
|
|
11762
11770
|
|
|
11763
11771
|
export namespace MaterialPattern {
|
|
11764
11772
|
export interface Regular extends globalThis.EnumItem {
|