mons-rust 0.1.47 → 0.1.49

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,30 @@
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 Modifier {
14
- SelectPotion = 0,
15
- SelectBomb = 1,
16
- Cancel = 2,
13
+ export enum Color {
14
+ White = 0,
15
+ Black = 1,
17
16
  }
18
17
  /**
19
18
  */
20
- export enum SquareModelKind {
21
- Regular = 0,
22
- ConsumableBase = 1,
23
- SupermanaBase = 2,
24
- ManaBase = 3,
25
- ManaPool = 4,
26
- MonBase = 5,
19
+ export enum AvailableMoveKind {
20
+ MonMove = 0,
21
+ ManaMove = 1,
22
+ Action = 2,
23
+ Potion = 3,
27
24
  }
28
25
  /**
29
26
  */
30
- export enum Consumable {
31
- Potion = 0,
32
- Bomb = 1,
33
- BombOrPotion = 2,
27
+ export enum NextInputKind {
28
+ MonMove = 0,
29
+ ManaMove = 1,
30
+ MysticAction = 2,
31
+ DemonAction = 3,
32
+ DemonAdditionalStep = 4,
33
+ SpiritTargetCapture = 5,
34
+ SpiritTargetMove = 6,
35
+ SelectConsumable = 7,
36
+ BombAttack = 8,
34
37
  }
35
38
  /**
36
39
  */
@@ -66,16 +69,10 @@ export enum ItemModelKind {
66
69
  }
67
70
  /**
68
71
  */
69
- export enum NextInputKind {
70
- MonMove = 0,
71
- ManaMove = 1,
72
- MysticAction = 2,
73
- DemonAction = 3,
74
- DemonAdditionalStep = 4,
75
- SpiritTargetCapture = 5,
76
- SpiritTargetMove = 6,
77
- SelectConsumable = 7,
78
- BombAttack = 8,
72
+ export enum Consumable {
73
+ Potion = 0,
74
+ Bomb = 1,
75
+ BombOrPotion = 2,
79
76
  }
80
77
  /**
81
78
  */
@@ -96,23 +93,26 @@ export enum OutputModelKind {
96
93
  }
97
94
  /**
98
95
  */
99
- export enum ManaKind {
96
+ export enum SquareModelKind {
100
97
  Regular = 0,
101
- Supermana = 1,
98
+ ConsumableBase = 1,
99
+ SupermanaBase = 2,
100
+ ManaBase = 3,
101
+ ManaPool = 4,
102
+ MonBase = 5,
102
103
  }
103
104
  /**
104
105
  */
105
- export enum Color {
106
- White = 0,
107
- Black = 1,
106
+ export enum ManaKind {
107
+ Regular = 0,
108
+ Supermana = 1,
108
109
  }
109
110
  /**
110
111
  */
111
- export enum AvailableMoveKind {
112
- MonMove = 0,
113
- ManaMove = 1,
114
- Action = 2,
115
- Potion = 3,
112
+ export enum Modifier {
113
+ SelectPotion = 0,
114
+ SelectBomb = 1,
115
+ Cancel = 2,
116
116
  }
117
117
  /**
118
118
  */
package/mons-rust.js CHANGED
@@ -201,13 +201,13 @@ function handleError(f, args) {
201
201
  }
202
202
  /**
203
203
  */
204
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
204
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
205
205
  /**
206
206
  */
207
- 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", });
207
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
208
208
  /**
209
209
  */
210
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
210
+ 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", });
211
211
  /**
212
212
  */
213
213
  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", });
@@ -216,7 +216,7 @@ module.exports.EventModelKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove
216
216
  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", });
217
217
  /**
218
218
  */
219
- 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", });
219
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
220
220
  /**
221
221
  */
222
222
  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", });
@@ -225,13 +225,13 @@ module.exports.MonKind = Object.freeze({ Demon:0,"0":"Demon",Drainer:1,"1":"Drai
225
225
  module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
226
226
  /**
227
227
  */
228
- module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
228
+ 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", });
229
229
  /**
230
230
  */
231
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
231
+ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
232
232
  /**
233
233
  */
234
- module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
234
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
235
235
 
236
236
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
237
237
  ? { register: () => {}, unregister: () => {} }
@@ -1206,11 +1206,6 @@ class SquareModel {
1206
1206
  }
1207
1207
  module.exports.SquareModel = SquareModel;
1208
1208
 
1209
- module.exports.__wbg_eventmodel_new = function(arg0) {
1210
- const ret = EventModel.__wrap(arg0);
1211
- return addHeapObject(ret);
1212
- };
1213
-
1214
1209
  module.exports.__wbg_nextinputmodel_new = function(arg0) {
1215
1210
  const ret = NextInputModel.__wrap(arg0);
1216
1211
  return addHeapObject(ret);
@@ -1221,6 +1216,11 @@ module.exports.__wbg_location_new = function(arg0) {
1221
1216
  return addHeapObject(ret);
1222
1217
  };
1223
1218
 
1219
+ module.exports.__wbg_eventmodel_new = function(arg0) {
1220
+ const ret = EventModel.__wrap(arg0);
1221
+ return addHeapObject(ret);
1222
+ };
1223
+
1224
1224
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
1225
1225
  takeObject(arg0);
1226
1226
  };
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.47",
4
+ "version": "0.1.49",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",