mons-rust 0.1.97 → 0.1.100

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,18 +10,17 @@
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 AvailableMoveKind {
14
- MonMove = 0,
15
- ManaMove = 1,
16
- Action = 2,
17
- Potion = 3,
13
+ export enum OutputModelKind {
14
+ InvalidInput = 0,
15
+ LocationsToStartFrom = 1,
16
+ NextInputOptions = 2,
17
+ Events = 3,
18
18
  }
19
19
  /**
20
20
  */
21
- export enum Modifier {
22
- SelectPotion = 0,
23
- SelectBomb = 1,
24
- Cancel = 2,
21
+ export enum Color {
22
+ White = 0,
23
+ Black = 1,
25
24
  }
26
25
  /**
27
26
  */
@@ -34,38 +33,6 @@ export enum MonKind {
34
33
  }
35
34
  /**
36
35
  */
37
- export enum Color {
38
- White = 0,
39
- Black = 1,
40
- }
41
- /**
42
- */
43
- export enum ManaKind {
44
- Regular = 0,
45
- Supermana = 1,
46
- }
47
- /**
48
- */
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,
66
- }
67
- /**
68
- */
69
36
  export enum EventModelKind {
70
37
  MonMove = 0,
71
38
  ManaMove = 1,
@@ -90,14 +57,6 @@ export enum EventModelKind {
90
57
  }
91
58
  /**
92
59
  */
93
- export enum OutputModelKind {
94
- InvalidInput = 0,
95
- LocationsToStartFrom = 1,
96
- NextInputOptions = 2,
97
- Events = 3,
98
- }
99
- /**
100
- */
101
60
  export enum SquareModelKind {
102
61
  Regular = 0,
103
62
  ConsumableBase = 1,
@@ -108,6 +67,47 @@ export enum SquareModelKind {
108
67
  }
109
68
  /**
110
69
  */
70
+ export enum NextInputKind {
71
+ MonMove = 0,
72
+ ManaMove = 1,
73
+ MysticAction = 2,
74
+ DemonAction = 3,
75
+ DemonAdditionalStep = 4,
76
+ SpiritTargetCapture = 5,
77
+ SpiritTargetMove = 6,
78
+ SelectConsumable = 7,
79
+ BombAttack = 8,
80
+ }
81
+ /**
82
+ */
83
+ export enum Consumable {
84
+ Potion = 0,
85
+ Bomb = 1,
86
+ BombOrPotion = 2,
87
+ }
88
+ /**
89
+ */
90
+ export enum Modifier {
91
+ SelectPotion = 0,
92
+ SelectBomb = 1,
93
+ Cancel = 2,
94
+ }
95
+ /**
96
+ */
97
+ export enum ManaKind {
98
+ Regular = 0,
99
+ Supermana = 1,
100
+ }
101
+ /**
102
+ */
103
+ export enum AvailableMoveKind {
104
+ MonMove = 0,
105
+ ManaMove = 1,
106
+ Action = 2,
107
+ Potion = 3,
108
+ }
109
+ /**
110
+ */
111
111
  export enum ItemModelKind {
112
112
  Mon = 0,
113
113
  Mana = 1,
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__h206308f423796301(arg0, arg1);
153
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he12ab5974e4a8350(arg0, arg1);
154
154
  }
155
155
 
156
156
  let cachedUint32Memory0 = null;
@@ -239,34 +239,34 @@ function __wbg_adapter_151(arg0, arg1, arg2, arg3) {
239
239
 
240
240
  /**
241
241
  */
242
- module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
242
+ module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
243
243
  /**
244
244
  */
245
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
245
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
246
246
  /**
247
247
  */
248
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.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
251
+ 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", });
252
252
  /**
253
253
  */
254
- module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
254
+ 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", });
255
255
  /**
256
256
  */
257
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
257
+ 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", });
258
258
  /**
259
259
  */
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", });
260
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
261
261
  /**
262
262
  */
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", });
263
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
264
264
  /**
265
265
  */
266
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
266
+ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
267
267
  /**
268
268
  */
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", });
269
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
270
270
  /**
271
271
  */
272
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", });
@@ -1454,8 +1454,8 @@ module.exports.__wbg_outputmodel_new = function(arg0) {
1454
1454
  return addHeapObject(ret);
1455
1455
  };
1456
1456
 
1457
- module.exports.__wbg_location_new = function(arg0) {
1458
- const ret = Location.__wrap(arg0);
1457
+ module.exports.__wbg_eventmodel_new = function(arg0) {
1458
+ const ret = EventModel.__wrap(arg0);
1459
1459
  return addHeapObject(ret);
1460
1460
  };
1461
1461
 
@@ -1464,8 +1464,8 @@ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1464
1464
  return addHeapObject(ret);
1465
1465
  };
1466
1466
 
1467
- module.exports.__wbg_eventmodel_new = function(arg0) {
1468
- const ret = EventModel.__wrap(arg0);
1467
+ module.exports.__wbg_location_new = function(arg0) {
1468
+ const ret = Location.__wrap(arg0);
1469
1469
  return addHeapObject(ret);
1470
1470
  };
1471
1471
 
@@ -1654,8 +1654,8 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
1654
1654
  throw new Error(getStringFromWasm0(arg0, arg1));
1655
1655
  };
1656
1656
 
1657
- module.exports.__wbindgen_closure_wrapper499 = function(arg0, arg1, arg2) {
1658
- const ret = makeMutClosure(arg0, arg1, 20, __wbg_adapter_26);
1657
+ module.exports.__wbindgen_closure_wrapper518 = function(arg0, arg1, arg2) {
1658
+ const ret = makeMutClosure(arg0, arg1, 21, __wbg_adapter_26);
1659
1659
  return addHeapObject(ret);
1660
1660
  };
1661
1661
 
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.97",
4
+ "version": "0.1.100",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",