mons-rust 0.1.105 → 0.1.108

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