mons-rust 0.1.113 → 0.1.114

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,33 +10,6 @@
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 OutputModelKind {
33
- InvalidInput = 0,
34
- LocationsToStartFrom = 1,
35
- NextInputOptions = 2,
36
- Events = 3,
37
- }
38
- /**
39
- */
40
13
  export enum ItemModelKind {
41
14
  Mon = 0,
42
15
  Mana = 1,
@@ -46,20 +19,10 @@ export enum ItemModelKind {
46
19
  }
47
20
  /**
48
21
  */
49
- export enum Consumable {
50
- Potion = 0,
51
- Bomb = 1,
52
- BombOrPotion = 2,
53
- }
54
- /**
55
- */
56
- export enum SquareModelKind {
57
- Regular = 0,
58
- ConsumableBase = 1,
59
- SupermanaBase = 2,
60
- ManaBase = 3,
61
- ManaPool = 4,
62
- MonBase = 5,
22
+ export enum Modifier {
23
+ SelectPotion = 0,
24
+ SelectBomb = 1,
25
+ Cancel = 2,
63
26
  }
64
27
  /**
65
28
  */
@@ -71,12 +34,23 @@ export enum AvailableMoveKind {
71
34
  }
72
35
  /**
73
36
  */
74
- export enum MonKind {
75
- Demon = 0,
76
- Drainer = 1,
77
- Angel = 2,
78
- Spirit = 3,
79
- Mystic = 4,
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 OutputModelKind {
50
+ InvalidInput = 0,
51
+ LocationsToStartFrom = 1,
52
+ NextInputOptions = 2,
53
+ Events = 3,
80
54
  }
81
55
  /**
82
56
  */
@@ -104,16 +78,42 @@ export enum EventModelKind {
104
78
  }
105
79
  /**
106
80
  */
107
- export enum Color {
108
- White = 0,
109
- Black = 1,
81
+ export enum SquareModelKind {
82
+ Regular = 0,
83
+ ConsumableBase = 1,
84
+ SupermanaBase = 2,
85
+ ManaBase = 3,
86
+ ManaPool = 4,
87
+ MonBase = 5,
110
88
  }
111
89
  /**
112
90
  */
113
- export enum Modifier {
114
- SelectPotion = 0,
115
- SelectBomb = 1,
116
- Cancel = 2,
91
+ export enum NextInputKind {
92
+ MonMove = 0,
93
+ ManaMove = 1,
94
+ MysticAction = 2,
95
+ DemonAction = 3,
96
+ DemonAdditionalStep = 4,
97
+ SpiritTargetCapture = 5,
98
+ SpiritTargetMove = 6,
99
+ SelectConsumable = 7,
100
+ BombAttack = 8,
101
+ }
102
+ /**
103
+ */
104
+ export enum Consumable {
105
+ Potion = 0,
106
+ Bomb = 1,
107
+ BombOrPotion = 2,
108
+ }
109
+ /**
110
+ */
111
+ export enum MonKind {
112
+ Demon = 0,
113
+ Drainer = 1,
114
+ Angel = 2,
115
+ Spirit = 3,
116
+ Mystic = 4,
117
117
  }
118
118
  /**
119
119
  */
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.ItemModelKind = Object.freeze({ Mon:0,"0":"Mon",Mana:1,"1":"Mana",MonWithMana:2,"2":"MonWithMana",MonWithConsumable:3,"3":"MonWithConsumable",Consumable:4,"4":"Consumable", });
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.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
208
208
  /**
209
209
  */
210
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
210
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
211
211
  /**
212
212
  */
213
- 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", });
213
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
214
214
  /**
215
215
  */
216
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
216
+ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
217
217
  /**
218
218
  */
219
- 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", });
219
+ module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
220
220
  /**
221
221
  */
222
- module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
222
+ 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", });
223
223
  /**
224
224
  */
225
- 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
+ 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", });
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",UsePotion:19,"19":"UsePotion", });
228
+ 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", });
229
229
  /**
230
230
  */
231
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
231
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
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.MonKind = Object.freeze({ Demon:0,"0":"Demon",Drainer:1,"1":"Drainer",Angel:2,"2":"Angel",Spirit:3,"3":"Spirit",Mystic:4,"4":"Mystic", });
235
235
 
236
236
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
237
237
  ? { register: () => {}, unregister: () => {} }
@@ -1391,13 +1391,13 @@ module.exports.__wbg_outputmodel_new = function(arg0) {
1391
1391
  return addHeapObject(ret);
1392
1392
  };
1393
1393
 
1394
- module.exports.__wbg_location_new = function(arg0) {
1395
- const ret = Location.__wrap(arg0);
1394
+ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1395
+ const ret = NextInputModel.__wrap(arg0);
1396
1396
  return addHeapObject(ret);
1397
1397
  };
1398
1398
 
1399
- module.exports.__wbg_nextinputmodel_new = function(arg0) {
1400
- const ret = NextInputModel.__wrap(arg0);
1399
+ module.exports.__wbg_location_new = function(arg0) {
1400
+ const ret = Location.__wrap(arg0);
1401
1401
  return addHeapObject(ret);
1402
1402
  };
1403
1403
 
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.113",
4
+ "version": "0.1.114",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",