mons-rust 0.1.110 → 0.1.112

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,45 +10,18 @@
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 EventModelKind {
14
- MonMove = 0,
15
- ManaMove = 1,
16
- ManaScored = 2,
17
- MysticAction = 3,
18
- DemonAction = 4,
19
- DemonAdditionalStep = 5,
20
- SpiritTargetMove = 6,
21
- PickupBomb = 7,
22
- PickupPotion = 8,
23
- PickupMana = 9,
24
- MonFainted = 10,
25
- ManaDropped = 11,
26
- SupermanaBackToBase = 12,
27
- BombAttack = 13,
28
- MonAwake = 14,
29
- BombExplosion = 15,
30
- NextTurn = 16,
31
- GameOver = 17,
32
- Takeback = 18,
33
- UsePotion = 19,
34
- }
35
- /**
36
- */
37
- export enum MonKind {
38
- Demon = 0,
39
- Drainer = 1,
40
- Angel = 2,
41
- Spirit = 3,
42
- Mystic = 4,
13
+ export enum Consumable {
14
+ Potion = 0,
15
+ Bomb = 1,
16
+ BombOrPotion = 2,
43
17
  }
44
18
  /**
45
19
  */
46
- export enum ItemModelKind {
47
- Mon = 0,
48
- Mana = 1,
49
- MonWithMana = 2,
50
- MonWithConsumable = 3,
51
- Consumable = 4,
20
+ export enum OutputModelKind {
21
+ InvalidInput = 0,
22
+ LocationsToStartFrom = 1,
23
+ NextInputOptions = 2,
24
+ Events = 3,
52
25
  }
53
26
  /**
54
27
  */
@@ -58,14 +31,6 @@ export enum ManaKind {
58
31
  }
59
32
  /**
60
33
  */
61
- export enum OutputModelKind {
62
- InvalidInput = 0,
63
- LocationsToStartFrom = 1,
64
- NextInputOptions = 2,
65
- Events = 3,
66
- }
67
- /**
68
- */
69
34
  export enum AvailableMoveKind {
70
35
  MonMove = 0,
71
36
  ManaMove = 1,
@@ -74,6 +39,25 @@ export enum AvailableMoveKind {
74
39
  }
75
40
  /**
76
41
  */
42
+ export enum SquareModelKind {
43
+ Regular = 0,
44
+ ConsumableBase = 1,
45
+ SupermanaBase = 2,
46
+ ManaBase = 3,
47
+ ManaPool = 4,
48
+ MonBase = 5,
49
+ }
50
+ /**
51
+ */
52
+ export enum MonKind {
53
+ Demon = 0,
54
+ Drainer = 1,
55
+ Angel = 2,
56
+ Spirit = 3,
57
+ Mystic = 4,
58
+ }
59
+ /**
60
+ */
77
61
  export enum NextInputKind {
78
62
  MonMove = 0,
79
63
  ManaMove = 1,
@@ -87,33 +71,49 @@ export enum NextInputKind {
87
71
  }
88
72
  /**
89
73
  */
90
- export enum SquareModelKind {
91
- Regular = 0,
92
- ConsumableBase = 1,
93
- SupermanaBase = 2,
94
- ManaBase = 3,
95
- ManaPool = 4,
96
- MonBase = 5,
74
+ export enum EventModelKind {
75
+ MonMove = 0,
76
+ ManaMove = 1,
77
+ ManaScored = 2,
78
+ MysticAction = 3,
79
+ DemonAction = 4,
80
+ DemonAdditionalStep = 5,
81
+ SpiritTargetMove = 6,
82
+ PickupBomb = 7,
83
+ PickupPotion = 8,
84
+ PickupMana = 9,
85
+ MonFainted = 10,
86
+ ManaDropped = 11,
87
+ SupermanaBackToBase = 12,
88
+ BombAttack = 13,
89
+ MonAwake = 14,
90
+ BombExplosion = 15,
91
+ NextTurn = 16,
92
+ GameOver = 17,
93
+ Takeback = 18,
94
+ UsePotion = 19,
97
95
  }
98
96
  /**
99
97
  */
100
- export enum Color {
101
- White = 0,
102
- Black = 1,
98
+ export enum Modifier {
99
+ SelectPotion = 0,
100
+ SelectBomb = 1,
101
+ Cancel = 2,
103
102
  }
104
103
  /**
105
104
  */
106
- export enum Consumable {
107
- Potion = 0,
108
- Bomb = 1,
109
- BombOrPotion = 2,
105
+ export enum Color {
106
+ White = 0,
107
+ Black = 1,
110
108
  }
111
109
  /**
112
110
  */
113
- export enum Modifier {
114
- SelectPotion = 0,
115
- SelectBomb = 1,
116
- Cancel = 2,
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__hf0581f4b625ca923(arg0, arg1);
153
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6e4ba54d26c28ebf(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.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", });
242
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
243
243
  /**
244
244
  */
245
- 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", });
245
+ module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
246
246
  /**
247
247
  */
248
- 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", });
248
+ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
249
249
  /**
250
250
  */
251
- module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
251
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
252
252
  /**
253
253
  */
254
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
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.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
257
+ 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", });
258
258
  /**
259
259
  */
260
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.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", });
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.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
266
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
267
267
  /**
268
268
  */
269
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
269
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
270
270
  /**
271
271
  */
272
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
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,6 +1454,11 @@ module.exports.__wbg_outputmodel_new = function(arg0) {
1454
1454
  return addHeapObject(ret);
1455
1455
  };
1456
1456
 
1457
+ module.exports.__wbg_eventmodel_new = function(arg0) {
1458
+ const ret = EventModel.__wrap(arg0);
1459
+ return addHeapObject(ret);
1460
+ };
1461
+
1457
1462
  module.exports.__wbg_nextinputmodel_new = function(arg0) {
1458
1463
  const ret = NextInputModel.__wrap(arg0);
1459
1464
  return addHeapObject(ret);
@@ -1464,9 +1469,9 @@ module.exports.__wbg_location_new = function(arg0) {
1464
1469
  return addHeapObject(ret);
1465
1470
  };
1466
1471
 
1467
- module.exports.__wbg_eventmodel_new = function(arg0) {
1468
- const ret = EventModel.__wrap(arg0);
1469
- return addHeapObject(ret);
1472
+ module.exports.__wbg_location_unwrap = function(arg0) {
1473
+ const ret = Location.__unwrap(takeObject(arg0));
1474
+ return ret;
1470
1475
  };
1471
1476
 
1472
1477
  module.exports.__wbg_verbosetrackingentitymodel_new = function(arg0) {
@@ -1474,11 +1479,6 @@ module.exports.__wbg_verbosetrackingentitymodel_new = function(arg0) {
1474
1479
  return addHeapObject(ret);
1475
1480
  };
1476
1481
 
1477
- module.exports.__wbg_location_unwrap = function(arg0) {
1478
- const ret = Location.__unwrap(takeObject(arg0));
1479
- return ret;
1480
- };
1481
-
1482
1482
  module.exports.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
1483
1483
  const ret = getObject(arg0).crypto;
1484
1484
  return addHeapObject(ret);
@@ -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_wrapper542 = function(arg0, arg1, arg2) {
1658
- const ret = makeMutClosure(arg0, arg1, 21, __wbg_adapter_26);
1657
+ module.exports.__wbindgen_closure_wrapper505 = function(arg0, arg1, arg2) {
1658
+ const ret = makeMutClosure(arg0, arg1, 19, __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.110",
4
+ "version": "0.1.112",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",