alpathfinder 0.2.2 → 0.2.4
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 +1 -1
- package/alpathfinder_bg.js +7 -7
- package/alpathfinder_bg.wasm +0 -0
- package/package.json +1 -1
package/alpathfinder.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function prepare(g_js: any): void;
|
|
3
4
|
export function getPath(map_from_name: string, x_from: number, y_from: number, map_to_name: string, x_to: number, y_to: number, speed?: number | null): any;
|
|
4
5
|
export function canWalkPath(map_name: string, x1: number, y1: number, x2: number, y2: number): boolean;
|
|
5
|
-
export function prepare(g_js: any): void;
|
|
6
6
|
export function isWalkable(map_name: string, x_i: number, y_i: number): boolean;
|
package/alpathfinder_bg.js
CHANGED
|
@@ -185,6 +185,13 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
|
185
185
|
ptr = ptr >>> 0;
|
|
186
186
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
187
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* @param {any} g_js
|
|
190
|
+
*/
|
|
191
|
+
export function prepare(g_js) {
|
|
192
|
+
wasm.prepare(g_js);
|
|
193
|
+
}
|
|
194
|
+
|
|
188
195
|
/**
|
|
189
196
|
* @param {string} map_from_name
|
|
190
197
|
* @param {number} x_from
|
|
@@ -219,13 +226,6 @@ export function canWalkPath(map_name, x1, y1, x2, y2) {
|
|
|
219
226
|
return ret !== 0;
|
|
220
227
|
}
|
|
221
228
|
|
|
222
|
-
/**
|
|
223
|
-
* @param {any} g_js
|
|
224
|
-
*/
|
|
225
|
-
export function prepare(g_js) {
|
|
226
|
-
wasm.prepare(g_js);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
229
|
/**
|
|
230
230
|
* @param {string} map_name
|
|
231
231
|
* @param {number} x_i
|
package/alpathfinder_bg.wasm
CHANGED
|
Binary file
|