mons-web 0.1.120 → 0.1.121

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,41 +10,62 @@
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 Modifier {
14
+ SelectPotion = 0,
15
+ SelectBomb = 1,
16
+ Cancel = 2,
17
+ }
18
+ /**
19
+ */
20
+ export enum SquareModelKind {
21
+ Regular = 0,
22
+ ConsumableBase = 1,
23
+ SupermanaBase = 2,
24
+ ManaBase = 3,
25
+ ManaPool = 4,
26
+ MonBase = 5,
27
+ }
28
+ /**
29
+ */
13
30
  export enum Color {
14
31
  White = 0,
15
32
  Black = 1,
16
33
  }
17
34
  /**
18
35
  */
19
- export enum ItemModelKind {
20
- Mon = 0,
21
- Mana = 1,
22
- MonWithMana = 2,
23
- MonWithConsumable = 3,
24
- Consumable = 4,
36
+ export enum NextInputKind {
37
+ MonMove = 0,
38
+ ManaMove = 1,
39
+ MysticAction = 2,
40
+ DemonAction = 3,
41
+ DemonAdditionalStep = 4,
42
+ SpiritTargetCapture = 5,
43
+ SpiritTargetMove = 6,
44
+ SelectConsumable = 7,
45
+ BombAttack = 8,
25
46
  }
26
47
  /**
27
48
  */
28
- export enum ManaKind {
29
- Regular = 0,
30
- Supermana = 1,
49
+ export enum AvailableMoveKind {
50
+ MonMove = 0,
51
+ ManaMove = 1,
52
+ Action = 2,
53
+ Potion = 3,
31
54
  }
32
55
  /**
33
56
  */
34
- export enum SquareModelKind {
35
- Regular = 0,
36
- ConsumableBase = 1,
37
- SupermanaBase = 2,
38
- ManaBase = 3,
39
- ManaPool = 4,
40
- MonBase = 5,
57
+ export enum MonKind {
58
+ Demon = 0,
59
+ Drainer = 1,
60
+ Angel = 2,
61
+ Spirit = 3,
62
+ Mystic = 4,
41
63
  }
42
64
  /**
43
65
  */
44
- export enum Modifier {
45
- SelectPotion = 0,
46
- SelectBomb = 1,
47
- Cancel = 2,
66
+ export enum ManaKind {
67
+ Regular = 0,
68
+ Supermana = 1,
48
69
  }
49
70
  /**
50
71
  */
@@ -56,6 +77,15 @@ export enum OutputModelKind {
56
77
  }
57
78
  /**
58
79
  */
80
+ export enum ItemModelKind {
81
+ Mon = 0,
82
+ Mana = 1,
83
+ MonWithMana = 2,
84
+ MonWithConsumable = 3,
85
+ Consumable = 4,
86
+ }
87
+ /**
88
+ */
59
89
  export enum EventModelKind {
60
90
  MonMove = 0,
61
91
  ManaMove = 1,
@@ -87,36 +117,6 @@ export enum Consumable {
87
117
  }
88
118
  /**
89
119
  */
90
- export enum AvailableMoveKind {
91
- MonMove = 0,
92
- ManaMove = 1,
93
- Action = 2,
94
- Potion = 3,
95
- }
96
- /**
97
- */
98
- export enum NextInputKind {
99
- MonMove = 0,
100
- ManaMove = 1,
101
- MysticAction = 2,
102
- DemonAction = 3,
103
- DemonAdditionalStep = 4,
104
- SpiritTargetCapture = 5,
105
- SpiritTargetMove = 6,
106
- SelectConsumable = 7,
107
- BombAttack = 8,
108
- }
109
- /**
110
- */
111
- export enum MonKind {
112
- Demon = 0,
113
- Drainer = 1,
114
- Angel = 2,
115
- Spirit = 3,
116
- Mystic = 4,
117
- }
118
- /**
119
- */
120
120
  export class EventModel {
121
121
  free(): void;
122
122
  /**
package/mons-web.js CHANGED
@@ -198,37 +198,37 @@ function handleError(f, args) {
198
198
  }
199
199
  /**
200
200
  */
201
- export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
201
+ export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
202
202
  /**
203
203
  */
204
- 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", });
204
+ 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", });
205
205
  /**
206
206
  */
207
- export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
207
+ export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
208
208
  /**
209
209
  */
210
- 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", });
210
+ 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", });
211
211
  /**
212
212
  */
213
- export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
213
+ export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
214
214
  /**
215
215
  */
216
- export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
216
+ export const 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
- 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",Takeback:18,"18":"Takeback",UsePotion:19,"19":"UsePotion", });
219
+ export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
220
220
  /**
221
221
  */
222
- export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
222
+ export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
223
223
  /**
224
224
  */
225
- export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
225
+ 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", });
226
226
  /**
227
227
  */
228
- 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", });
228
+ 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",Takeback:18,"18":"Takeback",UsePotion:19,"19":"UsePotion", });
229
229
  /**
230
230
  */
231
- export const MonKind = Object.freeze({ Demon:0,"0":"Demon",Drainer:1,"1":"Drainer",Angel:2,"2":"Angel",Spirit:3,"3":"Spirit",Mystic:4,"4":"Mystic", });
231
+ export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
232
232
 
233
233
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
234
234
  ? { register: () => {}, unregister: () => {} }
@@ -1413,14 +1413,14 @@ function __wbg_get_imports() {
1413
1413
  const ret = NextInputModel.__wrap(arg0);
1414
1414
  return addHeapObject(ret);
1415
1415
  };
1416
- imports.wbg.__wbg_location_new = function(arg0) {
1417
- const ret = Location.__wrap(arg0);
1418
- return addHeapObject(ret);
1419
- };
1420
1416
  imports.wbg.__wbg_eventmodel_new = function(arg0) {
1421
1417
  const ret = EventModel.__wrap(arg0);
1422
1418
  return addHeapObject(ret);
1423
1419
  };
1420
+ imports.wbg.__wbg_location_new = function(arg0) {
1421
+ const ret = Location.__wrap(arg0);
1422
+ return addHeapObject(ret);
1423
+ };
1424
1424
  imports.wbg.__wbg_verbosetrackingentitymodel_new = function(arg0) {
1425
1425
  const ret = VerboseTrackingEntityModel.__wrap(arg0);
1426
1426
  return addHeapObject(ret);
package/mons-web_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "mons-web",
3
3
  "type": "module",
4
4
  "description": "super metal mons",
5
- "version": "0.1.120",
5
+ "version": "0.1.121",
6
6
  "license": "CC0-1.0",
7
7
  "repository": {
8
8
  "type": "git",