mons-rust 0.1.89 → 0.1.91

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