mons-rust 0.1.24 → 0.1.25

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-web.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 Color {
14
- White = 0,
15
- Black = 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
- export enum ManaKind {
41
- Regular = 0,
42
- Supermana = 1,
43
- }
44
- /**
45
- */
46
13
  export enum EventModelKind {
47
14
  MonMove = 0,
48
15
  ManaMove = 1,
@@ -65,18 +32,22 @@ export enum EventModelKind {
65
32
  }
66
33
  /**
67
34
  */
68
- export enum AvailableMoveKind {
35
+ export enum NextInputKind {
69
36
  MonMove = 0,
70
37
  ManaMove = 1,
71
- Action = 2,
72
- Potion = 3,
38
+ MysticAction = 2,
39
+ DemonAction = 3,
40
+ DemonAdditionalStep = 4,
41
+ SpiritTargetCapture = 5,
42
+ SpiritTargetMove = 6,
43
+ SelectConsumable = 7,
44
+ BombAttack = 8,
73
45
  }
74
46
  /**
75
47
  */
76
- export enum Consumable {
77
- Potion = 0,
78
- Bomb = 1,
79
- BombOrPotion = 2,
48
+ export enum ManaKind {
49
+ Regular = 0,
50
+ Supermana = 1,
80
51
  }
81
52
  /**
82
53
  */
@@ -97,6 +68,35 @@ export enum SquareModelKind {
97
68
  }
98
69
  /**
99
70
  */
71
+ export enum Color {
72
+ White = 0,
73
+ Black = 1,
74
+ }
75
+ /**
76
+ */
77
+ export enum AvailableMoveKind {
78
+ MonMove = 0,
79
+ ManaMove = 1,
80
+ Action = 2,
81
+ Potion = 3,
82
+ }
83
+ /**
84
+ */
85
+ export enum OutputModelKind {
86
+ InvalidInput = 0,
87
+ LocationsToStartFrom = 1,
88
+ NextInputOptions = 2,
89
+ Events = 3,
90
+ }
91
+ /**
92
+ */
93
+ export enum Consumable {
94
+ Potion = 0,
95
+ Bomb = 1,
96
+ BombOrPotion = 2,
97
+ }
98
+ /**
99
+ */
100
100
  export enum ItemModelKind {
101
101
  Mon = 0,
102
102
  Mana = 1,
package/mons-web.js CHANGED
@@ -191,31 +191,31 @@ export function winner(fen_w, fen_b, flat_moves_string_w, flat_moves_string_b) {
191
191
 
192
192
  /**
193
193
  */
194
- export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
194
+ export const 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", });
195
195
  /**
196
196
  */
197
197
  export const 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", });
198
198
  /**
199
199
  */
200
- export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
200
+ export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
201
201
  /**
202
202
  */
203
- export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
203
+ export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
204
204
  /**
205
205
  */
206
- export const 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", });
206
+ export const 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
207
  /**
208
208
  */
209
- export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
209
+ export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
210
210
  /**
211
211
  */
212
- export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
212
+ export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
213
213
  /**
214
214
  */
215
- export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
215
+ export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
216
216
  /**
217
217
  */
218
- export const 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", });
218
+ export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
219
219
  /**
220
220
  */
221
221
  export const ItemModelKind = Object.freeze({ Mon:0,"0":"Mon",Mana:1,"1":"Mana",MonWithMana:2,"2":"MonWithMana",MonWithConsumable:3,"3":"MonWithConsumable",Consumable:4,"4":"Consumable", });
@@ -1149,14 +1149,14 @@ async function __wbg_load(module, imports) {
1149
1149
  function __wbg_get_imports() {
1150
1150
  const imports = {};
1151
1151
  imports.wbg = {};
1152
- imports.wbg.__wbg_nextinputmodel_new = function(arg0) {
1153
- const ret = NextInputModel.__wrap(arg0);
1154
- return addHeapObject(ret);
1155
- };
1156
1152
  imports.wbg.__wbg_eventmodel_new = function(arg0) {
1157
1153
  const ret = EventModel.__wrap(arg0);
1158
1154
  return addHeapObject(ret);
1159
1155
  };
1156
+ imports.wbg.__wbg_nextinputmodel_new = function(arg0) {
1157
+ const ret = NextInputModel.__wrap(arg0);
1158
+ return addHeapObject(ret);
1159
+ };
1160
1160
  imports.wbg.__wbg_location_new = function(arg0) {
1161
1161
  const ret = Location.__wrap(arg0);
1162
1162
  return addHeapObject(ret);
package/mons-web_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.24",
4
+ "version": "0.1.25",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",