mons-rust 0.1.107 → 0.1.109

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,22 +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,
16
- }
17
- /**
18
- */
19
- export enum ManaKind {
20
- Regular = 0,
21
- Supermana = 1,
13
+ export enum MonKind {
14
+ Demon = 0,
15
+ Drainer = 1,
16
+ Angel = 2,
17
+ Spirit = 3,
18
+ Mystic = 4,
22
19
  }
23
20
  /**
24
21
  */
25
- export enum Consumable {
26
- Potion = 0,
27
- Bomb = 1,
28
- BombOrPotion = 2,
22
+ export enum OutputModelKind {
23
+ InvalidInput = 0,
24
+ LocationsToStartFrom = 1,
25
+ NextInputOptions = 2,
26
+ Events = 3,
29
27
  }
30
28
  /**
31
29
  */
@@ -36,20 +34,25 @@ export enum Modifier {
36
34
  }
37
35
  /**
38
36
  */
39
- export enum AvailableMoveKind {
40
- MonMove = 0,
41
- ManaMove = 1,
42
- Action = 2,
43
- Potion = 3,
37
+ export enum Consumable {
38
+ Potion = 0,
39
+ Bomb = 1,
40
+ BombOrPotion = 2,
44
41
  }
45
42
  /**
46
43
  */
47
- export enum MonKind {
48
- Demon = 0,
49
- Drainer = 1,
50
- Angel = 2,
51
- Spirit = 3,
52
- Mystic = 4,
44
+ export enum Color {
45
+ White = 0,
46
+ Black = 1,
47
+ }
48
+ /**
49
+ */
50
+ export enum ItemModelKind {
51
+ Mon = 0,
52
+ Mana = 1,
53
+ MonWithMana = 2,
54
+ MonWithConsumable = 3,
55
+ Consumable = 4,
53
56
  }
54
57
  /**
55
58
  */
@@ -66,12 +69,27 @@ export enum NextInputKind {
66
69
  }
67
70
  /**
68
71
  */
69
- export enum ItemModelKind {
70
- Mon = 0,
71
- Mana = 1,
72
- MonWithMana = 2,
73
- MonWithConsumable = 3,
74
- Consumable = 4,
72
+ export enum AvailableMoveKind {
73
+ MonMove = 0,
74
+ ManaMove = 1,
75
+ Action = 2,
76
+ Potion = 3,
77
+ }
78
+ /**
79
+ */
80
+ export enum SquareModelKind {
81
+ Regular = 0,
82
+ ConsumableBase = 1,
83
+ SupermanaBase = 2,
84
+ ManaBase = 3,
85
+ ManaPool = 4,
86
+ MonBase = 5,
87
+ }
88
+ /**
89
+ */
90
+ export enum ManaKind {
91
+ Regular = 0,
92
+ Supermana = 1,
75
93
  }
76
94
  /**
77
95
  */
@@ -99,24 +117,6 @@ export enum EventModelKind {
99
117
  }
100
118
  /**
101
119
  */
102
- export enum SquareModelKind {
103
- Regular = 0,
104
- ConsumableBase = 1,
105
- SupermanaBase = 2,
106
- ManaBase = 3,
107
- ManaPool = 4,
108
- MonBase = 5,
109
- }
110
- /**
111
- */
112
- export enum OutputModelKind {
113
- InvalidInput = 0,
114
- LocationsToStartFrom = 1,
115
- NextInputOptions = 2,
116
- Events = 3,
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__h6e7dbed4da9e512d(arg0, arg1);
153
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h07d4593ed097e036(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.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
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", });
243
243
  /**
244
244
  */
245
- module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
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.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
248
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
249
249
  /**
250
250
  */
251
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
251
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
252
252
  /**
253
253
  */
254
- module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
254
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
255
255
  /**
256
256
  */
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", });
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", });
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.ItemModelKind = Object.freeze({ Mon:0,"0":"Mon",Mana:1,"1":"Mana",MonWithMana:2,"2":"MonWithMana",MonWithConsumable:3,"3":"MonWithConsumable",Consumable:4,"4":"Consumable", });
263
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
264
264
  /**
265
265
  */
266
- 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.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.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.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
270
270
  /**
271
271
  */
272
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
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: () => {} }
@@ -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_wrapper485 = function(arg0, arg1, arg2) {
1658
- const ret = makeMutClosure(arg0, arg1, 23, __wbg_adapter_26);
1657
+ module.exports.__wbindgen_closure_wrapper542 = 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.107",
4
+ "version": "0.1.109",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",