mons-rust 0.1.94 → 0.1.97

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
@@ -10,37 +10,33 @@
10
10
  export function winner(fen_w: string, fen_b: string, flat_moves_string_w: string, flat_moves_string_b: string): string;
11
11
  /**
12
12
  */
13
- export enum OutputModelKind {
14
- InvalidInput = 0,
15
- LocationsToStartFrom = 1,
16
- NextInputOptions = 2,
17
- Events = 3,
13
+ export enum AvailableMoveKind {
14
+ MonMove = 0,
15
+ ManaMove = 1,
16
+ Action = 2,
17
+ Potion = 3,
18
18
  }
19
19
  /**
20
20
  */
21
- export enum ItemModelKind {
22
- Mon = 0,
23
- Mana = 1,
24
- MonWithMana = 2,
25
- MonWithConsumable = 3,
26
- Consumable = 4,
21
+ export enum Modifier {
22
+ SelectPotion = 0,
23
+ SelectBomb = 1,
24
+ Cancel = 2,
27
25
  }
28
26
  /**
29
27
  */
30
- export enum SquareModelKind {
31
- Regular = 0,
32
- ConsumableBase = 1,
33
- SupermanaBase = 2,
34
- ManaBase = 3,
35
- ManaPool = 4,
36
- MonBase = 5,
28
+ export enum MonKind {
29
+ Demon = 0,
30
+ Drainer = 1,
31
+ Angel = 2,
32
+ Spirit = 3,
33
+ Mystic = 4,
37
34
  }
38
35
  /**
39
36
  */
40
- export enum Consumable {
41
- Potion = 0,
42
- Bomb = 1,
43
- BombOrPotion = 2,
37
+ export enum Color {
38
+ White = 0,
39
+ Black = 1,
44
40
  }
45
41
  /**
46
42
  */
@@ -50,9 +46,23 @@ export enum ManaKind {
50
46
  }
51
47
  /**
52
48
  */
53
- export enum Color {
54
- White = 0,
55
- Black = 1,
49
+ export enum Consumable {
50
+ Potion = 0,
51
+ Bomb = 1,
52
+ BombOrPotion = 2,
53
+ }
54
+ /**
55
+ */
56
+ export enum NextInputKind {
57
+ MonMove = 0,
58
+ ManaMove = 1,
59
+ MysticAction = 2,
60
+ DemonAction = 3,
61
+ DemonAdditionalStep = 4,
62
+ SpiritTargetCapture = 5,
63
+ SpiritTargetMove = 6,
64
+ SelectConsumable = 7,
65
+ BombAttack = 8,
56
66
  }
57
67
  /**
58
68
  */
@@ -80,40 +90,30 @@ export enum EventModelKind {
80
90
  }
81
91
  /**
82
92
  */
83
- export enum Modifier {
84
- SelectPotion = 0,
85
- SelectBomb = 1,
86
- Cancel = 2,
87
- }
88
- /**
89
- */
90
- export enum MonKind {
91
- Demon = 0,
92
- Drainer = 1,
93
- Angel = 2,
94
- Spirit = 3,
95
- Mystic = 4,
93
+ export enum OutputModelKind {
94
+ InvalidInput = 0,
95
+ LocationsToStartFrom = 1,
96
+ NextInputOptions = 2,
97
+ Events = 3,
96
98
  }
97
99
  /**
98
100
  */
99
- export enum AvailableMoveKind {
100
- MonMove = 0,
101
- ManaMove = 1,
102
- Action = 2,
103
- Potion = 3,
101
+ export enum SquareModelKind {
102
+ Regular = 0,
103
+ ConsumableBase = 1,
104
+ SupermanaBase = 2,
105
+ ManaBase = 3,
106
+ ManaPool = 4,
107
+ MonBase = 5,
104
108
  }
105
109
  /**
106
110
  */
107
- export enum NextInputKind {
108
- MonMove = 0,
109
- ManaMove = 1,
110
- MysticAction = 2,
111
- DemonAction = 3,
112
- DemonAdditionalStep = 4,
113
- SpiritTargetCapture = 5,
114
- SpiritTargetMove = 6,
115
- SelectConsumable = 7,
116
- BombAttack = 8,
111
+ export enum ItemModelKind {
112
+ Mon = 0,
113
+ Mana = 1,
114
+ MonWithMana = 2,
115
+ MonWithConsumable = 3,
116
+ Consumable = 4,
117
117
  }
118
118
  /**
119
119
  */
package/mons-rust.js CHANGED
@@ -150,7 +150,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
150
150
  return real;
151
151
  }
152
152
  function __wbg_adapter_26(arg0, arg1) {
153
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h57553f0006dafce3(arg0, arg1);
153
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h206308f423796301(arg0, arg1);
154
154
  }
155
155
 
156
156
  let cachedUint32Memory0 = null;
@@ -239,37 +239,37 @@ function __wbg_adapter_151(arg0, arg1, arg2, arg3) {
239
239
 
240
240
  /**
241
241
  */
242
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
242
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
243
243
  /**
244
244
  */
245
- module.exports.ItemModelKind = Object.freeze({ Mon:0,"0":"Mon",Mana:1,"1":"Mana",MonWithMana:2,"2":"MonWithMana",MonWithConsumable:3,"3":"MonWithConsumable",Consumable:4,"4":"Consumable", });
245
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
246
246
  /**
247
247
  */
248
- module.exports.SquareModelKind = Object.freeze({ Regular:0,"0":"Regular",ConsumableBase:1,"1":"ConsumableBase",SupermanaBase:2,"2":"SupermanaBase",ManaBase:3,"3":"ManaBase",ManaPool:4,"4":"ManaPool",MonBase:5,"5":"MonBase", });
248
+ module.exports.MonKind = Object.freeze({ Demon:0,"0":"Demon",Drainer:1,"1":"Drainer",Angel:2,"2":"Angel",Spirit:3,"3":"Spirit",Mystic:4,"4":"Mystic", });
249
249
  /**
250
250
  */
251
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
251
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
252
252
  /**
253
253
  */
254
254
  module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
255
255
  /**
256
256
  */
257
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
257
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
258
258
  /**
259
259
  */
260
- module.exports.EventModelKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",ManaScored:2,"2":"ManaScored",MysticAction:3,"3":"MysticAction",DemonAction:4,"4":"DemonAction",DemonAdditionalStep:5,"5":"DemonAdditionalStep",SpiritTargetMove:6,"6":"SpiritTargetMove",PickupBomb:7,"7":"PickupBomb",PickupPotion:8,"8":"PickupPotion",PickupMana:9,"9":"PickupMana",MonFainted:10,"10":"MonFainted",ManaDropped:11,"11":"ManaDropped",SupermanaBackToBase:12,"12":"SupermanaBackToBase",BombAttack:13,"13":"BombAttack",MonAwake:14,"14":"MonAwake",BombExplosion:15,"15":"BombExplosion",NextTurn:16,"16":"NextTurn",GameOver:17,"17":"GameOver",Takeback:18,"18":"Takeback",UsePotion:19,"19":"UsePotion", });
260
+ module.exports.NextInputKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",MysticAction:2,"2":"MysticAction",DemonAction:3,"3":"DemonAction",DemonAdditionalStep:4,"4":"DemonAdditionalStep",SpiritTargetCapture:5,"5":"SpiritTargetCapture",SpiritTargetMove:6,"6":"SpiritTargetMove",SelectConsumable:7,"7":"SelectConsumable",BombAttack:8,"8":"BombAttack", });
261
261
  /**
262
262
  */
263
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
263
+ module.exports.EventModelKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",ManaScored:2,"2":"ManaScored",MysticAction:3,"3":"MysticAction",DemonAction:4,"4":"DemonAction",DemonAdditionalStep:5,"5":"DemonAdditionalStep",SpiritTargetMove:6,"6":"SpiritTargetMove",PickupBomb:7,"7":"PickupBomb",PickupPotion:8,"8":"PickupPotion",PickupMana:9,"9":"PickupMana",MonFainted:10,"10":"MonFainted",ManaDropped:11,"11":"ManaDropped",SupermanaBackToBase:12,"12":"SupermanaBackToBase",BombAttack:13,"13":"BombAttack",MonAwake:14,"14":"MonAwake",BombExplosion:15,"15":"BombExplosion",NextTurn:16,"16":"NextTurn",GameOver:17,"17":"GameOver",Takeback:18,"18":"Takeback",UsePotion:19,"19":"UsePotion", });
264
264
  /**
265
265
  */
266
- module.exports.MonKind = Object.freeze({ Demon:0,"0":"Demon",Drainer:1,"1":"Drainer",Angel:2,"2":"Angel",Spirit:3,"3":"Spirit",Mystic:4,"4":"Mystic", });
266
+ module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
267
267
  /**
268
268
  */
269
- module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
269
+ module.exports.SquareModelKind = Object.freeze({ Regular:0,"0":"Regular",ConsumableBase:1,"1":"ConsumableBase",SupermanaBase:2,"2":"SupermanaBase",ManaBase:3,"3":"ManaBase",ManaPool:4,"4":"ManaPool",MonBase:5,"5":"MonBase", });
270
270
  /**
271
271
  */
272
- module.exports.NextInputKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",MysticAction:2,"2":"MysticAction",DemonAction:3,"3":"DemonAction",DemonAdditionalStep:4,"4":"DemonAdditionalStep",SpiritTargetCapture:5,"5":"SpiritTargetCapture",SpiritTargetMove:6,"6":"SpiritTargetMove",SelectConsumable:7,"7":"SelectConsumable",BombAttack:8,"8":"BombAttack", });
272
+ module.exports.ItemModelKind = Object.freeze({ Mon:0,"0":"Mon",Mana:1,"1":"Mana",MonWithMana:2,"2":"MonWithMana",MonWithConsumable:3,"3":"MonWithConsumable",Consumable:4,"4":"Consumable", });
273
273
 
274
274
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
275
275
  ? { register: () => {}, unregister: () => {} }
@@ -1454,13 +1454,13 @@ module.exports.__wbg_outputmodel_new = function(arg0) {
1454
1454
  return addHeapObject(ret);
1455
1455
  };
1456
1456
 
1457
- module.exports.__wbg_nextinputmodel_new = function(arg0) {
1458
- const ret = NextInputModel.__wrap(arg0);
1457
+ module.exports.__wbg_location_new = function(arg0) {
1458
+ const ret = Location.__wrap(arg0);
1459
1459
  return addHeapObject(ret);
1460
1460
  };
1461
1461
 
1462
- module.exports.__wbg_location_new = function(arg0) {
1463
- const ret = Location.__wrap(arg0);
1462
+ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1463
+ const ret = NextInputModel.__wrap(arg0);
1464
1464
  return addHeapObject(ret);
1465
1465
  };
1466
1466
 
@@ -1654,7 +1654,7 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
1654
1654
  throw new Error(getStringFromWasm0(arg0, arg1));
1655
1655
  };
1656
1656
 
1657
- module.exports.__wbindgen_closure_wrapper376 = function(arg0, arg1, arg2) {
1657
+ module.exports.__wbindgen_closure_wrapper499 = function(arg0, arg1, arg2) {
1658
1658
  const ret = makeMutClosure(arg0, arg1, 20, __wbg_adapter_26);
1659
1659
  return addHeapObject(ret);
1660
1660
  };
package/mons-rust_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mons-rust",
3
3
  "description": "super metal mons",
4
- "version": "0.1.94",
4
+ "version": "0.1.97",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",