mons-rust 0.1.37 → 0.1.38

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,6 +10,36 @@
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 AvailableMoveKind {
20
+ MonMove = 0,
21
+ ManaMove = 1,
22
+ Action = 2,
23
+ Potion = 3,
24
+ }
25
+ /**
26
+ */
27
+ export enum Consumable {
28
+ Potion = 0,
29
+ Bomb = 1,
30
+ BombOrPotion = 2,
31
+ }
32
+ /**
33
+ */
34
+ export enum ItemModelKind {
35
+ Mon = 0,
36
+ Mana = 1,
37
+ MonWithMana = 2,
38
+ MonWithConsumable = 3,
39
+ Consumable = 4,
40
+ }
41
+ /**
42
+ */
13
43
  export enum Modifier {
14
44
  SelectPotion = 0,
15
45
  SelectBomb = 1,
@@ -17,6 +47,12 @@ export enum Modifier {
17
47
  }
18
48
  /**
19
49
  */
50
+ export enum Color {
51
+ White = 0,
52
+ Black = 1,
53
+ }
54
+ /**
55
+ */
20
56
  export enum MonKind {
21
57
  Demon = 0,
22
58
  Drainer = 1,
@@ -26,6 +62,14 @@ export enum MonKind {
26
62
  }
27
63
  /**
28
64
  */
65
+ export enum OutputModelKind {
66
+ InvalidInput = 0,
67
+ LocationsToStartFrom = 1,
68
+ NextInputOptions = 2,
69
+ Events = 3,
70
+ }
71
+ /**
72
+ */
29
73
  export enum NextInputKind {
30
74
  MonMove = 0,
31
75
  ManaMove = 1,
@@ -39,37 +83,6 @@ export enum NextInputKind {
39
83
  }
40
84
  /**
41
85
  */
42
- export enum AvailableMoveKind {
43
- MonMove = 0,
44
- ManaMove = 1,
45
- Action = 2,
46
- Potion = 3,
47
- }
48
- /**
49
- */
50
- export enum ManaKind {
51
- Regular = 0,
52
- Supermana = 1,
53
- }
54
- /**
55
- */
56
- export enum Consumable {
57
- Potion = 0,
58
- Bomb = 1,
59
- BombOrPotion = 2,
60
- }
61
- /**
62
- */
63
- export enum SquareModelKind {
64
- Regular = 0,
65
- ConsumableBase = 1,
66
- SupermanaBase = 2,
67
- ManaBase = 3,
68
- ManaPool = 4,
69
- MonBase = 5,
70
- }
71
- /**
72
- */
73
86
  export enum EventModelKind {
74
87
  MonMove = 0,
75
88
  ManaMove = 1,
@@ -93,26 +106,13 @@ export enum EventModelKind {
93
106
  }
94
107
  /**
95
108
  */
96
- export enum Color {
97
- White = 0,
98
- Black = 1,
99
- }
100
- /**
101
- */
102
- export enum OutputModelKind {
103
- InvalidInput = 0,
104
- LocationsToStartFrom = 1,
105
- NextInputOptions = 2,
106
- Events = 3,
107
- }
108
- /**
109
- */
110
- export enum ItemModelKind {
111
- Mon = 0,
112
- Mana = 1,
113
- MonWithMana = 2,
114
- MonWithConsumable = 3,
115
- Consumable = 4,
109
+ export enum SquareModelKind {
110
+ Regular = 0,
111
+ ConsumableBase = 1,
112
+ SupermanaBase = 2,
113
+ ManaBase = 3,
114
+ ManaPool = 4,
115
+ MonBase = 5,
116
116
  }
117
117
  /**
118
118
  */
package/mons-rust.js CHANGED
@@ -194,37 +194,37 @@ module.exports.winner = function(fen_w, fen_b, flat_moves_string_w, flat_moves_s
194
194
 
195
195
  /**
196
196
  */
197
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
197
+ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
198
198
  /**
199
199
  */
200
- 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", });
200
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
201
201
  /**
202
202
  */
203
- 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", });
203
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
204
204
  /**
205
205
  */
206
- module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
206
+ 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", });
207
207
  /**
208
208
  */
209
- module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
209
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
210
210
  /**
211
211
  */
212
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
212
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
213
213
  /**
214
214
  */
215
- 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", });
215
+ 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
216
  /**
217
217
  */
218
- 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", });
218
+ module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
219
219
  /**
220
220
  */
221
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
221
+ 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", });
222
222
  /**
223
223
  */
224
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
224
+ 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", });
225
225
  /**
226
226
  */
227
- 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", });
227
+ 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", });
228
228
 
229
229
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
230
230
  ? { register: () => {}, unregister: () => {} }
@@ -1192,11 +1192,6 @@ class SquareModel {
1192
1192
  }
1193
1193
  module.exports.SquareModel = SquareModel;
1194
1194
 
1195
- module.exports.__wbg_nextinputmodel_new = function(arg0) {
1196
- const ret = NextInputModel.__wrap(arg0);
1197
- return addHeapObject(ret);
1198
- };
1199
-
1200
1195
  module.exports.__wbg_location_new = function(arg0) {
1201
1196
  const ret = Location.__wrap(arg0);
1202
1197
  return addHeapObject(ret);
@@ -1207,6 +1202,11 @@ module.exports.__wbg_eventmodel_new = function(arg0) {
1207
1202
  return addHeapObject(ret);
1208
1203
  };
1209
1204
 
1205
+ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1206
+ const ret = NextInputModel.__wrap(arg0);
1207
+ return addHeapObject(ret);
1208
+ };
1209
+
1210
1210
  module.exports.__wbg_location_unwrap = function(arg0) {
1211
1211
  const ret = Location.__unwrap(takeObject(arg0));
1212
1212
  return ret;
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.37",
4
+ "version": "0.1.38",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",