@recast-navigation/core 0.13.3 → 0.14.0
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/dist/crowd.d.ts +34 -17
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -9
- package/dist/generators/common.d.ts +0 -10
- package/dist/generators/generate-solo-nav-mesh.d.ts +0 -34
- package/dist/generators/generate-tile-cache.d.ts +0 -53
- package/dist/generators/generate-tiled-nav-mesh.d.ts +0 -39
- package/dist/generators/index.d.ts +0 -4
package/dist/crowd.d.ts
CHANGED
|
@@ -2,22 +2,6 @@ import type { NavMesh } from './nav-mesh';
|
|
|
2
2
|
import { NavMeshQuery } from './nav-mesh-query';
|
|
3
3
|
import type R from './raw-module';
|
|
4
4
|
import { Vector3 } from './utils';
|
|
5
|
-
export type CrowdParams = {
|
|
6
|
-
/**
|
|
7
|
-
* The maximum number of agents that can be managed by the crowd.
|
|
8
|
-
* [Limit: >= 1]
|
|
9
|
-
*/
|
|
10
|
-
maxAgents: number;
|
|
11
|
-
/**
|
|
12
|
-
* The maximum radius of any agent that will be added to the crowd.
|
|
13
|
-
* [Limit: > 0]
|
|
14
|
-
*/
|
|
15
|
-
maxAgentRadius: number;
|
|
16
|
-
/**
|
|
17
|
-
* The navigation mesh to use for planning.
|
|
18
|
-
*/
|
|
19
|
-
navMesh: NavMesh;
|
|
20
|
-
};
|
|
21
5
|
export type CrowdAgentParams = {
|
|
22
6
|
/**
|
|
23
7
|
* The radius of the agent.
|
|
@@ -168,6 +152,33 @@ export declare class CrowdAgent implements CrowdAgentParams {
|
|
|
168
152
|
*/
|
|
169
153
|
setParameters(crowdAgentParams: CrowdAgentParams): void;
|
|
170
154
|
}
|
|
155
|
+
export declare class QueryFilter {
|
|
156
|
+
raw: R.dtQueryFilter;
|
|
157
|
+
index: number;
|
|
158
|
+
get includeFlags(): number;
|
|
159
|
+
set includeFlags(flags: number);
|
|
160
|
+
get excludeFlags(): number;
|
|
161
|
+
set excludeFlags(flags: number);
|
|
162
|
+
constructor(raw: R.dtQueryFilter, index: number);
|
|
163
|
+
getAreaCost(i: number): number;
|
|
164
|
+
setAreaCost(i: number, cost: number): void;
|
|
165
|
+
}
|
|
166
|
+
export type CrowdParams = {
|
|
167
|
+
/**
|
|
168
|
+
* The maximum number of agents that can be managed by the crowd.
|
|
169
|
+
* [Limit: >= 1]
|
|
170
|
+
*/
|
|
171
|
+
maxAgents: number;
|
|
172
|
+
/**
|
|
173
|
+
* The maximum radius of any agent that will be added to the crowd.
|
|
174
|
+
* [Limit: > 0]
|
|
175
|
+
*/
|
|
176
|
+
maxAgentRadius: number;
|
|
177
|
+
/**
|
|
178
|
+
* The navigation mesh to use for planning.
|
|
179
|
+
*/
|
|
180
|
+
navMesh: NavMesh;
|
|
181
|
+
};
|
|
171
182
|
export declare class Crowd {
|
|
172
183
|
raw: R.dtCrowd;
|
|
173
184
|
/**
|
|
@@ -208,7 +219,7 @@ export declare class Crowd {
|
|
|
208
219
|
*/
|
|
209
220
|
addAgent(position: Vector3, crowdAgentParams: Partial<CrowdAgentParams>): CrowdAgent;
|
|
210
221
|
/**
|
|
211
|
-
* Gets the agent
|
|
222
|
+
* Gets the agent for the specified index, or null if no agent has the given index.
|
|
212
223
|
* @param agentIndex
|
|
213
224
|
* @returns
|
|
214
225
|
*/
|
|
@@ -229,6 +240,12 @@ export declare class Crowd {
|
|
|
229
240
|
* Returns all the agents managed by the crowd.
|
|
230
241
|
*/
|
|
231
242
|
getAgents(): CrowdAgent[];
|
|
243
|
+
/**
|
|
244
|
+
* Gets the query filter for the specified index.
|
|
245
|
+
* @param filterIndex the index of the query filter to retrieve, (min 0, max 15)
|
|
246
|
+
* @returns the query filter
|
|
247
|
+
*/
|
|
248
|
+
getFilter(filterIndex: number): QueryFilter;
|
|
232
249
|
/**
|
|
233
250
|
* Destroys the crowd.
|
|
234
251
|
*/
|