@recast-navigation/core 0.0.3 → 0.0.5
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 +0 -2
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/nav-mesh.d.ts +0 -3
- package/package.json +2 -2
- package/dist/topic.d.ts +0 -9
package/dist/nav-mesh.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { Crowd } from './crowd';
|
|
|
3
3
|
import { DebugNavMesh } from './debug-nav-mesh';
|
|
4
4
|
import type { BoxObstacle, CylinderObstacle, Obstacle, ObstacleRef } from './obstacle';
|
|
5
5
|
import type { NavPath, Vector3 } from './utils';
|
|
6
|
-
import { Topic } from './topic';
|
|
7
6
|
export declare type NavMeshConfig = {
|
|
8
7
|
/**
|
|
9
8
|
* @default 0
|
|
@@ -69,8 +68,6 @@ export declare type NavMeshConfig = {
|
|
|
69
68
|
export declare class NavMesh {
|
|
70
69
|
raw: R.NavMesh;
|
|
71
70
|
obstacles: Map<ObstacleRef, Obstacle>;
|
|
72
|
-
onNavMeshChange: Topic<void>;
|
|
73
|
-
onObstacleChange: Topic<void>;
|
|
74
71
|
constructor();
|
|
75
72
|
update(): void;
|
|
76
73
|
destroy(): void;
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"email": "isaac@isaacmason.com",
|
|
7
7
|
"url": "https://isaacmason.com/"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.5",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"homepage": "https://github.com/isaac-mason/recast-navigation-js",
|
|
12
12
|
"bugs": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/core": "^7.18.6",
|
|
29
|
-
"@recast-navigation/wasm": "0.0.
|
|
29
|
+
"@recast-navigation/wasm": "0.0.5",
|
|
30
30
|
"@rollup/plugin-commonjs": "^24.0.1",
|
|
31
31
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
32
32
|
"@rollup/plugin-terser": "^0.4.0",
|
package/dist/topic.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare type Listener<E extends unknown> = (event: E) => void;
|
|
2
|
-
export declare type Unsubscribe = () => void;
|
|
3
|
-
export declare class Topic<E extends unknown> {
|
|
4
|
-
listeners: Set<(event: E) => void>;
|
|
5
|
-
add(handler: Listener<E>): Unsubscribe;
|
|
6
|
-
remove(handler: Listener<E>): void;
|
|
7
|
-
emit(event: E): void;
|
|
8
|
-
clear(): void;
|
|
9
|
-
}
|