mons-rust 0.1.87 → 0.1.90

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,48 +10,6 @@
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 MonKind {
14
- Demon = 0,
15
- Drainer = 1,
16
- Angel = 2,
17
- Spirit = 3,
18
- Mystic = 4,
19
- }
20
- /**
21
- */
22
- export enum OutputModelKind {
23
- InvalidInput = 0,
24
- LocationsToStartFrom = 1,
25
- NextInputOptions = 2,
26
- Events = 3,
27
- }
28
- /**
29
- */
30
- export enum SquareModelKind {
31
- Regular = 0,
32
- ConsumableBase = 1,
33
- SupermanaBase = 2,
34
- ManaBase = 3,
35
- ManaPool = 4,
36
- MonBase = 5,
37
- }
38
- /**
39
- */
40
- export enum AvailableMoveKind {
41
- MonMove = 0,
42
- ManaMove = 1,
43
- Action = 2,
44
- Potion = 3,
45
- }
46
- /**
47
- */
48
- export enum Consumable {
49
- Potion = 0,
50
- Bomb = 1,
51
- BombOrPotion = 2,
52
- }
53
- /**
54
- */
55
13
  export enum EventModelKind {
56
14
  MonMove = 0,
57
15
  ManaMove = 1,
@@ -76,9 +34,28 @@ export enum EventModelKind {
76
34
  }
77
35
  /**
78
36
  */
79
- export enum Color {
80
- White = 0,
81
- Black = 1,
37
+ export enum OutputModelKind {
38
+ InvalidInput = 0,
39
+ LocationsToStartFrom = 1,
40
+ NextInputOptions = 2,
41
+ Events = 3,
42
+ }
43
+ /**
44
+ */
45
+ export enum ItemModelKind {
46
+ Mon = 0,
47
+ Mana = 1,
48
+ MonWithMana = 2,
49
+ MonWithConsumable = 3,
50
+ Consumable = 4,
51
+ }
52
+ /**
53
+ */
54
+ export enum AvailableMoveKind {
55
+ MonMove = 0,
56
+ ManaMove = 1,
57
+ Action = 2,
58
+ Potion = 3,
82
59
  }
83
60
  /**
84
61
  */
@@ -89,18 +66,35 @@ export enum Modifier {
89
66
  }
90
67
  /**
91
68
  */
69
+ export enum Consumable {
70
+ Potion = 0,
71
+ Bomb = 1,
72
+ BombOrPotion = 2,
73
+ }
74
+ /**
75
+ */
92
76
  export enum ManaKind {
93
77
  Regular = 0,
94
78
  Supermana = 1,
95
79
  }
96
80
  /**
97
81
  */
98
- export enum ItemModelKind {
99
- Mon = 0,
100
- Mana = 1,
101
- MonWithMana = 2,
102
- MonWithConsumable = 3,
103
- Consumable = 4,
82
+ export enum MonKind {
83
+ Demon = 0,
84
+ Drainer = 1,
85
+ Angel = 2,
86
+ Spirit = 3,
87
+ Mystic = 4,
88
+ }
89
+ /**
90
+ */
91
+ export enum SquareModelKind {
92
+ Regular = 0,
93
+ ConsumableBase = 1,
94
+ SupermanaBase = 2,
95
+ ManaBase = 3,
96
+ ManaPool = 4,
97
+ MonBase = 5,
104
98
  }
105
99
  /**
106
100
  */
@@ -117,6 +111,12 @@ export enum NextInputKind {
117
111
  }
118
112
  /**
119
113
  */
114
+ export enum Color {
115
+ White = 0,
116
+ Black = 1,
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__h3151ce4ea0fab8cd(arg0, arg1);
153
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd0d1345cc69f4a11(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.MonKind = Object.freeze({ Demon:0,"0":"Demon",Drainer:1,"1":"Drainer",Angel:2,"2":"Angel",Spirit:3,"3":"Spirit",Mystic:4,"4":"Mystic", });
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", });
243
243
  /**
244
244
  */
245
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.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.ItemModelKind = Object.freeze({ Mon:0,"0":"Mon",Mana:1,"1":"Mana",MonWithMana:2,"2":"MonWithMana",MonWithConsumable:3,"3":"MonWithConsumable",Consumable:4,"4":"Consumable", });
249
249
  /**
250
250
  */
251
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.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
254
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
255
255
  /**
256
256
  */
257
- 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", });
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.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
260
+ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
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.MonKind = Object.freeze({ Demon:0,"0":"Demon",Drainer:1,"1":"Drainer",Angel:2,"2":"Angel",Spirit:3,"3":"Spirit",Mystic:4,"4":"Mystic", });
264
264
  /**
265
265
  */
266
- module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
266
+ 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", });
267
267
  /**
268
268
  */
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", });
269
+ 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", });
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.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
273
273
 
274
274
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
275
275
  ? { register: () => {}, unregister: () => {} }
@@ -1420,6 +1420,11 @@ module.exports.__wbindgen_number_new = function(arg0) {
1420
1420
  return addHeapObject(ret);
1421
1421
  };
1422
1422
 
1423
+ module.exports.__wbg_eventmodel_new = function(arg0) {
1424
+ const ret = EventModel.__wrap(arg0);
1425
+ return addHeapObject(ret);
1426
+ };
1427
+
1423
1428
  module.exports.__wbg_location_new = function(arg0) {
1424
1429
  const ret = Location.__wrap(arg0);
1425
1430
  return addHeapObject(ret);
@@ -1430,11 +1435,6 @@ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1430
1435
  return addHeapObject(ret);
1431
1436
  };
1432
1437
 
1433
- module.exports.__wbg_eventmodel_new = function(arg0) {
1434
- const ret = EventModel.__wrap(arg0);
1435
- return addHeapObject(ret);
1436
- };
1437
-
1438
1438
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
1439
1439
  takeObject(arg0);
1440
1440
  };
@@ -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_wrapper306 = function(arg0, arg1, arg2) {
1658
- const ret = makeMutClosure(arg0, arg1, 16, __wbg_adapter_26);
1657
+ module.exports.__wbindgen_closure_wrapper389 = 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.87",
4
+ "version": "0.1.90",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",