alpathfinder 0.4.5 → 0.4.7

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/alpathfinder.d.ts CHANGED
@@ -11,6 +11,14 @@ export interface PathNode {
11
11
  spawn?: number;
12
12
  }
13
13
 
14
+ export function addCheatPath(
15
+ map: MapKey,
16
+ x_from: number,
17
+ y_from: number,
18
+ x_to: number,
19
+ y_to: number,
20
+ ): void;
21
+
14
22
  export function canWalkPath(
15
23
  map: MapKey,
16
24
  x_from: number,
package/alpathfinder.js CHANGED
@@ -1,5 +1,19 @@
1
1
  /* @ts-self-types="./alpathfinder.d.ts" */
2
2
 
3
+ /**
4
+ * @param {string} map
5
+ * @param {number} x1
6
+ * @param {number} y1
7
+ * @param {number} x2
8
+ * @param {number} y2
9
+ */
10
+ function addCheatPath(map, x1, y1, x2, y2) {
11
+ const ptr0 = passStringToWasm0(map, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
12
+ const len0 = WASM_VECTOR_LEN;
13
+ wasm.addCheatPath(ptr0, len0, x1, y1, x2, y2);
14
+ }
15
+ exports.addCheatPath = addCheatPath;
16
+
3
17
  /**
4
18
  * @param {string} map_name
5
19
  * @param {number} x1
Binary file
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "Kent Rasmussen <hyprkookeez@gmail.com>"
5
5
  ],
6
- "version": "0.4.5",
6
+ "version": "0.4.7",
7
7
  "files": [
8
8
  "alpathfinder_bg.wasm",
9
9
  "alpathfinder.js",