mons-rust 0.1.78 → 0.1.80

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,25 +10,9 @@
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 ItemModelKind {
14
- Mon = 0,
15
- Mana = 1,
16
- MonWithMana = 2,
17
- MonWithConsumable = 3,
18
- Consumable = 4,
19
- }
20
- /**
21
- */
22
- export enum Consumable {
23
- Potion = 0,
24
- Bomb = 1,
25
- BombOrPotion = 2,
26
- }
27
- /**
28
- */
29
- export enum ManaKind {
30
- Regular = 0,
31
- Supermana = 1,
13
+ export enum Color {
14
+ White = 0,
15
+ Black = 1,
32
16
  }
33
17
  /**
34
18
  */
@@ -45,6 +29,13 @@ export enum NextInputKind {
45
29
  }
46
30
  /**
47
31
  */
32
+ export enum Consumable {
33
+ Potion = 0,
34
+ Bomb = 1,
35
+ BombOrPotion = 2,
36
+ }
37
+ /**
38
+ */
48
39
  export enum Modifier {
49
40
  SelectPotion = 0,
50
41
  SelectBomb = 1,
@@ -52,6 +43,21 @@ export enum Modifier {
52
43
  }
53
44
  /**
54
45
  */
46
+ export enum ManaKind {
47
+ Regular = 0,
48
+ Supermana = 1,
49
+ }
50
+ /**
51
+ */
52
+ export enum ItemModelKind {
53
+ Mon = 0,
54
+ Mana = 1,
55
+ MonWithMana = 2,
56
+ MonWithConsumable = 3,
57
+ Consumable = 4,
58
+ }
59
+ /**
60
+ */
55
61
  export enum SquareModelKind {
56
62
  Regular = 0,
57
63
  ConsumableBase = 1,
@@ -62,6 +68,15 @@ export enum SquareModelKind {
62
68
  }
63
69
  /**
64
70
  */
71
+ export enum MonKind {
72
+ Demon = 0,
73
+ Drainer = 1,
74
+ Angel = 2,
75
+ Spirit = 3,
76
+ Mystic = 4,
77
+ }
78
+ /**
79
+ */
65
80
  export enum OutputModelKind {
66
81
  InvalidInput = 0,
67
82
  LocationsToStartFrom = 1,
@@ -70,6 +85,14 @@ export enum OutputModelKind {
70
85
  }
71
86
  /**
72
87
  */
88
+ export enum AvailableMoveKind {
89
+ MonMove = 0,
90
+ ManaMove = 1,
91
+ Action = 2,
92
+ Potion = 3,
93
+ }
94
+ /**
95
+ */
73
96
  export enum EventModelKind {
74
97
  MonMove = 0,
75
98
  ManaMove = 1,
@@ -94,29 +117,6 @@ export enum EventModelKind {
94
117
  }
95
118
  /**
96
119
  */
97
- export enum AvailableMoveKind {
98
- MonMove = 0,
99
- ManaMove = 1,
100
- Action = 2,
101
- Potion = 3,
102
- }
103
- /**
104
- */
105
- export enum Color {
106
- White = 0,
107
- Black = 1,
108
- }
109
- /**
110
- */
111
- export enum MonKind {
112
- Demon = 0,
113
- Drainer = 1,
114
- Angel = 2,
115
- Spirit = 3,
116
- Mystic = 4,
117
- }
118
- /**
119
- */
120
120
  export class EventModel {
121
121
  free(): void;
122
122
  /**
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__hcbc1e14914feb0cf(arg0, arg1);
153
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd530eb4d92927f55(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.ItemModelKind = Object.freeze({ Mon:0,"0":"Mon",Mana:1,"1":"Mana",MonWithMana:2,"2":"MonWithMana",MonWithConsumable:3,"3":"MonWithConsumable",Consumable:4,"4":"Consumable", });
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", });
243
246
  /**
244
247
  */
245
248
  module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
246
249
  /**
247
250
  */
248
- module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
251
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
249
252
  /**
250
253
  */
251
- 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", });
254
+ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
252
255
  /**
253
256
  */
254
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
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", });
255
258
  /**
256
259
  */
257
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", });
258
261
  /**
259
262
  */
260
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
263
+ 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", });
261
264
  /**
262
265
  */
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", });
266
+ module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
264
267
  /**
265
268
  */
266
269
  module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
267
270
  /**
268
271
  */
269
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
270
- /**
271
- */
272
- 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", });
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", });
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_eventmodel_new = function(arg0) {
1430
- const ret = EventModel.__wrap(arg0);
1429
+ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1430
+ const ret = NextInputModel.__wrap(arg0);
1431
1431
  return addHeapObject(ret);
1432
1432
  };
1433
1433
 
1434
- module.exports.__wbg_nextinputmodel_new = function(arg0) {
1435
- const ret = NextInputModel.__wrap(arg0);
1434
+ module.exports.__wbg_eventmodel_new = function(arg0) {
1435
+ const ret = EventModel.__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_wrapper377 = function(arg0, arg1, arg2) {
1658
+ module.exports.__wbindgen_closure_wrapper370 = 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.78",
4
+ "version": "0.1.80",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",