mons-web 0.1.44 → 0.1.45
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 +54 -54
- package/mons-web.js +10 -10
- package/mons-web_bg.wasm +0 -0
- package/package.json +1 -1
package/mons-web.d.ts
CHANGED
|
@@ -10,24 +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 SquareModelKind {
|
|
14
|
-
Regular = 0,
|
|
15
|
-
ConsumableBase = 1,
|
|
16
|
-
SupermanaBase = 2,
|
|
17
|
-
ManaBase = 3,
|
|
18
|
-
ManaPool = 4,
|
|
19
|
-
MonBase = 5,
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
*/
|
|
23
|
-
export enum OutputModelKind {
|
|
24
|
-
InvalidInput = 0,
|
|
25
|
-
LocationsToStartFrom = 1,
|
|
26
|
-
NextInputOptions = 2,
|
|
27
|
-
Events = 3,
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
*/
|
|
31
13
|
export enum MonKind {
|
|
32
14
|
Demon = 0,
|
|
33
15
|
Drainer = 1,
|
|
@@ -37,12 +19,50 @@ export enum MonKind {
|
|
|
37
19
|
}
|
|
38
20
|
/**
|
|
39
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
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
*/
|
|
40
45
|
export enum ManaKind {
|
|
41
46
|
Regular = 0,
|
|
42
47
|
Supermana = 1,
|
|
43
48
|
}
|
|
44
49
|
/**
|
|
45
50
|
*/
|
|
51
|
+
export enum AvailableMoveKind {
|
|
52
|
+
MonMove = 0,
|
|
53
|
+
ManaMove = 1,
|
|
54
|
+
Action = 2,
|
|
55
|
+
Potion = 3,
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
*/
|
|
59
|
+
export enum Consumable {
|
|
60
|
+
Potion = 0,
|
|
61
|
+
Bomb = 1,
|
|
62
|
+
BombOrPotion = 2,
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
*/
|
|
46
66
|
export enum NextInputKind {
|
|
47
67
|
MonMove = 0,
|
|
48
68
|
ManaMove = 1,
|
|
@@ -63,11 +83,13 @@ export enum Modifier {
|
|
|
63
83
|
}
|
|
64
84
|
/**
|
|
65
85
|
*/
|
|
66
|
-
export enum
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
86
|
+
export enum SquareModelKind {
|
|
87
|
+
Regular = 0,
|
|
88
|
+
ConsumableBase = 1,
|
|
89
|
+
SupermanaBase = 2,
|
|
90
|
+
ManaBase = 3,
|
|
91
|
+
ManaPool = 4,
|
|
92
|
+
MonBase = 5,
|
|
71
93
|
}
|
|
72
94
|
/**
|
|
73
95
|
*/
|
|
@@ -77,6 +99,14 @@ export enum Color {
|
|
|
77
99
|
}
|
|
78
100
|
/**
|
|
79
101
|
*/
|
|
102
|
+
export enum OutputModelKind {
|
|
103
|
+
InvalidInput = 0,
|
|
104
|
+
LocationsToStartFrom = 1,
|
|
105
|
+
NextInputOptions = 2,
|
|
106
|
+
Events = 3,
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
*/
|
|
80
110
|
export enum ItemModelKind {
|
|
81
111
|
Mon = 0,
|
|
82
112
|
Mana = 1,
|
|
@@ -86,36 +116,6 @@ export enum ItemModelKind {
|
|
|
86
116
|
}
|
|
87
117
|
/**
|
|
88
118
|
*/
|
|
89
|
-
export enum Consumable {
|
|
90
|
-
Potion = 0,
|
|
91
|
-
Bomb = 1,
|
|
92
|
-
BombOrPotion = 2,
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
*/
|
|
96
|
-
export enum EventModelKind {
|
|
97
|
-
MonMove = 0,
|
|
98
|
-
ManaMove = 1,
|
|
99
|
-
ManaScored = 2,
|
|
100
|
-
MysticAction = 3,
|
|
101
|
-
DemonAction = 4,
|
|
102
|
-
DemonAdditionalStep = 5,
|
|
103
|
-
SpiritTargetMove = 6,
|
|
104
|
-
PickupBomb = 7,
|
|
105
|
-
PickupPotion = 8,
|
|
106
|
-
PickupMana = 9,
|
|
107
|
-
MonFainted = 10,
|
|
108
|
-
ManaDropped = 11,
|
|
109
|
-
SupermanaBackToBase = 12,
|
|
110
|
-
BombAttack = 13,
|
|
111
|
-
MonAwake = 14,
|
|
112
|
-
BombExplosion = 15,
|
|
113
|
-
NextTurn = 16,
|
|
114
|
-
GameOver = 17,
|
|
115
|
-
Takeback = 18,
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
*/
|
|
119
119
|
export class EventModel {
|
|
120
120
|
free(): void;
|
|
121
121
|
/**
|
|
@@ -459,6 +459,7 @@ export interface InitOutput {
|
|
|
459
459
|
readonly __wbg_get_location_j: (a: number) => number;
|
|
460
460
|
readonly __wbg_set_location_j: (a: number, b: number) => void;
|
|
461
461
|
readonly location_new: (a: number, b: number) => number;
|
|
462
|
+
readonly winner: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
462
463
|
readonly __wbg_mon_free: (a: number) => void;
|
|
463
464
|
readonly __wbg_get_mon_kind: (a: number) => number;
|
|
464
465
|
readonly __wbg_set_mon_kind: (a: number, b: number) => void;
|
|
@@ -470,7 +471,6 @@ export interface InitOutput {
|
|
|
470
471
|
readonly mon_is_fainted: (a: number) => number;
|
|
471
472
|
readonly mon_faint: (a: number) => void;
|
|
472
473
|
readonly mon_decrease_cooldown: (a: number) => void;
|
|
473
|
-
readonly winner: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
474
474
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
475
475
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
476
476
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
package/mons-web.js
CHANGED
|
@@ -198,16 +198,19 @@ function handleError(f, args) {
|
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
200
200
|
*/
|
|
201
|
-
export const
|
|
201
|
+
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", });
|
|
202
202
|
/**
|
|
203
203
|
*/
|
|
204
|
-
export const
|
|
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", });
|
|
205
205
|
/**
|
|
206
206
|
*/
|
|
207
|
-
export const
|
|
207
|
+
export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
208
208
|
/**
|
|
209
209
|
*/
|
|
210
|
-
export const
|
|
210
|
+
export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
211
|
+
/**
|
|
212
|
+
*/
|
|
213
|
+
export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
211
214
|
/**
|
|
212
215
|
*/
|
|
213
216
|
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", });
|
|
@@ -216,19 +219,16 @@ export const NextInputKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,
|
|
|
216
219
|
export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
217
220
|
/**
|
|
218
221
|
*/
|
|
219
|
-
export const
|
|
222
|
+
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", });
|
|
220
223
|
/**
|
|
221
224
|
*/
|
|
222
225
|
export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
223
226
|
/**
|
|
224
227
|
*/
|
|
225
|
-
export const
|
|
226
|
-
/**
|
|
227
|
-
*/
|
|
228
|
-
export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
228
|
+
export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
229
229
|
/**
|
|
230
230
|
*/
|
|
231
|
-
export const
|
|
231
|
+
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", });
|
|
232
232
|
|
|
233
233
|
const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
234
234
|
? { register: () => {}, unregister: () => {} }
|
package/mons-web_bg.wasm
CHANGED
|
Binary file
|