mons-web 0.1.49 → 0.1.51
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 +40 -40
- package/mons-web.js +14 -14
- package/mons-web_bg.wasm +0 -0
- package/package.json +1 -1
package/mons-web.d.ts
CHANGED
|
@@ -10,6 +10,36 @@
|
|
|
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 NextInputKind {
|
|
14
|
+
MonMove = 0,
|
|
15
|
+
ManaMove = 1,
|
|
16
|
+
MysticAction = 2,
|
|
17
|
+
DemonAction = 3,
|
|
18
|
+
DemonAdditionalStep = 4,
|
|
19
|
+
SpiritTargetCapture = 5,
|
|
20
|
+
SpiritTargetMove = 6,
|
|
21
|
+
SelectConsumable = 7,
|
|
22
|
+
BombAttack = 8,
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
*/
|
|
26
|
+
export enum SquareModelKind {
|
|
27
|
+
Regular = 0,
|
|
28
|
+
ConsumableBase = 1,
|
|
29
|
+
SupermanaBase = 2,
|
|
30
|
+
ManaBase = 3,
|
|
31
|
+
ManaPool = 4,
|
|
32
|
+
MonBase = 5,
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*/
|
|
36
|
+
export enum Modifier {
|
|
37
|
+
SelectPotion = 0,
|
|
38
|
+
SelectBomb = 1,
|
|
39
|
+
Cancel = 2,
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
*/
|
|
13
43
|
export enum EventModelKind {
|
|
14
44
|
MonMove = 0,
|
|
15
45
|
ManaMove = 1,
|
|
@@ -39,21 +69,16 @@ export enum ManaKind {
|
|
|
39
69
|
}
|
|
40
70
|
/**
|
|
41
71
|
*/
|
|
42
|
-
export enum
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
SupermanaBase = 2,
|
|
46
|
-
ManaBase = 3,
|
|
47
|
-
ManaPool = 4,
|
|
48
|
-
MonBase = 5,
|
|
72
|
+
export enum Color {
|
|
73
|
+
White = 0,
|
|
74
|
+
Black = 1,
|
|
49
75
|
}
|
|
50
76
|
/**
|
|
51
77
|
*/
|
|
52
|
-
export enum
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
Potion = 3,
|
|
78
|
+
export enum Consumable {
|
|
79
|
+
Potion = 0,
|
|
80
|
+
Bomb = 1,
|
|
81
|
+
BombOrPotion = 2,
|
|
57
82
|
}
|
|
58
83
|
/**
|
|
59
84
|
*/
|
|
@@ -66,29 +91,11 @@ export enum ItemModelKind {
|
|
|
66
91
|
}
|
|
67
92
|
/**
|
|
68
93
|
*/
|
|
69
|
-
export enum
|
|
94
|
+
export enum AvailableMoveKind {
|
|
70
95
|
MonMove = 0,
|
|
71
96
|
ManaMove = 1,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
DemonAdditionalStep = 4,
|
|
75
|
-
SpiritTargetCapture = 5,
|
|
76
|
-
SpiritTargetMove = 6,
|
|
77
|
-
SelectConsumable = 7,
|
|
78
|
-
BombAttack = 8,
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
*/
|
|
82
|
-
export enum Consumable {
|
|
83
|
-
Potion = 0,
|
|
84
|
-
Bomb = 1,
|
|
85
|
-
BombOrPotion = 2,
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
*/
|
|
89
|
-
export enum Color {
|
|
90
|
-
White = 0,
|
|
91
|
-
Black = 1,
|
|
97
|
+
Action = 2,
|
|
98
|
+
Potion = 3,
|
|
92
99
|
}
|
|
93
100
|
/**
|
|
94
101
|
*/
|
|
@@ -109,13 +116,6 @@ export enum OutputModelKind {
|
|
|
109
116
|
}
|
|
110
117
|
/**
|
|
111
118
|
*/
|
|
112
|
-
export enum Modifier {
|
|
113
|
-
SelectPotion = 0,
|
|
114
|
-
SelectBomb = 1,
|
|
115
|
-
Cancel = 2,
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
*/
|
|
119
119
|
export class EventModel {
|
|
120
120
|
free(): void;
|
|
121
121
|
/**
|
package/mons-web.js
CHANGED
|
@@ -198,37 +198,37 @@ function handleError(f, args) {
|
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
200
200
|
*/
|
|
201
|
-
export const
|
|
201
|
+
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", });
|
|
202
202
|
/**
|
|
203
203
|
*/
|
|
204
|
-
export const
|
|
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
|
|
207
|
+
export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
208
208
|
/**
|
|
209
209
|
*/
|
|
210
|
-
export const
|
|
210
|
+
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", });
|
|
211
211
|
/**
|
|
212
212
|
*/
|
|
213
|
-
export const
|
|
213
|
+
export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
214
214
|
/**
|
|
215
215
|
*/
|
|
216
|
-
export const
|
|
216
|
+
export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
217
217
|
/**
|
|
218
218
|
*/
|
|
219
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
|
|
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
|
|
225
|
+
export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
226
226
|
/**
|
|
227
227
|
*/
|
|
228
|
-
export const
|
|
228
|
+
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", });
|
|
229
229
|
/**
|
|
230
230
|
*/
|
|
231
|
-
export const
|
|
231
|
+
export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
232
232
|
|
|
233
233
|
const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
234
234
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1228,10 +1228,6 @@ async function __wbg_load(module, imports) {
|
|
|
1228
1228
|
function __wbg_get_imports() {
|
|
1229
1229
|
const imports = {};
|
|
1230
1230
|
imports.wbg = {};
|
|
1231
|
-
imports.wbg.__wbg_nextinputmodel_new = function(arg0) {
|
|
1232
|
-
const ret = NextInputModel.__wrap(arg0);
|
|
1233
|
-
return addHeapObject(ret);
|
|
1234
|
-
};
|
|
1235
1231
|
imports.wbg.__wbg_location_new = function(arg0) {
|
|
1236
1232
|
const ret = Location.__wrap(arg0);
|
|
1237
1233
|
return addHeapObject(ret);
|
|
@@ -1240,6 +1236,10 @@ function __wbg_get_imports() {
|
|
|
1240
1236
|
const ret = EventModel.__wrap(arg0);
|
|
1241
1237
|
return addHeapObject(ret);
|
|
1242
1238
|
};
|
|
1239
|
+
imports.wbg.__wbg_nextinputmodel_new = function(arg0) {
|
|
1240
|
+
const ret = NextInputModel.__wrap(arg0);
|
|
1241
|
+
return addHeapObject(ret);
|
|
1242
|
+
};
|
|
1243
1243
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
1244
1244
|
takeObject(arg0);
|
|
1245
1245
|
};
|
package/mons-web_bg.wasm
CHANGED
|
Binary file
|