mons-rust 0.1.113 → 0.1.115

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,25 +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
13
  export enum OutputModelKind {
33
14
  InvalidInput = 0,
34
15
  LocationsToStartFrom = 1,
@@ -37,22 +18,6 @@ export enum OutputModelKind {
37
18
  }
38
19
  /**
39
20
  */
40
- export enum ItemModelKind {
41
- Mon = 0,
42
- Mana = 1,
43
- MonWithMana = 2,
44
- MonWithConsumable = 3,
45
- Consumable = 4,
46
- }
47
- /**
48
- */
49
- export enum Consumable {
50
- Potion = 0,
51
- Bomb = 1,
52
- BombOrPotion = 2,
53
- }
54
- /**
55
- */
56
21
  export enum SquareModelKind {
57
22
  Regular = 0,
58
23
  ConsumableBase = 1,
@@ -63,14 +28,6 @@ export enum SquareModelKind {
63
28
  }
64
29
  /**
65
30
  */
66
- export enum AvailableMoveKind {
67
- MonMove = 0,
68
- ManaMove = 1,
69
- Action = 2,
70
- Potion = 3,
71
- }
72
- /**
73
- */
74
31
  export enum MonKind {
75
32
  Demon = 0,
76
33
  Drainer = 1,
@@ -104,6 +61,25 @@ export enum EventModelKind {
104
61
  }
105
62
  /**
106
63
  */
64
+ export enum ManaKind {
65
+ Regular = 0,
66
+ Supermana = 1,
67
+ }
68
+ /**
69
+ */
70
+ export enum NextInputKind {
71
+ MonMove = 0,
72
+ ManaMove = 1,
73
+ MysticAction = 2,
74
+ DemonAction = 3,
75
+ DemonAdditionalStep = 4,
76
+ SpiritTargetCapture = 5,
77
+ SpiritTargetMove = 6,
78
+ SelectConsumable = 7,
79
+ BombAttack = 8,
80
+ }
81
+ /**
82
+ */
107
83
  export enum Color {
108
84
  White = 0,
109
85
  Black = 1,
@@ -117,6 +93,30 @@ export enum Modifier {
117
93
  }
118
94
  /**
119
95
  */
96
+ export enum Consumable {
97
+ Potion = 0,
98
+ Bomb = 1,
99
+ BombOrPotion = 2,
100
+ }
101
+ /**
102
+ */
103
+ export enum ItemModelKind {
104
+ Mon = 0,
105
+ Mana = 1,
106
+ MonWithMana = 2,
107
+ MonWithConsumable = 3,
108
+ Consumable = 4,
109
+ }
110
+ /**
111
+ */
112
+ export enum AvailableMoveKind {
113
+ MonMove = 0,
114
+ ManaMove = 1,
115
+ Action = 2,
116
+ Potion = 3,
117
+ }
118
+ /**
119
+ */
120
120
  export class EventModel {
121
121
  free(): void;
122
122
  /**
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.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
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.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", });
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.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.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.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", });
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.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", });
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.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
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.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
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.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
229
229
  /**
230
230
  */
231
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
231
+ 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", });
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.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
235
235
 
236
236
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
237
237
  ? { register: () => {}, unregister: () => {} }
@@ -1396,13 +1396,13 @@ module.exports.__wbg_location_new = function(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_eventmodel_new = function(arg0) {
1400
+ const ret = EventModel.__wrap(arg0);
1401
1401
  return addHeapObject(ret);
1402
1402
  };
1403
1403
 
1404
- module.exports.__wbg_eventmodel_new = function(arg0) {
1405
- const ret = EventModel.__wrap(arg0);
1404
+ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1405
+ const ret = NextInputModel.__wrap(arg0);
1406
1406
  return addHeapObject(ret);
1407
1407
  };
1408
1408
 
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.115",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",