mons-web 0.1.114 → 0.1.116

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,27 +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 OutputModelKind {
14
- InvalidInput = 0,
15
- LocationsToStartFrom = 1,
16
- NextInputOptions = 2,
17
- Events = 3,
18
- }
19
- /**
20
- */
21
- export enum Modifier {
22
- SelectPotion = 0,
23
- SelectBomb = 1,
24
- Cancel = 2,
25
- }
26
- /**
27
- */
28
- export enum Color {
29
- White = 0,
30
- Black = 1,
31
- }
32
- /**
33
- */
34
13
  export enum Consumable {
35
14
  Potion = 0,
36
15
  Bomb = 1,
@@ -38,31 +17,6 @@ export enum Consumable {
38
17
  }
39
18
  /**
40
19
  */
41
- export enum MonKind {
42
- Demon = 0,
43
- Drainer = 1,
44
- Angel = 2,
45
- Spirit = 3,
46
- Mystic = 4,
47
- }
48
- /**
49
- */
50
- export enum SquareModelKind {
51
- Regular = 0,
52
- ConsumableBase = 1,
53
- SupermanaBase = 2,
54
- ManaBase = 3,
55
- ManaPool = 4,
56
- MonBase = 5,
57
- }
58
- /**
59
- */
60
- export enum ManaKind {
61
- Regular = 0,
62
- Supermana = 1,
63
- }
64
- /**
65
- */
66
20
  export enum NextInputKind {
67
21
  MonMove = 0,
68
22
  ManaMove = 1,
@@ -84,12 +38,34 @@ export enum AvailableMoveKind {
84
38
  }
85
39
  /**
86
40
  */
87
- export enum ItemModelKind {
88
- Mon = 0,
89
- Mana = 1,
90
- MonWithMana = 2,
91
- MonWithConsumable = 3,
92
- Consumable = 4,
41
+ export enum ManaKind {
42
+ Regular = 0,
43
+ Supermana = 1,
44
+ }
45
+ /**
46
+ */
47
+ export enum SquareModelKind {
48
+ Regular = 0,
49
+ ConsumableBase = 1,
50
+ SupermanaBase = 2,
51
+ ManaBase = 3,
52
+ ManaPool = 4,
53
+ MonBase = 5,
54
+ }
55
+ /**
56
+ */
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,
93
69
  }
94
70
  /**
95
71
  */
@@ -117,6 +93,30 @@ export enum EventModelKind {
117
93
  }
118
94
  /**
119
95
  */
96
+ export enum OutputModelKind {
97
+ InvalidInput = 0,
98
+ LocationsToStartFrom = 1,
99
+ NextInputOptions = 2,
100
+ Events = 3,
101
+ }
102
+ /**
103
+ */
104
+ export enum ItemModelKind {
105
+ Mon = 0,
106
+ Mana = 1,
107
+ MonWithMana = 2,
108
+ MonWithConsumable = 3,
109
+ Consumable = 4,
110
+ }
111
+ /**
112
+ */
113
+ export enum Modifier {
114
+ SelectPotion = 0,
115
+ SelectBomb = 1,
116
+ Cancel = 2,
117
+ }
118
+ /**
119
+ */
120
120
  export class EventModel {
121
121
  free(): void;
122
122
  /**
@@ -522,12 +522,7 @@ export interface InitOutput {
522
522
  readonly __wbg_get_nextinputmodel_location: (a: number) => number;
523
523
  readonly __wbg_squaremodel_free: (a: number) => void;
524
524
  readonly __wbg_set_nextinputmodel_location: (a: number, b: number) => void;
525
- readonly __wbg_get_location_i: (a: number) => number;
526
- readonly __wbg_get_location_j: (a: number) => number;
527
- readonly __wbg_location_free: (a: number) => void;
528
- readonly __wbg_set_location_i: (a: number, b: number) => void;
529
- readonly __wbg_set_location_j: (a: number, b: number) => void;
530
- readonly location_new: (a: number, b: number) => number;
525
+ readonly winner: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
531
526
  readonly __wbg_get_mon_color: (a: number) => number;
532
527
  readonly __wbg_get_mon_cooldown: (a: number) => number;
533
528
  readonly __wbg_get_mon_kind: (a: number) => number;
@@ -539,7 +534,12 @@ export interface InitOutput {
539
534
  readonly mon_faint: (a: number) => void;
540
535
  readonly mon_is_fainted: (a: number) => number;
541
536
  readonly mon_new: (a: number, b: number, c: number) => number;
542
- readonly winner: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
537
+ readonly __wbg_get_location_i: (a: number) => number;
538
+ readonly __wbg_get_location_j: (a: number) => number;
539
+ readonly __wbg_location_free: (a: number) => void;
540
+ readonly __wbg_set_location_i: (a: number, b: number) => void;
541
+ readonly __wbg_set_location_j: (a: number, b: number) => void;
542
+ readonly location_new: (a: number, b: number) => number;
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
@@ -198,37 +198,37 @@ function handleError(f, args) {
198
198
  }
199
199
  /**
200
200
  */
201
- export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
201
+ export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
202
202
  /**
203
203
  */
204
- export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
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 Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
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 Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
210
+ export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
211
211
  /**
212
212
  */
213
- 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", });
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", });
214
214
  /**
215
215
  */
216
- 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", });
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 ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
219
+ export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
220
220
  /**
221
221
  */
222
- 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", });
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", });
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 OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
226
226
  /**
227
227
  */
228
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", });
229
229
  /**
230
230
  */
231
- 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", });
231
+ export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
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.114",
5
+ "version": "0.1.116",
6
6
  "license": "CC0-1.0",
7
7
  "repository": {
8
8
  "type": "git",