mons-web 0.1.49 → 0.1.50
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 +56 -56
- 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,42 @@
|
|
|
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 MonKind {
|
|
14
|
+
Demon = 0,
|
|
15
|
+
Drainer = 1,
|
|
16
|
+
Angel = 2,
|
|
17
|
+
Spirit = 3,
|
|
18
|
+
Mystic = 4,
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*/
|
|
22
|
+
export enum Color {
|
|
23
|
+
White = 0,
|
|
24
|
+
Black = 1,
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
*/
|
|
28
|
+
export enum NextInputKind {
|
|
29
|
+
MonMove = 0,
|
|
30
|
+
ManaMove = 1,
|
|
31
|
+
MysticAction = 2,
|
|
32
|
+
DemonAction = 3,
|
|
33
|
+
DemonAdditionalStep = 4,
|
|
34
|
+
SpiritTargetCapture = 5,
|
|
35
|
+
SpiritTargetMove = 6,
|
|
36
|
+
SelectConsumable = 7,
|
|
37
|
+
BombAttack = 8,
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
*/
|
|
41
|
+
export enum OutputModelKind {
|
|
42
|
+
InvalidInput = 0,
|
|
43
|
+
LocationsToStartFrom = 1,
|
|
44
|
+
NextInputOptions = 2,
|
|
45
|
+
Events = 3,
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
*/
|
|
13
49
|
export enum EventModelKind {
|
|
14
50
|
MonMove = 0,
|
|
15
51
|
ManaMove = 1,
|
|
@@ -39,21 +75,10 @@ export enum ManaKind {
|
|
|
39
75
|
}
|
|
40
76
|
/**
|
|
41
77
|
*/
|
|
42
|
-
export enum
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
ManaBase = 3,
|
|
47
|
-
ManaPool = 4,
|
|
48
|
-
MonBase = 5,
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
*/
|
|
52
|
-
export enum AvailableMoveKind {
|
|
53
|
-
MonMove = 0,
|
|
54
|
-
ManaMove = 1,
|
|
55
|
-
Action = 2,
|
|
56
|
-
Potion = 3,
|
|
78
|
+
export enum Consumable {
|
|
79
|
+
Potion = 0,
|
|
80
|
+
Bomb = 1,
|
|
81
|
+
BombOrPotion = 2,
|
|
57
82
|
}
|
|
58
83
|
/**
|
|
59
84
|
*/
|
|
@@ -66,53 +91,28 @@ export enum ItemModelKind {
|
|
|
66
91
|
}
|
|
67
92
|
/**
|
|
68
93
|
*/
|
|
69
|
-
export enum
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
DemonAction = 3,
|
|
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,
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
*/
|
|
95
|
-
export enum MonKind {
|
|
96
|
-
Demon = 0,
|
|
97
|
-
Drainer = 1,
|
|
98
|
-
Angel = 2,
|
|
99
|
-
Spirit = 3,
|
|
100
|
-
Mystic = 4,
|
|
94
|
+
export enum Modifier {
|
|
95
|
+
SelectPotion = 0,
|
|
96
|
+
SelectBomb = 1,
|
|
97
|
+
Cancel = 2,
|
|
101
98
|
}
|
|
102
99
|
/**
|
|
103
100
|
*/
|
|
104
|
-
export enum
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
101
|
+
export enum SquareModelKind {
|
|
102
|
+
Regular = 0,
|
|
103
|
+
ConsumableBase = 1,
|
|
104
|
+
SupermanaBase = 2,
|
|
105
|
+
ManaBase = 3,
|
|
106
|
+
ManaPool = 4,
|
|
107
|
+
MonBase = 5,
|
|
109
108
|
}
|
|
110
109
|
/**
|
|
111
110
|
*/
|
|
112
|
-
export enum
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
export enum AvailableMoveKind {
|
|
112
|
+
MonMove = 0,
|
|
113
|
+
ManaMove = 1,
|
|
114
|
+
Action = 2,
|
|
115
|
+
Potion = 3,
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
118
|
*/
|
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 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 Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
205
205
|
/**
|
|
206
206
|
*/
|
|
207
|
-
export const
|
|
207
|
+
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", });
|
|
208
208
|
/**
|
|
209
209
|
*/
|
|
210
|
-
export const
|
|
210
|
+
export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
211
211
|
/**
|
|
212
212
|
*/
|
|
213
|
-
export const
|
|
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", });
|
|
214
214
|
/**
|
|
215
215
|
*/
|
|
216
|
-
export const
|
|
216
|
+
export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
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 Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
226
226
|
/**
|
|
227
227
|
*/
|
|
228
|
-
export const
|
|
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
|
|
231
|
+
export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
232
232
|
|
|
233
233
|
const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
234
234
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1232,14 +1232,14 @@ function __wbg_get_imports() {
|
|
|
1232
1232
|
const ret = NextInputModel.__wrap(arg0);
|
|
1233
1233
|
return addHeapObject(ret);
|
|
1234
1234
|
};
|
|
1235
|
-
imports.wbg.__wbg_location_new = function(arg0) {
|
|
1236
|
-
const ret = Location.__wrap(arg0);
|
|
1237
|
-
return addHeapObject(ret);
|
|
1238
|
-
};
|
|
1239
1235
|
imports.wbg.__wbg_eventmodel_new = function(arg0) {
|
|
1240
1236
|
const ret = EventModel.__wrap(arg0);
|
|
1241
1237
|
return addHeapObject(ret);
|
|
1242
1238
|
};
|
|
1239
|
+
imports.wbg.__wbg_location_new = function(arg0) {
|
|
1240
|
+
const ret = Location.__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
|