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 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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mons-web",
3
3
  "description": "super metal mons",
4
- "version": "0.1.7",
4
+ "version": "0.1.8",
5
5
  "license": "CC0-1.0",
6
6
  "files": [
7
7
  "mons_rust_bg.wasm",