mons-rust 0.1.97 → 0.1.98

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,18 +10,27 @@
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 {
13
+ export enum EventModelKind {
14
14
  MonMove = 0,
15
15
  ManaMove = 1,
16
- Action = 2,
17
- Potion = 3,
18
- }
19
- /**
20
- */
21
- export enum Modifier {
22
- SelectPotion = 0,
23
- SelectBomb = 1,
24
- Cancel = 2,
16
+ ManaScored = 2,
17
+ MysticAction = 3,
18
+ DemonAction = 4,
19
+ DemonAdditionalStep = 5,
20
+ SpiritTargetMove = 6,
21
+ PickupBomb = 7,
22
+ PickupPotion = 8,
23
+ PickupMana = 9,
24
+ MonFainted = 10,
25
+ ManaDropped = 11,
26
+ SupermanaBackToBase = 12,
27
+ BombAttack = 13,
28
+ MonAwake = 14,
29
+ BombExplosion = 15,
30
+ NextTurn = 16,
31
+ GameOver = 17,
32
+ Takeback = 18,
33
+ UsePotion = 19,
25
34
  }
26
35
  /**
27
36
  */
@@ -34,25 +43,6 @@ export enum MonKind {
34
43
  }
35
44
  /**
36
45
  */
37
- export enum Color {
38
- White = 0,
39
- Black = 1,
40
- }
41
- /**
42
- */
43
- export enum ManaKind {
44
- Regular = 0,
45
- Supermana = 1,
46
- }
47
- /**
48
- */
49
- export enum Consumable {
50
- Potion = 0,
51
- Bomb = 1,
52
- BombOrPotion = 2,
53
- }
54
- /**
55
- */
56
46
  export enum NextInputKind {
57
47
  MonMove = 0,
58
48
  ManaMove = 1,
@@ -66,35 +56,10 @@ export enum NextInputKind {
66
56
  }
67
57
  /**
68
58
  */
69
- export enum EventModelKind {
70
- MonMove = 0,
71
- ManaMove = 1,
72
- ManaScored = 2,
73
- MysticAction = 3,
74
- DemonAction = 4,
75
- DemonAdditionalStep = 5,
76
- SpiritTargetMove = 6,
77
- PickupBomb = 7,
78
- PickupPotion = 8,
79
- PickupMana = 9,
80
- MonFainted = 10,
81
- ManaDropped = 11,
82
- SupermanaBackToBase = 12,
83
- BombAttack = 13,
84
- MonAwake = 14,
85
- BombExplosion = 15,
86
- NextTurn = 16,
87
- GameOver = 17,
88
- Takeback = 18,
89
- UsePotion = 19,
90
- }
91
- /**
92
- */
93
- export enum OutputModelKind {
94
- InvalidInput = 0,
95
- LocationsToStartFrom = 1,
96
- NextInputOptions = 2,
97
- Events = 3,
59
+ export enum Modifier {
60
+ SelectPotion = 0,
61
+ SelectBomb = 1,
62
+ Cancel = 2,
98
63
  }
99
64
  /**
100
65
  */
@@ -108,6 +73,29 @@ export enum SquareModelKind {
108
73
  }
109
74
  /**
110
75
  */
76
+ export enum AvailableMoveKind {
77
+ MonMove = 0,
78
+ ManaMove = 1,
79
+ Action = 2,
80
+ Potion = 3,
81
+ }
82
+ /**
83
+ */
84
+ export enum Consumable {
85
+ Potion = 0,
86
+ Bomb = 1,
87
+ BombOrPotion = 2,
88
+ }
89
+ /**
90
+ */
91
+ export enum OutputModelKind {
92
+ InvalidInput = 0,
93
+ LocationsToStartFrom = 1,
94
+ NextInputOptions = 2,
95
+ Events = 3,
96
+ }
97
+ /**
98
+ */
111
99
  export enum ItemModelKind {
112
100
  Mon = 0,
113
101
  Mana = 1,
@@ -117,6 +105,18 @@ export enum ItemModelKind {
117
105
  }
118
106
  /**
119
107
  */
108
+ export enum ManaKind {
109
+ Regular = 0,
110
+ Supermana = 1,
111
+ }
112
+ /**
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__h206308f423796301(arg0, arg1);
153
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7c48e39afd512b30(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", });
243
- /**
244
- */
245
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
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", });
246
243
  /**
247
244
  */
248
245
  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
246
  /**
250
247
  */
251
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
248
+ 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", });
252
249
  /**
253
250
  */
254
- module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
251
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
255
252
  /**
256
253
  */
257
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
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", });
258
255
  /**
259
256
  */
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", });
257
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
261
258
  /**
262
259
  */
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", });
260
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
264
261
  /**
265
262
  */
266
263
  module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
267
264
  /**
268
265
  */
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", });
266
+ 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", });
270
267
  /**
271
268
  */
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", });
269
+ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
270
+ /**
271
+ */
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: () => {} }
@@ -1654,7 +1654,7 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
1654
1654
  throw new Error(getStringFromWasm0(arg0, arg1));
1655
1655
  };
1656
1656
 
1657
- module.exports.__wbindgen_closure_wrapper499 = function(arg0, arg1, arg2) {
1657
+ module.exports.__wbindgen_closure_wrapper509 = function(arg0, arg1, arg2) {
1658
1658
  const ret = makeMutClosure(arg0, arg1, 20, __wbg_adapter_26);
1659
1659
  return addHeapObject(ret);
1660
1660
  };
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.97",
4
+ "version": "0.1.98",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",