mons-rust 0.1.51 → 0.1.52

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,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 NextInputKind {
14
- MonMove = 0,
15
- ManaMove = 1,
16
- MysticAction = 2,
17
- DemonAction = 3,
18
- DemonAdditionalStep = 4,
19
- SpiritTargetCapture = 5,
20
- SpiritTargetMove = 6,
21
- SelectConsumable = 7,
22
- BombAttack = 8,
13
+ export enum OutputModelKind {
14
+ InvalidInput = 0,
15
+ LocationsToStartFrom = 1,
16
+ NextInputOptions = 2,
17
+ Events = 3,
18
+ }
19
+ /**
20
+ */
21
+ export enum MonKind {
22
+ Demon = 0,
23
+ Drainer = 1,
24
+ Angel = 2,
25
+ Spirit = 3,
26
+ Mystic = 4,
27
+ }
28
+ /**
29
+ */
30
+ export enum SquareModelKind {
31
+ Regular = 0,
32
+ ConsumableBase = 1,
33
+ SupermanaBase = 2,
34
+ ManaBase = 3,
35
+ ManaPool = 4,
36
+ MonBase = 5,
37
+ }
38
+ /**
39
+ */
40
+ export enum ManaKind {
41
+ Regular = 0,
42
+ Supermana = 1,
23
43
  }
24
44
  /**
25
45
  */
@@ -46,11 +66,18 @@ export enum EventModelKind {
46
66
  }
47
67
  /**
48
68
  */
49
- export enum OutputModelKind {
50
- InvalidInput = 0,
51
- LocationsToStartFrom = 1,
52
- NextInputOptions = 2,
53
- Events = 3,
69
+ export enum AvailableMoveKind {
70
+ MonMove = 0,
71
+ ManaMove = 1,
72
+ Action = 2,
73
+ Potion = 3,
74
+ }
75
+ /**
76
+ */
77
+ export enum Consumable {
78
+ Potion = 0,
79
+ Bomb = 1,
80
+ BombOrPotion = 2,
54
81
  }
55
82
  /**
56
83
  */
@@ -63,18 +90,22 @@ export enum ItemModelKind {
63
90
  }
64
91
  /**
65
92
  */
66
- export enum Color {
67
- White = 0,
68
- Black = 1,
93
+ export enum NextInputKind {
94
+ MonMove = 0,
95
+ ManaMove = 1,
96
+ MysticAction = 2,
97
+ DemonAction = 3,
98
+ DemonAdditionalStep = 4,
99
+ SpiritTargetCapture = 5,
100
+ SpiritTargetMove = 6,
101
+ SelectConsumable = 7,
102
+ BombAttack = 8,
69
103
  }
70
104
  /**
71
105
  */
72
- export enum MonKind {
73
- Demon = 0,
74
- Drainer = 1,
75
- Angel = 2,
76
- Spirit = 3,
77
- Mystic = 4,
106
+ export enum Color {
107
+ White = 0,
108
+ Black = 1,
78
109
  }
79
110
  /**
80
111
  */
@@ -85,37 +116,6 @@ export enum Modifier {
85
116
  }
86
117
  /**
87
118
  */
88
- export enum ManaKind {
89
- Regular = 0,
90
- Supermana = 1,
91
- }
92
- /**
93
- */
94
- export enum Consumable {
95
- Potion = 0,
96
- Bomb = 1,
97
- BombOrPotion = 2,
98
- }
99
- /**
100
- */
101
- export enum SquareModelKind {
102
- Regular = 0,
103
- ConsumableBase = 1,
104
- SupermanaBase = 2,
105
- ManaBase = 3,
106
- ManaPool = 4,
107
- MonBase = 5,
108
- }
109
- /**
110
- */
111
- export enum AvailableMoveKind {
112
- MonMove = 0,
113
- ManaMove = 1,
114
- Action = 2,
115
- Potion = 3,
116
- }
117
- /**
118
- */
119
119
  export class EventModel {
120
120
  free(): void;
121
121
  /**
package/mons-rust.js CHANGED
@@ -201,37 +201,37 @@ function handleError(f, args) {
201
201
  }
202
202
  /**
203
203
  */
204
- 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", });
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.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", });
207
+ 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", });
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.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", });
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.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
214
214
  /**
215
215
  */
216
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
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", });
217
217
  /**
218
218
  */
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", });
219
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
220
220
  /**
221
221
  */
222
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
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.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
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.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
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.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", });
231
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
232
232
  /**
233
233
  */
234
- module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
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,11 +1206,6 @@ 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);
1211
- return addHeapObject(ret);
1212
- };
1213
-
1214
1209
  module.exports.__wbg_eventmodel_new = function(arg0) {
1215
1210
  const ret = EventModel.__wrap(arg0);
1216
1211
  return addHeapObject(ret);
@@ -1221,6 +1216,11 @@ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1221
1216
  return addHeapObject(ret);
1222
1217
  };
1223
1218
 
1219
+ module.exports.__wbg_location_new = function(arg0) {
1220
+ const ret = Location.__wrap(arg0);
1221
+ return addHeapObject(ret);
1222
+ };
1223
+
1224
1224
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
1225
1225
  takeObject(arg0);
1226
1226
  };
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.51",
4
+ "version": "0.1.52",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",