mons-rust 0.1.73 → 0.1.75

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,27 +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 NextInputKind {
14
- MonMove = 0,
15
- ManaMove = 1,
16
- MysticAction = 2,
17
- DemonAction = 3,
18
- DemonAdditionalStep = 4,
19
- SpiritTargetCapture = 5,
20
- SpiritTargetMove = 6,
21
- SelectConsumable = 7,
22
- BombAttack = 8,
23
- }
24
- /**
25
- */
26
- export enum AvailableMoveKind {
27
- MonMove = 0,
28
- ManaMove = 1,
29
- Action = 2,
30
- Potion = 3,
31
- }
32
- /**
33
- */
34
13
  export enum OutputModelKind {
35
14
  InvalidInput = 0,
36
15
  LocationsToStartFrom = 1,
@@ -39,22 +18,6 @@ export enum OutputModelKind {
39
18
  }
40
19
  /**
41
20
  */
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 Color {
53
- White = 0,
54
- Black = 1,
55
- }
56
- /**
57
- */
58
21
  export enum ItemModelKind {
59
22
  Mon = 0,
60
23
  Mana = 1,
@@ -64,15 +27,6 @@ export enum ItemModelKind {
64
27
  }
65
28
  /**
66
29
  */
67
- export enum MonKind {
68
- Demon = 0,
69
- Drainer = 1,
70
- Angel = 2,
71
- Spirit = 3,
72
- Mystic = 4,
73
- }
74
- /**
75
- */
76
30
  export enum EventModelKind {
77
31
  MonMove = 0,
78
32
  ManaMove = 1,
@@ -103,6 +57,14 @@ export enum ManaKind {
103
57
  }
104
58
  /**
105
59
  */
60
+ export enum AvailableMoveKind {
61
+ MonMove = 0,
62
+ ManaMove = 1,
63
+ Action = 2,
64
+ Potion = 3,
65
+ }
66
+ /**
67
+ */
106
68
  export enum Modifier {
107
69
  SelectPotion = 0,
108
70
  SelectBomb = 1,
@@ -110,6 +72,22 @@ export enum Modifier {
110
72
  }
111
73
  /**
112
74
  */
75
+ export enum SquareModelKind {
76
+ Regular = 0,
77
+ ConsumableBase = 1,
78
+ SupermanaBase = 2,
79
+ ManaBase = 3,
80
+ ManaPool = 4,
81
+ MonBase = 5,
82
+ }
83
+ /**
84
+ */
85
+ export enum Color {
86
+ White = 0,
87
+ Black = 1,
88
+ }
89
+ /**
90
+ */
113
91
  export enum Consumable {
114
92
  Potion = 0,
115
93
  Bomb = 1,
@@ -117,6 +95,28 @@ export enum Consumable {
117
95
  }
118
96
  /**
119
97
  */
98
+ export enum NextInputKind {
99
+ MonMove = 0,
100
+ ManaMove = 1,
101
+ MysticAction = 2,
102
+ DemonAction = 3,
103
+ DemonAdditionalStep = 4,
104
+ SpiritTargetCapture = 5,
105
+ SpiritTargetMove = 6,
106
+ SelectConsumable = 7,
107
+ BombAttack = 8,
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__h5340f0f80eea716e(arg0, arg1);
153
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha58338ce91622da2(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.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", });
242
+ module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
243
243
  /**
244
244
  */
245
- module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
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", });
246
246
  /**
247
247
  */
248
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
248
+ 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", });
249
249
  /**
250
250
  */
251
- 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", });
251
+ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
252
252
  /**
253
253
  */
254
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
254
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
255
255
  /**
256
256
  */
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", });
257
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
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.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", });
261
261
  /**
262
262
  */
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", });
263
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
264
264
  /**
265
265
  */
266
- module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
266
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
267
267
  /**
268
268
  */
269
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
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.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
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: () => {} }
@@ -1655,8 +1655,8 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
1655
1655
  throw new Error(getStringFromWasm0(arg0, arg1));
1656
1656
  };
1657
1657
 
1658
- module.exports.__wbindgen_closure_wrapper309 = function(arg0, arg1, arg2) {
1659
- const ret = makeMutClosure(arg0, arg1, 11, __wbg_adapter_26);
1658
+ module.exports.__wbindgen_closure_wrapper285 = function(arg0, arg1, arg2) {
1659
+ const ret = makeMutClosure(arg0, arg1, 9, __wbg_adapter_26);
1660
1660
  return addHeapObject(ret);
1661
1661
  };
1662
1662
 
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.73",
4
+ "version": "0.1.75",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",