mons-rust 0.1.128 → 0.1.129

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,16 +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 SquareModelKind {
14
- Regular = 0,
15
- ConsumableBase = 1,
16
- SupermanaBase = 2,
17
- ManaBase = 3,
18
- ManaPool = 4,
19
- MonBase = 5,
20
- }
21
- /**
22
- */
23
13
  export enum OutputModelKind {
24
14
  InvalidInput = 0,
25
15
  LocationsToStartFrom = 1,
@@ -28,42 +18,6 @@ export enum OutputModelKind {
28
18
  }
29
19
  /**
30
20
  */
31
- export enum GameVariant {
32
- Classic = 0,
33
- SwappedManaRows = 1,
34
- }
35
- /**
36
- */
37
- export enum ManaKind {
38
- Regular = 0,
39
- Supermana = 1,
40
- }
41
- /**
42
- */
43
- export enum Color {
44
- White = 0,
45
- Black = 1,
46
- }
47
- /**
48
- */
49
- export enum MonKind {
50
- Demon = 0,
51
- Drainer = 1,
52
- Angel = 2,
53
- Spirit = 3,
54
- Mystic = 4,
55
- }
56
- /**
57
- */
58
- export enum ItemModelKind {
59
- Mon = 0,
60
- Mana = 1,
61
- MonWithMana = 2,
62
- MonWithConsumable = 3,
63
- Consumable = 4,
64
- }
65
- /**
66
- */
67
21
  export enum EventModelKind {
68
22
  MonMove = 0,
69
23
  ManaMove = 1,
@@ -88,6 +42,12 @@ export enum EventModelKind {
88
42
  }
89
43
  /**
90
44
  */
45
+ export enum ManaKind {
46
+ Regular = 0,
47
+ Supermana = 1,
48
+ }
49
+ /**
50
+ */
91
51
  export enum AvailableMoveKind {
92
52
  MonMove = 0,
93
53
  ManaMove = 1,
@@ -103,10 +63,9 @@ export enum Consumable {
103
63
  }
104
64
  /**
105
65
  */
106
- export enum Modifier {
107
- SelectPotion = 0,
108
- SelectBomb = 1,
109
- Cancel = 2,
66
+ export enum Color {
67
+ White = 0,
68
+ Black = 1,
110
69
  }
111
70
  /**
112
71
  */
@@ -123,6 +82,52 @@ export enum NextInputKind {
123
82
  }
124
83
  /**
125
84
  */
85
+ export enum ItemModelKind {
86
+ Mon = 0,
87
+ Mana = 1,
88
+ MonWithMana = 2,
89
+ MonWithConsumable = 3,
90
+ Consumable = 4,
91
+ }
92
+ /**
93
+ */
94
+ export enum GameVariant {
95
+ Classic = 0,
96
+ SwappedManaRows = 1,
97
+ OffsetArcManaRows = 2,
98
+ CenterSpokeManaRows = 3,
99
+ AlternatingManaRows = 4,
100
+ InnerWedgeManaRows = 5,
101
+ OuterWedgeManaRows = 6,
102
+ }
103
+ /**
104
+ */
105
+ export enum Modifier {
106
+ SelectPotion = 0,
107
+ SelectBomb = 1,
108
+ Cancel = 2,
109
+ }
110
+ /**
111
+ */
112
+ export enum SquareModelKind {
113
+ Regular = 0,
114
+ ConsumableBase = 1,
115
+ SupermanaBase = 2,
116
+ ManaBase = 3,
117
+ ManaPool = 4,
118
+ MonBase = 5,
119
+ }
120
+ /**
121
+ */
122
+ export enum MonKind {
123
+ Demon = 0,
124
+ Drainer = 1,
125
+ Angel = 2,
126
+ Spirit = 3,
127
+ Mystic = 4,
128
+ }
129
+ /**
130
+ */
126
131
  export class EventModel {
127
132
  free(): void;
128
133
  /**
package/mons-rust.js CHANGED
@@ -201,40 +201,40 @@ function handleError(f, args) {
201
201
  }
202
202
  /**
203
203
  */
204
- 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", });
205
- /**
206
- */
207
204
  module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
208
205
  /**
209
206
  */
210
- module.exports.GameVariant = Object.freeze({ Classic:0,"0":"Classic",SwappedManaRows:1,"1":"SwappedManaRows", });
207
+ 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", });
211
208
  /**
212
209
  */
213
210
  module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
214
211
  /**
215
212
  */
216
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
213
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
217
214
  /**
218
215
  */
219
- 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.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
220
217
  /**
221
218
  */
222
- 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", });
219
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
223
220
  /**
224
221
  */
225
- 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", });
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", });
226
223
  /**
227
224
  */
228
- module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
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", });
229
226
  /**
230
227
  */
231
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
228
+ module.exports.GameVariant = Object.freeze({ Classic:0,"0":"Classic",SwappedManaRows:1,"1":"SwappedManaRows",OffsetArcManaRows:2,"2":"OffsetArcManaRows",CenterSpokeManaRows:3,"3":"CenterSpokeManaRows",AlternatingManaRows:4,"4":"AlternatingManaRows",InnerWedgeManaRows:5,"5":"InnerWedgeManaRows",OuterWedgeManaRows:6,"6":"OuterWedgeManaRows", });
232
229
  /**
233
230
  */
234
231
  module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
235
232
  /**
236
233
  */
237
- 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", });
234
+ 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", });
235
+ /**
236
+ */
237
+ 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", });
238
238
 
239
239
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
240
240
  ? { register: () => {}, unregister: () => {} }
@@ -1402,13 +1402,13 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
1402
1402
  return addHeapObject(ret);
1403
1403
  };
1404
1404
 
1405
- module.exports.__wbg_location_new = function(arg0) {
1406
- const ret = Location.__wrap(arg0);
1405
+ module.exports.__wbg_eventmodel_new = function(arg0) {
1406
+ const ret = EventModel.__wrap(arg0);
1407
1407
  return addHeapObject(ret);
1408
1408
  };
1409
1409
 
1410
- module.exports.__wbg_eventmodel_new = function(arg0) {
1411
- const ret = EventModel.__wrap(arg0);
1410
+ module.exports.__wbg_location_new = function(arg0) {
1411
+ const ret = Location.__wrap(arg0);
1412
1412
  return addHeapObject(ret);
1413
1413
  };
1414
1414
 
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.128",
4
+ "version": "0.1.129",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",