mons-web 0.1.7 → 0.1.8
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/mons_rust.d.ts +6 -0
- package/mons_rust.js +9 -0
- package/mons_rust_bg.wasm +0 -0
- package/package.json +1 -1
package/mons_rust.d.ts
CHANGED
|
@@ -30,6 +30,11 @@ export enum Color {
|
|
|
30
30
|
export class Location {
|
|
31
31
|
free(): void;
|
|
32
32
|
/**
|
|
33
|
+
* @param {number} i
|
|
34
|
+
* @param {number} j
|
|
35
|
+
*/
|
|
36
|
+
constructor(i: number, j: number);
|
|
37
|
+
/**
|
|
33
38
|
*/
|
|
34
39
|
i: number;
|
|
35
40
|
/**
|
|
@@ -46,6 +51,7 @@ export interface InitOutput {
|
|
|
46
51
|
readonly __wbg_set_location_i: (a: number, b: number) => void;
|
|
47
52
|
readonly __wbg_get_location_j: (a: number) => number;
|
|
48
53
|
readonly __wbg_set_location_j: (a: number, b: number) => void;
|
|
54
|
+
readonly location_new: (a: number, b: number) => number;
|
|
49
55
|
readonly hello: (a: number) => void;
|
|
50
56
|
readonly winner: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
51
57
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
package/mons_rust.js
CHANGED
|
@@ -184,6 +184,15 @@ export class Location {
|
|
|
184
184
|
set j(arg0) {
|
|
185
185
|
wasm.__wbg_set_location_j(this.__wbg_ptr, arg0);
|
|
186
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* @param {number} i
|
|
189
|
+
* @param {number} j
|
|
190
|
+
*/
|
|
191
|
+
constructor(i, j) {
|
|
192
|
+
const ret = wasm.location_new(i, j);
|
|
193
|
+
this.__wbg_ptr = ret >>> 0;
|
|
194
|
+
return this;
|
|
195
|
+
}
|
|
187
196
|
}
|
|
188
197
|
|
|
189
198
|
async function __wbg_load(module, imports) {
|
package/mons_rust_bg.wasm
CHANGED
|
Binary file
|