@rbxts/types 1.0.531 → 1.0.532
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 +54 -3
- package/package.json +1 -1
|
@@ -19958,7 +19958,7 @@ interface MaterialVariant extends Instance {
|
|
|
19958
19958
|
StudsPerTile: number;
|
|
19959
19959
|
}
|
|
19960
19960
|
|
|
19961
|
-
/** Provides access to a queue within MemoryStore. A queue is a data structure that provides temporary storage for arbitrary items (up to the maximum item size – see `
|
|
19961
|
+
/** Provides access to a queue within MemoryStore. A queue is a data structure that provides temporary storage for arbitrary items (up to the maximum item size – see [`MemoryStore Limits`](https://developer.roblox.com/en-us/articles/memory-store). Each queue item has a numeric priority: MemoryStore retrieves items with higher priority from the queue first, and it retrieves Items with the same priority in order of addition.
|
|
19962
19962
|
*
|
|
19963
19963
|
* Items in the queue can optionally be set to expire after a certain amount of time. Expired items simply disappear from the queue as if they were never added.
|
|
19964
19964
|
*/
|
|
@@ -20006,7 +20006,7 @@ interface MemoryStoreService extends Instance {
|
|
|
20006
20006
|
/**
|
|
20007
20007
|
* Returns a [MemoryStoreQueue](https://developer.roblox.com/en-us/api-reference/class/MemoryStoreQueue) instance for the provided name. The name is global within the game, thus any place that uses the same name will access the same queue.
|
|
20008
20008
|
*
|
|
20009
|
-
* For a more in-depth look, take a look at the
|
|
20009
|
+
* For a more in-depth look, take a look at the `articles/Memory Store` article.
|
|
20010
20010
|
*/
|
|
20011
20011
|
GetQueue(this: MemoryStoreService, name: string, invisibilityTimeout?: number): MemoryStoreQueue;
|
|
20012
20012
|
/**
|
|
@@ -23818,6 +23818,19 @@ interface Path extends Instance {
|
|
|
23818
23818
|
readonly Unblocked: RBXScriptSignal<(unblockedWaypointIdx: number) => void>;
|
|
23819
23819
|
}
|
|
23820
23820
|
|
|
23821
|
+
/** **Beta Feature** This class is currently a part of the PathfindingModifier beta feature. Eligible developers must enable the feature within Studio and functionality may change.
|
|
23822
|
+
*
|
|
23823
|
+
* For a more detailed overview of the [PathfindingService](https://developer.roblox.com/en-us/api-reference/class/PathfindingService) and [PathfindingModifiers](https://developer.roblox.com/en-us/api-reference/class/PathfindingModifier), see the `Articles/Pathfinding|Pathfinding` article.
|
|
23824
|
+
*
|
|
23825
|
+
* Pathfinding modifiers can be used to represent space that has a higher or lower cost to be traversed. When added as a child to a [Part](https://developer.roblox.com/en-us/api-reference/class/Part), it takes that Part's volume to annotate areas of the navmesh that are inside and on top of it.
|
|
23826
|
+
*
|
|
23827
|
+
* You can include pathfinding modifiers in the [PathfindingService:CreatePath](https://developer.roblox.com/en-us/api-reference/function/PathfindingService/CreatePath) parameters and compute smarter paths across various materials or around defined regions.
|
|
23828
|
+
*
|
|
23829
|
+
* Note that when adding a [PathfindingModifier](https://developer.roblox.com/en-us/api-reference/class/PathfindingModifier) to a part, **either**:
|
|
23830
|
+
*
|
|
23831
|
+
* 1. The part is [collidable](https://developer.roblox.com/en-us/api-reference/property/BasePart/CanCollide) and we are interested in modifying pathfinding costs of paths on top of this part, which we call **area**.
|
|
23832
|
+
* 2. The part is `BasePart/CanCollide|non-collidable` (and usually invisible in game) and we are interested in modifying pathfinding costs of paths inside the part, which we call **volume**.
|
|
23833
|
+
*/
|
|
23821
23834
|
interface PathfindingModifier extends Instance {
|
|
23822
23835
|
/**
|
|
23823
23836
|
* **DO NOT USE!**
|
|
@@ -23827,7 +23840,17 @@ interface PathfindingModifier extends Instance {
|
|
|
23827
23840
|
* @deprecated
|
|
23828
23841
|
*/
|
|
23829
23842
|
readonly _nominal_PathfindingModifier: unique symbol;
|
|
23843
|
+
/**
|
|
23844
|
+
* **Beta Feature** This class is currently a part of the PathfindingModifier beta feature. Eligible developers must enable the feature within Studio and functionality may change.
|
|
23845
|
+
*
|
|
23846
|
+
* For a more detailed overview of the [PathfindingService](”PathfindingService”) and PathfindingModifiers, you can take a look at the [Pathfinding](”`Articles/Pathfinding|Pathfinding`”) article.
|
|
23847
|
+
*
|
|
23848
|
+
* The name of the navigation area inside or on top of the `Part|Part's` volume.
|
|
23849
|
+
*/
|
|
23830
23850
|
ModifierId: string;
|
|
23851
|
+
/**
|
|
23852
|
+
* Determines if the parts enclosed by the modifier are traversable, even if they would normally be collided with. See [Ignoring Obstacles](https://developer.roblox.com/articles/Pathfinding#ignoring-obstacles) for details.
|
|
23853
|
+
*/
|
|
23831
23854
|
PassThrough: boolean;
|
|
23832
23855
|
}
|
|
23833
23856
|
|
|
@@ -23872,7 +23895,7 @@ interface PathfindingService extends Instance {
|
|
|
23872
23895
|
/**
|
|
23873
23896
|
* Creates a [Path](https://developer.roblox.com/en-us/api-reference/class/Path) object based on various agent parameters (see below).
|
|
23874
23897
|
*
|
|
23875
|
-
* Agent
|
|
23898
|
+
* Agent parameters
|
|
23876
23899
|
* ----------------
|
|
23877
23900
|
*
|
|
23878
23901
|
* Key
|
|
@@ -23915,6 +23938,34 @@ interface PathfindingService extends Instance {
|
|
|
23915
23938
|
*
|
|
23916
23939
|
* Determines the spacing between intermediate waypoints in path.
|
|
23917
23940
|
*
|
|
23941
|
+
* **Costs**
|
|
23942
|
+
*
|
|
23943
|
+
* table
|
|
23944
|
+
*
|
|
23945
|
+
* {}
|
|
23946
|
+
*
|
|
23947
|
+
* Table of materials or defined [PathfindingModifiers](https://developer.roblox.com/en-us/api-reference/class/PathfindingModifier) and their "cost" for traversal. Useful for making the agent prefer certain materials/regions over others.
|
|
23948
|
+
*
|
|
23949
|
+
* Pathfinding Costs
|
|
23950
|
+
* -----------------
|
|
23951
|
+
*
|
|
23952
|
+
* By default, all walkable (navmesh) areas have a pathfinding cost of 1.0 (jumps have a cost of 4.0), which is exactly how pathfinding worked before the introduction of [PathfindingModifiers](https://developer.roblox.com/en-us/api-reference/class/PathfindingModifier).
|
|
23953
|
+
*
|
|
23954
|
+
* Since not all characters have the same movement abilities or constraints, it is desirable to provide a way to customize them. For example, a regular car always wants to avoid water, while an amphibian vehicle might not have such restriction.
|
|
23955
|
+
*
|
|
23956
|
+
* To assign different pathfinding costs to different named areas/volumes and/or materials, for a particular AI character (including the player character in the Click to Move mode), just add an optional parameter `Costs` of type dictionary to CreatePath(.). It maps Pathfinding Modifier areas/volumes and materials to their pathfinding costs. For example:
|
|
23957
|
+
*
|
|
23958
|
+
* local path = PathfindingService:CreatePath{
|
|
23959
|
+
* AgentRadius = agentRadius,
|
|
23960
|
+
* AgentHeight = agentHeight,
|
|
23961
|
+
* AgentCanJump = agentCanJump,
|
|
23962
|
+
*
|
|
23963
|
+
* -- New parameter --
|
|
23964
|
+
* Costs = {
|
|
23965
|
+
* Grass = 10
|
|
23966
|
+
* }
|
|
23967
|
+
* }
|
|
23968
|
+
*
|
|
23918
23969
|
* See the `Articles/Pathfinding|Pathfinding` guide for details and examples on using pathfinding in Roblox.
|
|
23919
23970
|
*/
|
|
23920
23971
|
CreatePath(this: PathfindingService, agentParameters?: AgentParameters): Path;
|