mons-rust 0.1.45 → 0.1.46

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,39 +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 MonKind {
14
- Demon = 0,
15
- Drainer = 1,
16
- Angel = 2,
17
- Spirit = 3,
18
- Mystic = 4,
19
- }
20
- /**
21
- */
22
- export enum SquareModelKind {
23
- Regular = 0,
24
- ConsumableBase = 1,
25
- SupermanaBase = 2,
26
- ManaBase = 3,
27
- ManaPool = 4,
28
- MonBase = 5,
29
- }
30
- /**
31
- */
32
- export enum ManaKind {
33
- Regular = 0,
34
- Supermana = 1,
35
- }
36
- /**
37
- */
38
- export enum AvailableMoveKind {
39
- MonMove = 0,
40
- ManaMove = 1,
41
- Action = 2,
42
- Potion = 3,
43
- }
44
- /**
45
- */
46
13
  export enum EventModelKind {
47
14
  MonMove = 0,
48
15
  ManaMove = 1,
@@ -66,13 +33,6 @@ export enum EventModelKind {
66
33
  }
67
34
  /**
68
35
  */
69
- export enum Modifier {
70
- SelectPotion = 0,
71
- SelectBomb = 1,
72
- Cancel = 2,
73
- }
74
- /**
75
- */
76
36
  export enum OutputModelKind {
77
37
  InvalidInput = 0,
78
38
  LocationsToStartFrom = 1,
@@ -81,6 +41,37 @@ export enum OutputModelKind {
81
41
  }
82
42
  /**
83
43
  */
44
+ export enum ManaKind {
45
+ Regular = 0,
46
+ Supermana = 1,
47
+ }
48
+ /**
49
+ */
50
+ export enum Color {
51
+ White = 0,
52
+ Black = 1,
53
+ }
54
+ /**
55
+ */
56
+ export enum MonKind {
57
+ Demon = 0,
58
+ Drainer = 1,
59
+ Angel = 2,
60
+ Spirit = 3,
61
+ Mystic = 4,
62
+ }
63
+ /**
64
+ */
65
+ export enum SquareModelKind {
66
+ Regular = 0,
67
+ ConsumableBase = 1,
68
+ SupermanaBase = 2,
69
+ ManaBase = 3,
70
+ ManaPool = 4,
71
+ MonBase = 5,
72
+ }
73
+ /**
74
+ */
84
75
  export enum Consumable {
85
76
  Potion = 0,
86
77
  Bomb = 1,
@@ -88,6 +79,23 @@ export enum Consumable {
88
79
  }
89
80
  /**
90
81
  */
82
+ export enum ItemModelKind {
83
+ Mon = 0,
84
+ Mana = 1,
85
+ MonWithMana = 2,
86
+ MonWithConsumable = 3,
87
+ Consumable = 4,
88
+ }
89
+ /**
90
+ */
91
+ export enum AvailableMoveKind {
92
+ MonMove = 0,
93
+ ManaMove = 1,
94
+ Action = 2,
95
+ Potion = 3,
96
+ }
97
+ /**
98
+ */
91
99
  export enum NextInputKind {
92
100
  MonMove = 0,
93
101
  ManaMove = 1,
@@ -101,18 +109,10 @@ export enum NextInputKind {
101
109
  }
102
110
  /**
103
111
  */
104
- export enum ItemModelKind {
105
- Mon = 0,
106
- Mana = 1,
107
- MonWithMana = 2,
108
- MonWithConsumable = 3,
109
- Consumable = 4,
110
- }
111
- /**
112
- */
113
- export enum Color {
114
- White = 0,
115
- Black = 1,
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,37 +201,37 @@ function handleError(f, args) {
201
201
  }
202
202
  /**
203
203
  */
204
- 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", });
204
+ 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", });
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.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
208
208
  /**
209
209
  */
210
210
  module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
211
211
  /**
212
212
  */
213
- module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
213
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
214
214
  /**
215
215
  */
216
- 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
+ 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", });
217
217
  /**
218
218
  */
219
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
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", });
220
220
  /**
221
221
  */
222
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
222
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
223
223
  /**
224
224
  */
225
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
225
+ 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", });
226
226
  /**
227
227
  */
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", });
228
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
229
229
  /**
230
230
  */
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", });
231
+ 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", });
232
232
  /**
233
233
  */
234
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
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,8 +1206,8 @@ class SquareModel {
1206
1206
  }
1207
1207
  module.exports.SquareModel = SquareModel;
1208
1208
 
1209
- module.exports.__wbg_location_new = function(arg0) {
1210
- const ret = Location.__wrap(arg0);
1209
+ module.exports.__wbg_eventmodel_new = function(arg0) {
1210
+ const ret = EventModel.__wrap(arg0);
1211
1211
  return addHeapObject(ret);
1212
1212
  };
1213
1213
 
@@ -1216,8 +1216,8 @@ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1216
1216
  return addHeapObject(ret);
1217
1217
  };
1218
1218
 
1219
- module.exports.__wbg_eventmodel_new = function(arg0) {
1220
- const ret = EventModel.__wrap(arg0);
1219
+ module.exports.__wbg_location_new = function(arg0) {
1220
+ const ret = Location.__wrap(arg0);
1221
1221
  return addHeapObject(ret);
1222
1222
  };
1223
1223
 
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.45",
4
+ "version": "0.1.46",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",