mons-web 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-web.d.ts CHANGED
@@ -16,6 +16,33 @@ export enum ManaKind {
16
16
  }
17
17
  /**
18
18
  */
19
+ export enum SquareModelKind {
20
+ Regular = 0,
21
+ ConsumableBase = 1,
22
+ SupermanaBase = 2,
23
+ ManaBase = 3,
24
+ ManaPool = 4,
25
+ MonBase = 5,
26
+ }
27
+ /**
28
+ */
29
+ export enum AvailableMoveKind {
30
+ MonMove = 0,
31
+ ManaMove = 1,
32
+ Action = 2,
33
+ Potion = 3,
34
+ }
35
+ /**
36
+ */
37
+ export enum MonKind {
38
+ Demon = 0,
39
+ Drainer = 1,
40
+ Angel = 2,
41
+ Spirit = 3,
42
+ Mystic = 4,
43
+ }
44
+ /**
45
+ */
19
46
  export enum EventModelKind {
20
47
  MonMove = 0,
21
48
  ManaMove = 1,
@@ -40,39 +67,11 @@ export enum EventModelKind {
40
67
  }
41
68
  /**
42
69
  */
43
- export enum Consumable {
44
- Potion = 0,
45
- Bomb = 1,
46
- BombOrPotion = 2,
47
- }
48
- /**
49
- */
50
- export enum ItemModelKind {
51
- Mon = 0,
52
- Mana = 1,
53
- MonWithMana = 2,
54
- MonWithConsumable = 3,
55
- Consumable = 4,
56
- }
57
- /**
58
- */
59
- export enum GameVariant {
60
- Classic = 0,
61
- SwappedManaRows = 1,
62
- }
63
- /**
64
- */
65
- export enum AvailableMoveKind {
66
- MonMove = 0,
67
- ManaMove = 1,
68
- Action = 2,
69
- Potion = 3,
70
- }
71
- /**
72
- */
73
- export enum Color {
74
- White = 0,
75
- Black = 1,
70
+ export enum OutputModelKind {
71
+ InvalidInput = 0,
72
+ LocationsToStartFrom = 1,
73
+ NextInputOptions = 2,
74
+ Events = 3,
76
75
  }
77
76
  /**
78
77
  */
@@ -83,22 +82,12 @@ export enum Modifier {
83
82
  }
84
83
  /**
85
84
  */
86
- export enum MonKind {
87
- Demon = 0,
88
- Drainer = 1,
89
- Angel = 2,
90
- Spirit = 3,
91
- Mystic = 4,
92
- }
93
- /**
94
- */
95
- export enum SquareModelKind {
96
- Regular = 0,
97
- ConsumableBase = 1,
98
- SupermanaBase = 2,
99
- ManaBase = 3,
100
- ManaPool = 4,
101
- MonBase = 5,
85
+ export enum ItemModelKind {
86
+ Mon = 0,
87
+ Mana = 1,
88
+ MonWithMana = 2,
89
+ MonWithConsumable = 3,
90
+ Consumable = 4,
102
91
  }
103
92
  /**
104
93
  */
@@ -115,11 +104,27 @@ export enum NextInputKind {
115
104
  }
116
105
  /**
117
106
  */
118
- export enum OutputModelKind {
119
- InvalidInput = 0,
120
- LocationsToStartFrom = 1,
121
- NextInputOptions = 2,
122
- Events = 3,
107
+ export enum Consumable {
108
+ Potion = 0,
109
+ Bomb = 1,
110
+ BombOrPotion = 2,
111
+ }
112
+ /**
113
+ */
114
+ export enum GameVariant {
115
+ Classic = 0,
116
+ SwappedManaRows = 1,
117
+ OffsetArcManaRows = 2,
118
+ CenterSpokeManaRows = 3,
119
+ AlternatingManaRows = 4,
120
+ InnerWedgeManaRows = 5,
121
+ OuterWedgeManaRows = 6,
122
+ }
123
+ /**
124
+ */
125
+ export enum Color {
126
+ White = 0,
127
+ Black = 1,
123
128
  }
124
129
  /**
125
130
  */
@@ -530,7 +535,6 @@ export interface InitOutput {
530
535
  readonly __wbg_set_nextinputmodel_location: (a: number, b: number) => void;
531
536
  readonly __wbg_get_nextinputmodel_location: (a: number) => number;
532
537
  readonly __wbg_squaremodel_free: (a: number) => void;
533
- readonly winner: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
534
538
  readonly __wbg_get_location_i: (a: number) => number;
535
539
  readonly __wbg_get_location_j: (a: number) => number;
536
540
  readonly __wbg_get_mon_color: (a: number) => number;
@@ -548,6 +552,7 @@ export interface InitOutput {
548
552
  readonly location_new: (a: number, b: number) => number;
549
553
  readonly __wbg_set_mon_cooldown: (a: number, b: number) => void;
550
554
  readonly __wbg_get_mon_cooldown: (a: number) => number;
555
+ readonly winner: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
551
556
  readonly __wbindgen_malloc: (a: number, b: number) => number;
552
557
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
553
558
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
package/mons-web.js CHANGED
@@ -201,37 +201,37 @@ function handleError(f, args) {
201
201
  export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
202
202
  /**
203
203
  */
204
- 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", });
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 Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
207
+ export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
208
208
  /**
209
209
  */
210
- 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", });
210
+ 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", });
211
211
  /**
212
212
  */
213
- export const GameVariant = Object.freeze({ Classic:0,"0":"Classic",SwappedManaRows:1,"1":"SwappedManaRows", });
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 AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
216
+ export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
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 Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
222
+ 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", });
223
223
  /**
224
224
  */
225
- 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", });
225
+ 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", });
226
226
  /**
227
227
  */
228
- 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", });
228
+ export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
229
229
  /**
230
230
  */
231
- 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", });
231
+ export const 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
232
  /**
233
233
  */
234
- export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
234
+ export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
235
235
 
236
236
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
237
237
  ? { register: () => {}, unregister: () => {} }
@@ -1421,14 +1421,14 @@ function __wbg_get_imports() {
1421
1421
  const ret = getStringFromWasm0(arg0, arg1);
1422
1422
  return addHeapObject(ret);
1423
1423
  };
1424
- imports.wbg.__wbg_location_new = function(arg0) {
1425
- const ret = Location.__wrap(arg0);
1426
- return addHeapObject(ret);
1427
- };
1428
1424
  imports.wbg.__wbg_eventmodel_new = function(arg0) {
1429
1425
  const ret = EventModel.__wrap(arg0);
1430
1426
  return addHeapObject(ret);
1431
1427
  };
1428
+ imports.wbg.__wbg_location_new = function(arg0) {
1429
+ const ret = Location.__wrap(arg0);
1430
+ return addHeapObject(ret);
1431
+ };
1432
1432
  imports.wbg.__wbg_nextinputmodel_new = function(arg0) {
1433
1433
  const ret = NextInputModel.__wrap(arg0);
1434
1434
  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.128",
5
+ "version": "0.1.129",
6
6
  "license": "CC0-1.0",
7
7
  "repository": {
8
8
  "type": "git",