mons-rust 0.1.87 → 0.1.89
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-rust.d.ts +47 -47
- package/mons-rust.js +18 -18
- package/mons-rust_bg.wasm +0 -0
- package/package.json +1 -1
package/mons-rust.d.ts
CHANGED
|
@@ -10,15 +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 MonKind {
|
|
14
|
-
Demon = 0,
|
|
15
|
-
Drainer = 1,
|
|
16
|
-
Angel = 2,
|
|
17
|
-
Spirit = 3,
|
|
18
|
-
Mystic = 4,
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
*/
|
|
22
13
|
export enum OutputModelKind {
|
|
23
14
|
InvalidInput = 0,
|
|
24
15
|
LocationsToStartFrom = 1,
|
|
@@ -27,16 +18,6 @@ export enum OutputModelKind {
|
|
|
27
18
|
}
|
|
28
19
|
/**
|
|
29
20
|
*/
|
|
30
|
-
export enum SquareModelKind {
|
|
31
|
-
Regular = 0,
|
|
32
|
-
ConsumableBase = 1,
|
|
33
|
-
SupermanaBase = 2,
|
|
34
|
-
ManaBase = 3,
|
|
35
|
-
ManaPool = 4,
|
|
36
|
-
MonBase = 5,
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
*/
|
|
40
21
|
export enum AvailableMoveKind {
|
|
41
22
|
MonMove = 0,
|
|
42
23
|
ManaMove = 1,
|
|
@@ -45,6 +26,34 @@ export enum AvailableMoveKind {
|
|
|
45
26
|
}
|
|
46
27
|
/**
|
|
47
28
|
*/
|
|
29
|
+
export enum Color {
|
|
30
|
+
White = 0,
|
|
31
|
+
Black = 1,
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
*/
|
|
35
|
+
export enum Modifier {
|
|
36
|
+
SelectPotion = 0,
|
|
37
|
+
SelectBomb = 1,
|
|
38
|
+
Cancel = 2,
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
*/
|
|
42
|
+
export enum MonKind {
|
|
43
|
+
Demon = 0,
|
|
44
|
+
Drainer = 1,
|
|
45
|
+
Angel = 2,
|
|
46
|
+
Spirit = 3,
|
|
47
|
+
Mystic = 4,
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
*/
|
|
51
|
+
export enum ManaKind {
|
|
52
|
+
Regular = 0,
|
|
53
|
+
Supermana = 1,
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
*/
|
|
48
57
|
export enum Consumable {
|
|
49
58
|
Potion = 0,
|
|
50
59
|
Bomb = 1,
|
|
@@ -52,6 +61,19 @@ export enum Consumable {
|
|
|
52
61
|
}
|
|
53
62
|
/**
|
|
54
63
|
*/
|
|
64
|
+
export enum NextInputKind {
|
|
65
|
+
MonMove = 0,
|
|
66
|
+
ManaMove = 1,
|
|
67
|
+
MysticAction = 2,
|
|
68
|
+
DemonAction = 3,
|
|
69
|
+
DemonAdditionalStep = 4,
|
|
70
|
+
SpiritTargetCapture = 5,
|
|
71
|
+
SpiritTargetMove = 6,
|
|
72
|
+
SelectConsumable = 7,
|
|
73
|
+
BombAttack = 8,
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
*/
|
|
55
77
|
export enum EventModelKind {
|
|
56
78
|
MonMove = 0,
|
|
57
79
|
ManaMove = 1,
|
|
@@ -76,22 +98,13 @@ export enum EventModelKind {
|
|
|
76
98
|
}
|
|
77
99
|
/**
|
|
78
100
|
*/
|
|
79
|
-
export enum
|
|
80
|
-
White = 0,
|
|
81
|
-
Black = 1,
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
*/
|
|
85
|
-
export enum Modifier {
|
|
86
|
-
SelectPotion = 0,
|
|
87
|
-
SelectBomb = 1,
|
|
88
|
-
Cancel = 2,
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
*/
|
|
92
|
-
export enum ManaKind {
|
|
101
|
+
export enum SquareModelKind {
|
|
93
102
|
Regular = 0,
|
|
94
|
-
|
|
103
|
+
ConsumableBase = 1,
|
|
104
|
+
SupermanaBase = 2,
|
|
105
|
+
ManaBase = 3,
|
|
106
|
+
ManaPool = 4,
|
|
107
|
+
MonBase = 5,
|
|
95
108
|
}
|
|
96
109
|
/**
|
|
97
110
|
*/
|
|
@@ -104,19 +117,6 @@ export enum ItemModelKind {
|
|
|
104
117
|
}
|
|
105
118
|
/**
|
|
106
119
|
*/
|
|
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
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
*/
|
|
120
120
|
export class EventModel {
|
|
121
121
|
free(): void;
|
|
122
122
|
/**
|
package/mons-rust.js
CHANGED
|
@@ -150,7 +150,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
150
150
|
return real;
|
|
151
151
|
}
|
|
152
152
|
function __wbg_adapter_26(arg0, arg1) {
|
|
153
|
-
wasm.
|
|
153
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h507e12568eeae183(arg0, arg1);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
let cachedUint32Memory0 = null;
|
|
@@ -239,37 +239,37 @@ function __wbg_adapter_151(arg0, arg1, arg2, arg3) {
|
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
241
|
*/
|
|
242
|
-
module.exports.
|
|
242
|
+
module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
243
243
|
/**
|
|
244
244
|
*/
|
|
245
|
-
module.exports.
|
|
245
|
+
module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
246
246
|
/**
|
|
247
247
|
*/
|
|
248
|
-
module.exports.
|
|
248
|
+
module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
249
249
|
/**
|
|
250
250
|
*/
|
|
251
|
-
module.exports.
|
|
251
|
+
module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
252
252
|
/**
|
|
253
253
|
*/
|
|
254
|
-
module.exports.
|
|
254
|
+
module.exports.MonKind = Object.freeze({ Demon:0,"0":"Demon",Drainer:1,"1":"Drainer",Angel:2,"2":"Angel",Spirit:3,"3":"Spirit",Mystic:4,"4":"Mystic", });
|
|
255
255
|
/**
|
|
256
256
|
*/
|
|
257
|
-
module.exports.
|
|
257
|
+
module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
258
258
|
/**
|
|
259
259
|
*/
|
|
260
|
-
module.exports.
|
|
260
|
+
module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
261
261
|
/**
|
|
262
262
|
*/
|
|
263
|
-
module.exports.
|
|
263
|
+
module.exports.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", });
|
|
264
264
|
/**
|
|
265
265
|
*/
|
|
266
|
-
module.exports.
|
|
266
|
+
module.exports.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", });
|
|
267
267
|
/**
|
|
268
268
|
*/
|
|
269
|
-
module.exports.
|
|
269
|
+
module.exports.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", });
|
|
270
270
|
/**
|
|
271
271
|
*/
|
|
272
|
-
module.exports.
|
|
272
|
+
module.exports.ItemModelKind = Object.freeze({ Mon:0,"0":"Mon",Mana:1,"1":"Mana",MonWithMana:2,"2":"MonWithMana",MonWithConsumable:3,"3":"MonWithConsumable",Consumable:4,"4":"Consumable", });
|
|
273
273
|
|
|
274
274
|
const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
275
275
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1420,11 +1420,6 @@ module.exports.__wbindgen_number_new = function(arg0) {
|
|
|
1420
1420
|
return addHeapObject(ret);
|
|
1421
1421
|
};
|
|
1422
1422
|
|
|
1423
|
-
module.exports.__wbg_location_new = function(arg0) {
|
|
1424
|
-
const ret = Location.__wrap(arg0);
|
|
1425
|
-
return addHeapObject(ret);
|
|
1426
|
-
};
|
|
1427
|
-
|
|
1428
1423
|
module.exports.__wbg_nextinputmodel_new = function(arg0) {
|
|
1429
1424
|
const ret = NextInputModel.__wrap(arg0);
|
|
1430
1425
|
return addHeapObject(ret);
|
|
@@ -1435,6 +1430,11 @@ module.exports.__wbg_eventmodel_new = function(arg0) {
|
|
|
1435
1430
|
return addHeapObject(ret);
|
|
1436
1431
|
};
|
|
1437
1432
|
|
|
1433
|
+
module.exports.__wbg_location_new = function(arg0) {
|
|
1434
|
+
const ret = Location.__wrap(arg0);
|
|
1435
|
+
return addHeapObject(ret);
|
|
1436
|
+
};
|
|
1437
|
+
|
|
1438
1438
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
1439
1439
|
takeObject(arg0);
|
|
1440
1440
|
};
|
|
@@ -1654,7 +1654,7 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
|
1654
1654
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1655
1655
|
};
|
|
1656
1656
|
|
|
1657
|
-
module.exports.
|
|
1657
|
+
module.exports.__wbindgen_closure_wrapper323 = function(arg0, arg1, arg2) {
|
|
1658
1658
|
const ret = makeMutClosure(arg0, arg1, 16, __wbg_adapter_26);
|
|
1659
1659
|
return addHeapObject(ret);
|
|
1660
1660
|
};
|
package/mons-rust_bg.wasm
CHANGED
|
Binary file
|