mons-web 0.1.116 → 0.1.118

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,10 +10,9 @@
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 Consumable {
14
- Potion = 0,
15
- Bomb = 1,
16
- BombOrPotion = 2,
13
+ export enum ManaKind {
14
+ Regular = 0,
15
+ Supermana = 1,
17
16
  }
18
17
  /**
19
18
  */
@@ -30,20 +29,6 @@ export enum NextInputKind {
30
29
  }
31
30
  /**
32
31
  */
33
- export enum AvailableMoveKind {
34
- MonMove = 0,
35
- ManaMove = 1,
36
- Action = 2,
37
- Potion = 3,
38
- }
39
- /**
40
- */
41
- export enum ManaKind {
42
- Regular = 0,
43
- Supermana = 1,
44
- }
45
- /**
46
- */
47
32
  export enum SquareModelKind {
48
33
  Regular = 0,
49
34
  ConsumableBase = 1,
@@ -54,18 +39,11 @@ export enum SquareModelKind {
54
39
  }
55
40
  /**
56
41
  */
57
- export enum MonKind {
58
- Demon = 0,
59
- Drainer = 1,
60
- Angel = 2,
61
- Spirit = 3,
62
- Mystic = 4,
63
- }
64
- /**
65
- */
66
- export enum Color {
67
- White = 0,
68
- Black = 1,
42
+ export enum OutputModelKind {
43
+ InvalidInput = 0,
44
+ LocationsToStartFrom = 1,
45
+ NextInputOptions = 2,
46
+ Events = 3,
69
47
  }
70
48
  /**
71
49
  */
@@ -93,11 +71,25 @@ export enum EventModelKind {
93
71
  }
94
72
  /**
95
73
  */
96
- export enum OutputModelKind {
97
- InvalidInput = 0,
98
- LocationsToStartFrom = 1,
99
- NextInputOptions = 2,
100
- Events = 3,
74
+ export enum Consumable {
75
+ Potion = 0,
76
+ Bomb = 1,
77
+ BombOrPotion = 2,
78
+ }
79
+ /**
80
+ */
81
+ export enum Modifier {
82
+ SelectPotion = 0,
83
+ SelectBomb = 1,
84
+ Cancel = 2,
85
+ }
86
+ /**
87
+ */
88
+ export enum AvailableMoveKind {
89
+ MonMove = 0,
90
+ ManaMove = 1,
91
+ Action = 2,
92
+ Potion = 3,
101
93
  }
102
94
  /**
103
95
  */
@@ -110,10 +102,18 @@ export enum ItemModelKind {
110
102
  }
111
103
  /**
112
104
  */
113
- export enum Modifier {
114
- SelectPotion = 0,
115
- SelectBomb = 1,
116
- Cancel = 2,
105
+ export enum Color {
106
+ White = 0,
107
+ Black = 1,
108
+ }
109
+ /**
110
+ */
111
+ export enum MonKind {
112
+ Demon = 0,
113
+ Drainer = 1,
114
+ Angel = 2,
115
+ Spirit = 3,
116
+ Mystic = 4,
117
117
  }
118
118
  /**
119
119
  */
package/mons-web.js CHANGED
@@ -198,37 +198,37 @@ function handleError(f, args) {
198
198
  }
199
199
  /**
200
200
  */
201
- export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
201
+ export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
202
202
  /**
203
203
  */
204
204
  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", });
205
205
  /**
206
206
  */
207
- export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
207
+ 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", });
208
208
  /**
209
209
  */
210
- export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
210
+ export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
211
211
  /**
212
212
  */
213
- 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", });
213
+ 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", });
214
214
  /**
215
215
  */
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", });
216
+ export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
217
217
  /**
218
218
  */
219
- export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
219
+ export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
220
220
  /**
221
221
  */
222
- 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", });
222
+ export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
223
223
  /**
224
224
  */
225
- export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
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 ItemModelKind = Object.freeze({ Mon:0,"0":"Mon",Mana:1,"1":"Mana",MonWithMana:2,"2":"MonWithMana",MonWithConsumable:3,"3":"MonWithConsumable",Consumable:4,"4":"Consumable", });
228
+ export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
229
229
  /**
230
230
  */
231
- export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
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", });
232
232
 
233
233
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
234
234
  ? { register: () => {}, unregister: () => {} }
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.116",
5
+ "version": "0.1.118",
6
6
  "license": "CC0-1.0",
7
7
  "repository": {
8
8
  "type": "git",