mons-rust 0.1.40 → 0.1.42

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,38 +10,16 @@
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 ManaKind {
14
- Regular = 0,
15
- Supermana = 1,
16
- }
17
- /**
18
- */
19
- export enum NextInputKind {
20
- MonMove = 0,
21
- ManaMove = 1,
22
- MysticAction = 2,
23
- DemonAction = 3,
24
- DemonAdditionalStep = 4,
25
- SpiritTargetCapture = 5,
26
- SpiritTargetMove = 6,
27
- SelectConsumable = 7,
28
- BombAttack = 8,
29
- }
30
- /**
31
- */
32
- export enum ItemModelKind {
33
- Mon = 0,
34
- Mana = 1,
35
- MonWithMana = 2,
36
- MonWithConsumable = 3,
37
- Consumable = 4,
13
+ export enum Modifier {
14
+ SelectPotion = 0,
15
+ SelectBomb = 1,
16
+ Cancel = 2,
38
17
  }
39
18
  /**
40
19
  */
41
- export enum Consumable {
42
- Potion = 0,
43
- Bomb = 1,
44
- BombOrPotion = 2,
20
+ export enum ManaKind {
21
+ Regular = 0,
22
+ Supermana = 1,
45
23
  }
46
24
  /**
47
25
  */
@@ -54,14 +32,6 @@ export enum MonKind {
54
32
  }
55
33
  /**
56
34
  */
57
- export enum AvailableMoveKind {
58
- MonMove = 0,
59
- ManaMove = 1,
60
- Action = 2,
61
- Potion = 3,
62
- }
63
- /**
64
- */
65
35
  export enum SquareModelKind {
66
36
  Regular = 0,
67
37
  ConsumableBase = 1,
@@ -72,11 +42,12 @@ export enum SquareModelKind {
72
42
  }
73
43
  /**
74
44
  */
75
- export enum OutputModelKind {
76
- InvalidInput = 0,
77
- LocationsToStartFrom = 1,
78
- NextInputOptions = 2,
79
- Events = 3,
45
+ export enum ItemModelKind {
46
+ Mon = 0,
47
+ Mana = 1,
48
+ MonWithMana = 2,
49
+ MonWithConsumable = 3,
50
+ Consumable = 4,
80
51
  }
81
52
  /**
82
53
  */
@@ -103,16 +74,45 @@ export enum EventModelKind {
103
74
  }
104
75
  /**
105
76
  */
77
+ export enum NextInputKind {
78
+ MonMove = 0,
79
+ ManaMove = 1,
80
+ MysticAction = 2,
81
+ DemonAction = 3,
82
+ DemonAdditionalStep = 4,
83
+ SpiritTargetCapture = 5,
84
+ SpiritTargetMove = 6,
85
+ SelectConsumable = 7,
86
+ BombAttack = 8,
87
+ }
88
+ /**
89
+ */
90
+ export enum AvailableMoveKind {
91
+ MonMove = 0,
92
+ ManaMove = 1,
93
+ Action = 2,
94
+ Potion = 3,
95
+ }
96
+ /**
97
+ */
98
+ export enum Consumable {
99
+ Potion = 0,
100
+ Bomb = 1,
101
+ BombOrPotion = 2,
102
+ }
103
+ /**
104
+ */
106
105
  export enum Color {
107
106
  White = 0,
108
107
  Black = 1,
109
108
  }
110
109
  /**
111
110
  */
112
- export enum Modifier {
113
- SelectPotion = 0,
114
- SelectBomb = 1,
115
- Cancel = 2,
111
+ export enum OutputModelKind {
112
+ InvalidInput = 0,
113
+ LocationsToStartFrom = 1,
114
+ NextInputOptions = 2,
115
+ Events = 3,
116
116
  }
117
117
  /**
118
118
  */
package/mons-rust.js CHANGED
@@ -201,37 +201,37 @@ function handleError(f, args) {
201
201
  }
202
202
  /**
203
203
  */
204
- module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
204
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
205
205
  /**
206
206
  */
207
- 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", });
207
+ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
208
208
  /**
209
209
  */
210
- 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", });
210
+ 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", });
211
211
  /**
212
212
  */
213
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
213
+ 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", });
214
214
  /**
215
215
  */
216
- 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", });
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.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
219
+ 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", });
220
220
  /**
221
221
  */
222
- 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", });
222
+ 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", });
223
223
  /**
224
224
  */
225
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
225
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
226
226
  /**
227
227
  */
228
- 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", });
228
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
229
229
  /**
230
230
  */
231
231
  module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
232
232
  /**
233
233
  */
234
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
234
+ module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
235
235
 
236
236
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
237
237
  ? { register: () => {}, unregister: () => {} }
@@ -1204,13 +1204,13 @@ module.exports.__wbg_eventmodel_new = function(arg0) {
1204
1204
  return addHeapObject(ret);
1205
1205
  };
1206
1206
 
1207
- module.exports.__wbg_nextinputmodel_new = function(arg0) {
1208
- const ret = NextInputModel.__wrap(arg0);
1207
+ module.exports.__wbg_location_new = function(arg0) {
1208
+ const ret = Location.__wrap(arg0);
1209
1209
  return addHeapObject(ret);
1210
1210
  };
1211
1211
 
1212
- module.exports.__wbg_location_new = function(arg0) {
1213
- const ret = Location.__wrap(arg0);
1212
+ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1213
+ const ret = NextInputModel.__wrap(arg0);
1214
1214
  return addHeapObject(ret);
1215
1215
  };
1216
1216
 
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.40",
4
+ "version": "0.1.42",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",