@recast-navigation/core 0.0.7 → 0.1.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import type R from '@recast-navigation/wasm';
2
2
  import type { NavMesh } from './nav-mesh';
3
- import type { NavPath, Vector3 } from './utils';
3
+ import { Vector3 } from './utils';
4
4
  export declare type CrowdParams = {
5
5
  /**
6
6
  * The maximum number of agents that can be managed by the crowd.
@@ -166,7 +166,7 @@ export declare class Crowd {
166
166
  /**
167
167
  * Returns the local path corridor corners for the specified agent.
168
168
  */
169
- getAgentCorners(agentIndex: number): NavPath;
169
+ getAgentCorners(agentIndex: number): Vector3[];
170
170
  /**
171
171
  * Returns the parameters for the specified agent.
172
172
  */
@@ -0,0 +1,18 @@
1
+ export declare class DtStatus {
2
+ static get FAILURE(): number;
3
+ static get SUCCESS(): number;
4
+ static get IN_PROGRESS(): number;
5
+ static get STATUS_DETAIL_MASK(): number;
6
+ static get WRONG_MAGIC(): number;
7
+ static get WRONG_VERSION(): number;
8
+ static get OUT_OF_MEMORY(): number;
9
+ static get INVALID_PARAM(): number;
10
+ static get BUFFER_TOO_SMALL(): number;
11
+ static get OUT_OF_NODES(): number;
12
+ static get PARTIAL_RESULT(): number;
13
+ static get ALREADY_OCCUPIED(): number;
14
+ static statusSucceed(status: number): boolean;
15
+ static statusFailed(status: number): boolean;
16
+ static statusInProgress(status: number): boolean;
17
+ static statusDetail(status: number, detail: number): boolean;
18
+ }
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from './crowd';
2
- export * from './debug-nav-mesh';
2
+ export * from './dt-status';
3
3
  export * from './nav-mesh';
4
4
  export * from './nav-mesh-builder';
5
5
  export * from './nav-mesh-exporter';