@recast-navigation/core 0.4.0 → 0.5.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
- import type R from '@recast-navigation/wasm';
2
1
  import type { NavMesh } from './nav-mesh';
3
2
  import { NavMeshQuery } from './nav-mesh-query';
3
+ import type R from './raw-module';
4
4
  import { Vector3 } from './utils';
5
5
  export type CrowdParams = {
6
6
  /**
package/dist/detour.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type R from '@recast-navigation/wasm';
1
+ import type R from './raw-module';
2
2
  import { Vector3 } from './utils';
3
3
  export declare class DetourPolyDetail {
4
4
  raw: R.dtPolyDetail;
@@ -3,6 +3,7 @@ import { RecastConfigType, RecastCompactHeightfield, RecastContourSet, RecastHei
3
3
  export type SoloNavMeshGeneratorConfig = Omit<RecastConfigType, 'tileSize'>;
4
4
  export declare const soloNavMeshGeneratorConfigDefaults: SoloNavMeshGeneratorConfig;
5
5
  export type SoloNavMeshGeneratorIntermediates = {
6
+ type: 'solo';
6
7
  heightfield?: RecastHeightfield;
7
8
  compactHeightfield?: RecastCompactHeightfield;
8
9
  contourSet?: RecastContourSet;
@@ -1,7 +1,7 @@
1
- import type R from '@recast-navigation/wasm';
2
1
  import { NavMesh } from '../nav-mesh';
2
+ import type R from '../raw-module';
3
+ import { RecastCompactHeightfield, RecastConfigType, RecastHeightfield, RecastHeightfieldLayerSet } from '../recast';
3
4
  import { TileCache } from '../tile-cache';
4
- import { RecastConfigType, RecastCompactHeightfield, RecastHeightfield, RecastHeightfieldLayerSet } from '../recast';
5
5
  export type TiledNavMeshGeneratorConfig = RecastConfigType & {
6
6
  /**
7
7
  * How many layers (or "floors") each navmesh tile is expected to have.
@@ -14,6 +14,7 @@ export type TiledNavMeshGeneratorConfig = RecastConfigType & {
14
14
  };
15
15
  export declare const tiledNavMeshGeneratorConfigDefaults: TiledNavMeshGeneratorConfig;
16
16
  export type TiledNavMeshGeneratorIntermediates = {
17
+ type: 'tiled';
17
18
  chunkyTriMesh?: R.rcChunkyTriMesh;
18
19
  tileIntermediates: {
19
20
  tx: number;
package/dist/index.d.ts CHANGED
@@ -8,3 +8,5 @@ export * from './recast';
8
8
  export * from './serdes';
9
9
  export * from './tile-cache';
10
10
  export * from './utils';
11
+ import Wasm from './raw-module';
12
+ export { Wasm };