mons-rust 0.1.80 → 0.1.81

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,9 +10,20 @@
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 Color {
14
- White = 0,
15
- Black = 1,
13
+ export enum Modifier {
14
+ SelectPotion = 0,
15
+ SelectBomb = 1,
16
+ Cancel = 2,
17
+ }
18
+ /**
19
+ */
20
+ export enum SquareModelKind {
21
+ Regular = 0,
22
+ ConsumableBase = 1,
23
+ SupermanaBase = 2,
24
+ ManaBase = 3,
25
+ ManaPool = 4,
26
+ MonBase = 5,
16
27
  }
17
28
  /**
18
29
  */
@@ -29,42 +40,41 @@ export enum NextInputKind {
29
40
  }
30
41
  /**
31
42
  */
32
- export enum Consumable {
33
- Potion = 0,
34
- Bomb = 1,
35
- BombOrPotion = 2,
36
- }
37
- /**
38
- */
39
- export enum Modifier {
40
- SelectPotion = 0,
41
- SelectBomb = 1,
42
- Cancel = 2,
43
- }
44
- /**
45
- */
46
43
  export enum ManaKind {
47
44
  Regular = 0,
48
45
  Supermana = 1,
49
46
  }
50
47
  /**
51
48
  */
52
- export enum ItemModelKind {
53
- Mon = 0,
54
- Mana = 1,
55
- MonWithMana = 2,
56
- MonWithConsumable = 3,
57
- Consumable = 4,
49
+ export enum EventModelKind {
50
+ MonMove = 0,
51
+ ManaMove = 1,
52
+ ManaScored = 2,
53
+ MysticAction = 3,
54
+ DemonAction = 4,
55
+ DemonAdditionalStep = 5,
56
+ SpiritTargetMove = 6,
57
+ PickupBomb = 7,
58
+ PickupPotion = 8,
59
+ PickupMana = 9,
60
+ MonFainted = 10,
61
+ ManaDropped = 11,
62
+ SupermanaBackToBase = 12,
63
+ BombAttack = 13,
64
+ MonAwake = 14,
65
+ BombExplosion = 15,
66
+ NextTurn = 16,
67
+ GameOver = 17,
68
+ Takeback = 18,
69
+ UsePotion = 19,
58
70
  }
59
71
  /**
60
72
  */
61
- export enum SquareModelKind {
62
- Regular = 0,
63
- ConsumableBase = 1,
64
- SupermanaBase = 2,
65
- ManaBase = 3,
66
- ManaPool = 4,
67
- MonBase = 5,
73
+ export enum AvailableMoveKind {
74
+ MonMove = 0,
75
+ ManaMove = 1,
76
+ Action = 2,
77
+ Potion = 3,
68
78
  }
69
79
  /**
70
80
  */
@@ -77,6 +87,13 @@ export enum MonKind {
77
87
  }
78
88
  /**
79
89
  */
90
+ export enum Consumable {
91
+ Potion = 0,
92
+ Bomb = 1,
93
+ BombOrPotion = 2,
94
+ }
95
+ /**
96
+ */
80
97
  export enum OutputModelKind {
81
98
  InvalidInput = 0,
82
99
  LocationsToStartFrom = 1,
@@ -85,35 +102,18 @@ export enum OutputModelKind {
85
102
  }
86
103
  /**
87
104
  */
88
- export enum AvailableMoveKind {
89
- MonMove = 0,
90
- ManaMove = 1,
91
- Action = 2,
92
- Potion = 3,
105
+ export enum ItemModelKind {
106
+ Mon = 0,
107
+ Mana = 1,
108
+ MonWithMana = 2,
109
+ MonWithConsumable = 3,
110
+ Consumable = 4,
93
111
  }
94
112
  /**
95
113
  */
96
- export enum EventModelKind {
97
- MonMove = 0,
98
- ManaMove = 1,
99
- ManaScored = 2,
100
- MysticAction = 3,
101
- DemonAction = 4,
102
- DemonAdditionalStep = 5,
103
- SpiritTargetMove = 6,
104
- PickupBomb = 7,
105
- PickupPotion = 8,
106
- PickupMana = 9,
107
- MonFainted = 10,
108
- ManaDropped = 11,
109
- SupermanaBackToBase = 12,
110
- BombAttack = 13,
111
- MonAwake = 14,
112
- BombExplosion = 15,
113
- NextTurn = 16,
114
- GameOver = 17,
115
- Takeback = 18,
116
- UsePotion = 19,
114
+ export enum Color {
115
+ White = 0,
116
+ Black = 1,
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__hd530eb4d92927f55(arg0, arg1);
153
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2f4219ba1d070c88(arg0, arg1);
154
154
  }
155
155
 
156
156
  let cachedUint32Memory0 = null;
@@ -239,37 +239,37 @@ function __wbg_adapter_152(arg0, arg1, arg2, arg3) {
239
239
 
240
240
  /**
241
241
  */
242
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
243
- /**
244
- */
245
- 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", });
242
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
246
243
  /**
247
244
  */
248
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
245
+ 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", });
249
246
  /**
250
247
  */
251
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
248
+ 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", });
252
249
  /**
253
250
  */
254
251
  module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
255
252
  /**
256
253
  */
257
- 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", });
254
+ 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", });
258
255
  /**
259
256
  */
260
- 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", });
257
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
261
258
  /**
262
259
  */
263
260
  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", });
264
261
  /**
265
262
  */
263
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
264
+ /**
265
+ */
266
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.ItemModelKind = Object.freeze({ Mon:0,"0":"Mon",Mana:1,"1":"Mana",MonWithMana:2,"2":"MonWithMana",MonWithConsumable:3,"3":"MonWithConsumable",Consumable:4,"4":"Consumable", });
270
270
  /**
271
271
  */
272
- 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", });
272
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
273
273
 
274
274
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
275
275
  ? { register: () => {}, unregister: () => {} }
@@ -1426,13 +1426,13 @@ module.exports.__wbindgen_number_new = function(arg0) {
1426
1426
  return addHeapObject(ret);
1427
1427
  };
1428
1428
 
1429
- module.exports.__wbg_nextinputmodel_new = function(arg0) {
1430
- const ret = NextInputModel.__wrap(arg0);
1429
+ module.exports.__wbg_eventmodel_new = function(arg0) {
1430
+ const ret = EventModel.__wrap(arg0);
1431
1431
  return addHeapObject(ret);
1432
1432
  };
1433
1433
 
1434
- module.exports.__wbg_eventmodel_new = function(arg0) {
1435
- const ret = EventModel.__wrap(arg0);
1434
+ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1435
+ const ret = NextInputModel.__wrap(arg0);
1436
1436
  return addHeapObject(ret);
1437
1437
  };
1438
1438
 
@@ -1655,7 +1655,7 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
1655
1655
  throw new Error(getStringFromWasm0(arg0, arg1));
1656
1656
  };
1657
1657
 
1658
- module.exports.__wbindgen_closure_wrapper370 = function(arg0, arg1, arg2) {
1658
+ module.exports.__wbindgen_closure_wrapper379 = function(arg0, arg1, arg2) {
1659
1659
  const ret = makeMutClosure(arg0, arg1, 23, __wbg_adapter_26);
1660
1660
  return addHeapObject(ret);
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.80",
4
+ "version": "0.1.81",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",