mons-rust 0.1.89 → 0.1.90
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 +55 -55
- 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,6 +10,30 @@
|
|
|
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 EventModelKind {
|
|
14
|
+
MonMove = 0,
|
|
15
|
+
ManaMove = 1,
|
|
16
|
+
ManaScored = 2,
|
|
17
|
+
MysticAction = 3,
|
|
18
|
+
DemonAction = 4,
|
|
19
|
+
DemonAdditionalStep = 5,
|
|
20
|
+
SpiritTargetMove = 6,
|
|
21
|
+
PickupBomb = 7,
|
|
22
|
+
PickupPotion = 8,
|
|
23
|
+
PickupMana = 9,
|
|
24
|
+
MonFainted = 10,
|
|
25
|
+
ManaDropped = 11,
|
|
26
|
+
SupermanaBackToBase = 12,
|
|
27
|
+
BombAttack = 13,
|
|
28
|
+
MonAwake = 14,
|
|
29
|
+
BombExplosion = 15,
|
|
30
|
+
NextTurn = 16,
|
|
31
|
+
GameOver = 17,
|
|
32
|
+
Takeback = 18,
|
|
33
|
+
UsePotion = 19,
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
*/
|
|
13
37
|
export enum OutputModelKind {
|
|
14
38
|
InvalidInput = 0,
|
|
15
39
|
LocationsToStartFrom = 1,
|
|
@@ -18,6 +42,15 @@ export enum OutputModelKind {
|
|
|
18
42
|
}
|
|
19
43
|
/**
|
|
20
44
|
*/
|
|
45
|
+
export enum ItemModelKind {
|
|
46
|
+
Mon = 0,
|
|
47
|
+
Mana = 1,
|
|
48
|
+
MonWithMana = 2,
|
|
49
|
+
MonWithConsumable = 3,
|
|
50
|
+
Consumable = 4,
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
*/
|
|
21
54
|
export enum AvailableMoveKind {
|
|
22
55
|
MonMove = 0,
|
|
23
56
|
ManaMove = 1,
|
|
@@ -26,12 +59,6 @@ export enum AvailableMoveKind {
|
|
|
26
59
|
}
|
|
27
60
|
/**
|
|
28
61
|
*/
|
|
29
|
-
export enum Color {
|
|
30
|
-
White = 0,
|
|
31
|
-
Black = 1,
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
*/
|
|
35
62
|
export enum Modifier {
|
|
36
63
|
SelectPotion = 0,
|
|
37
64
|
SelectBomb = 1,
|
|
@@ -39,6 +66,19 @@ export enum Modifier {
|
|
|
39
66
|
}
|
|
40
67
|
/**
|
|
41
68
|
*/
|
|
69
|
+
export enum Consumable {
|
|
70
|
+
Potion = 0,
|
|
71
|
+
Bomb = 1,
|
|
72
|
+
BombOrPotion = 2,
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
*/
|
|
76
|
+
export enum ManaKind {
|
|
77
|
+
Regular = 0,
|
|
78
|
+
Supermana = 1,
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
*/
|
|
42
82
|
export enum MonKind {
|
|
43
83
|
Demon = 0,
|
|
44
84
|
Drainer = 1,
|
|
@@ -48,16 +88,13 @@ export enum MonKind {
|
|
|
48
88
|
}
|
|
49
89
|
/**
|
|
50
90
|
*/
|
|
51
|
-
export enum
|
|
91
|
+
export enum SquareModelKind {
|
|
52
92
|
Regular = 0,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
Potion = 0,
|
|
59
|
-
Bomb = 1,
|
|
60
|
-
BombOrPotion = 2,
|
|
93
|
+
ConsumableBase = 1,
|
|
94
|
+
SupermanaBase = 2,
|
|
95
|
+
ManaBase = 3,
|
|
96
|
+
ManaPool = 4,
|
|
97
|
+
MonBase = 5,
|
|
61
98
|
}
|
|
62
99
|
/**
|
|
63
100
|
*/
|
|
@@ -74,46 +111,9 @@ export enum NextInputKind {
|
|
|
74
111
|
}
|
|
75
112
|
/**
|
|
76
113
|
*/
|
|
77
|
-
export enum
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
ManaScored = 2,
|
|
81
|
-
MysticAction = 3,
|
|
82
|
-
DemonAction = 4,
|
|
83
|
-
DemonAdditionalStep = 5,
|
|
84
|
-
SpiritTargetMove = 6,
|
|
85
|
-
PickupBomb = 7,
|
|
86
|
-
PickupPotion = 8,
|
|
87
|
-
PickupMana = 9,
|
|
88
|
-
MonFainted = 10,
|
|
89
|
-
ManaDropped = 11,
|
|
90
|
-
SupermanaBackToBase = 12,
|
|
91
|
-
BombAttack = 13,
|
|
92
|
-
MonAwake = 14,
|
|
93
|
-
BombExplosion = 15,
|
|
94
|
-
NextTurn = 16,
|
|
95
|
-
GameOver = 17,
|
|
96
|
-
Takeback = 18,
|
|
97
|
-
UsePotion = 19,
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
*/
|
|
101
|
-
export enum SquareModelKind {
|
|
102
|
-
Regular = 0,
|
|
103
|
-
ConsumableBase = 1,
|
|
104
|
-
SupermanaBase = 2,
|
|
105
|
-
ManaBase = 3,
|
|
106
|
-
ManaPool = 4,
|
|
107
|
-
MonBase = 5,
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
*/
|
|
111
|
-
export enum ItemModelKind {
|
|
112
|
-
Mon = 0,
|
|
113
|
-
Mana = 1,
|
|
114
|
-
MonWithMana = 2,
|
|
115
|
-
MonWithConsumable = 3,
|
|
116
|
-
Consumable = 4,
|
|
114
|
+
export enum Color {
|
|
115
|
+
White = 0,
|
|
116
|
+
Black = 1,
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
119
|
*/
|
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__hd0d1345cc69f4a11(arg0, arg1);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
let cachedUint32Memory0 = null;
|
|
@@ -237,39 +237,39 @@ function __wbg_adapter_151(arg0, arg1, arg2, arg3) {
|
|
|
237
237
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h6cfc31b0a14c9fbd(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
+
/**
|
|
241
|
+
*/
|
|
242
|
+
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", });
|
|
240
243
|
/**
|
|
241
244
|
*/
|
|
242
245
|
module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
243
246
|
/**
|
|
244
247
|
*/
|
|
245
|
-
module.exports.
|
|
248
|
+
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", });
|
|
246
249
|
/**
|
|
247
250
|
*/
|
|
248
|
-
module.exports.
|
|
251
|
+
module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
249
252
|
/**
|
|
250
253
|
*/
|
|
251
254
|
module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
252
255
|
/**
|
|
253
256
|
*/
|
|
254
|
-
module.exports.
|
|
257
|
+
module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
255
258
|
/**
|
|
256
259
|
*/
|
|
257
260
|
module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
258
261
|
/**
|
|
259
262
|
*/
|
|
260
|
-
module.exports.
|
|
261
|
-
/**
|
|
262
|
-
*/
|
|
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", });
|
|
263
|
+
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", });
|
|
264
264
|
/**
|
|
265
265
|
*/
|
|
266
|
-
module.exports.
|
|
266
|
+
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", });
|
|
267
267
|
/**
|
|
268
268
|
*/
|
|
269
|
-
module.exports.
|
|
269
|
+
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", });
|
|
270
270
|
/**
|
|
271
271
|
*/
|
|
272
|
-
module.exports.
|
|
272
|
+
module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
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_nextinputmodel_new = function(arg0) {
|
|
1424
|
-
const ret = NextInputModel.__wrap(arg0);
|
|
1425
|
-
return addHeapObject(ret);
|
|
1426
|
-
};
|
|
1427
|
-
|
|
1428
1423
|
module.exports.__wbg_eventmodel_new = function(arg0) {
|
|
1429
1424
|
const ret = EventModel.__wrap(arg0);
|
|
1430
1425
|
return addHeapObject(ret);
|
|
@@ -1435,6 +1430,11 @@ module.exports.__wbg_location_new = function(arg0) {
|
|
|
1435
1430
|
return addHeapObject(ret);
|
|
1436
1431
|
};
|
|
1437
1432
|
|
|
1433
|
+
module.exports.__wbg_nextinputmodel_new = function(arg0) {
|
|
1434
|
+
const ret = NextInputModel.__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,8 +1654,8 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
|
1654
1654
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1655
1655
|
};
|
|
1656
1656
|
|
|
1657
|
-
module.exports.
|
|
1658
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1657
|
+
module.exports.__wbindgen_closure_wrapper389 = function(arg0, arg1, arg2) {
|
|
1658
|
+
const ret = makeMutClosure(arg0, arg1, 21, __wbg_adapter_26);
|
|
1659
1659
|
return addHeapObject(ret);
|
|
1660
1660
|
};
|
|
1661
1661
|
|
package/mons-rust_bg.wasm
CHANGED
|
Binary file
|