mons-web 0.1.122 → 0.1.123

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
@@ -19,30 +19,6 @@ export enum ItemModelKind {
19
19
  }
20
20
  /**
21
21
  */
22
- export enum EventModelKind {
23
- MonMove = 0,
24
- ManaMove = 1,
25
- ManaScored = 2,
26
- MysticAction = 3,
27
- DemonAction = 4,
28
- DemonAdditionalStep = 5,
29
- SpiritTargetMove = 6,
30
- PickupBomb = 7,
31
- PickupPotion = 8,
32
- PickupMana = 9,
33
- MonFainted = 10,
34
- ManaDropped = 11,
35
- SupermanaBackToBase = 12,
36
- BombAttack = 13,
37
- MonAwake = 14,
38
- BombExplosion = 15,
39
- NextTurn = 16,
40
- GameOver = 17,
41
- Takeback = 18,
42
- UsePotion = 19,
43
- }
44
- /**
45
- */
46
22
  export enum Modifier {
47
23
  SelectPotion = 0,
48
24
  SelectBomb = 1,
@@ -50,22 +26,38 @@ export enum Modifier {
50
26
  }
51
27
  /**
52
28
  */
29
+ export enum OutputModelKind {
30
+ InvalidInput = 0,
31
+ LocationsToStartFrom = 1,
32
+ NextInputOptions = 2,
33
+ Events = 3,
34
+ }
35
+ /**
36
+ */
53
37
  export enum ManaKind {
54
38
  Regular = 0,
55
39
  Supermana = 1,
56
40
  }
57
41
  /**
58
42
  */
59
- export enum NextInputKind {
43
+ export enum AvailableMoveKind {
60
44
  MonMove = 0,
61
45
  ManaMove = 1,
62
- MysticAction = 2,
63
- DemonAction = 3,
64
- DemonAdditionalStep = 4,
65
- SpiritTargetCapture = 5,
66
- SpiritTargetMove = 6,
67
- SelectConsumable = 7,
68
- BombAttack = 8,
46
+ Action = 2,
47
+ Potion = 3,
48
+ }
49
+ /**
50
+ */
51
+ export enum Color {
52
+ White = 0,
53
+ Black = 1,
54
+ }
55
+ /**
56
+ */
57
+ export enum Consumable {
58
+ Potion = 0,
59
+ Bomb = 1,
60
+ BombOrPotion = 2,
69
61
  }
70
62
  /**
71
63
  */
@@ -78,25 +70,27 @@ export enum MonKind {
78
70
  }
79
71
  /**
80
72
  */
81
- export enum AvailableMoveKind {
73
+ export enum EventModelKind {
82
74
  MonMove = 0,
83
75
  ManaMove = 1,
84
- Action = 2,
85
- Potion = 3,
86
- }
87
- /**
88
- */
89
- export enum Color {
90
- White = 0,
91
- Black = 1,
92
- }
93
- /**
94
- */
95
- export enum OutputModelKind {
96
- InvalidInput = 0,
97
- LocationsToStartFrom = 1,
98
- NextInputOptions = 2,
99
- Events = 3,
76
+ ManaScored = 2,
77
+ MysticAction = 3,
78
+ DemonAction = 4,
79
+ DemonAdditionalStep = 5,
80
+ SpiritTargetMove = 6,
81
+ PickupBomb = 7,
82
+ PickupPotion = 8,
83
+ PickupMana = 9,
84
+ MonFainted = 10,
85
+ ManaDropped = 11,
86
+ SupermanaBackToBase = 12,
87
+ BombAttack = 13,
88
+ MonAwake = 14,
89
+ BombExplosion = 15,
90
+ NextTurn = 16,
91
+ GameOver = 17,
92
+ Takeback = 18,
93
+ UsePotion = 19,
100
94
  }
101
95
  /**
102
96
  */
@@ -110,10 +104,16 @@ export enum SquareModelKind {
110
104
  }
111
105
  /**
112
106
  */
113
- export enum Consumable {
114
- Potion = 0,
115
- Bomb = 1,
116
- BombOrPotion = 2,
107
+ export enum NextInputKind {
108
+ MonMove = 0,
109
+ ManaMove = 1,
110
+ MysticAction = 2,
111
+ DemonAction = 3,
112
+ DemonAdditionalStep = 4,
113
+ SpiritTargetCapture = 5,
114
+ SpiritTargetMove = 6,
115
+ SelectConsumable = 7,
116
+ BombAttack = 8,
117
117
  }
118
118
  /**
119
119
  */
@@ -533,13 +533,13 @@ export interface InitOutput {
533
533
  readonly mon_faint: (a: number) => void;
534
534
  readonly mon_is_fainted: (a: number) => number;
535
535
  readonly mon_new: (a: number, b: number, c: number) => number;
536
- readonly winner: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
537
536
  readonly __wbg_get_location_i: (a: number) => number;
538
537
  readonly __wbg_get_location_j: (a: number) => number;
539
538
  readonly __wbg_location_free: (a: number) => void;
540
539
  readonly __wbg_set_location_i: (a: number, b: number) => void;
541
540
  readonly __wbg_set_location_j: (a: number, b: number) => void;
542
541
  readonly location_new: (a: number, b: number) => number;
542
+ readonly winner: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
543
543
  readonly __wbindgen_malloc: (a: number, b: number) => number;
544
544
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
545
545
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
package/mons-web.js CHANGED
@@ -201,34 +201,34 @@ function handleError(f, args) {
201
201
  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", });
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 Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
205
205
  /**
206
206
  */
207
- export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
207
+ export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
208
208
  /**
209
209
  */
210
210
  export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
211
211
  /**
212
212
  */
213
- 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", });
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 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 Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
217
217
  /**
218
218
  */
219
- export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
219
+ export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
220
220
  /**
221
221
  */
222
- export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
222
+ 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", });
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 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", });
226
226
  /**
227
227
  */
228
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", });
229
229
  /**
230
230
  */
231
- export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
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", });
232
232
 
233
233
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
234
234
  ? { register: () => {}, unregister: () => {} }
@@ -1416,10 +1416,6 @@ function __wbg_get_imports() {
1416
1416
  const ret = getStringFromWasm0(arg0, arg1);
1417
1417
  return addHeapObject(ret);
1418
1418
  };
1419
- imports.wbg.__wbg_location_new = function(arg0) {
1420
- const ret = Location.__wrap(arg0);
1421
- return addHeapObject(ret);
1422
- };
1423
1419
  imports.wbg.__wbg_eventmodel_new = function(arg0) {
1424
1420
  const ret = EventModel.__wrap(arg0);
1425
1421
  return addHeapObject(ret);
@@ -1428,14 +1424,18 @@ function __wbg_get_imports() {
1428
1424
  const ret = NextInputModel.__wrap(arg0);
1429
1425
  return addHeapObject(ret);
1430
1426
  };
1431
- imports.wbg.__wbg_verbosetrackingentitymodel_new = function(arg0) {
1432
- const ret = VerboseTrackingEntityModel.__wrap(arg0);
1427
+ imports.wbg.__wbg_location_new = function(arg0) {
1428
+ const ret = Location.__wrap(arg0);
1433
1429
  return addHeapObject(ret);
1434
1430
  };
1435
1431
  imports.wbg.__wbg_location_unwrap = function(arg0) {
1436
1432
  const ret = Location.__unwrap(takeObject(arg0));
1437
1433
  return ret;
1438
1434
  };
1435
+ imports.wbg.__wbg_verbosetrackingentitymodel_new = function(arg0) {
1436
+ const ret = VerboseTrackingEntityModel.__wrap(arg0);
1437
+ return addHeapObject(ret);
1438
+ };
1439
1439
  imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
1440
1440
  const ret = getObject(arg0).crypto;
1441
1441
  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.122",
5
+ "version": "0.1.123",
6
6
  "license": "CC0-1.0",
7
7
  "repository": {
8
8
  "type": "git",