mons-rust 0.1.94 → 0.1.97
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 +53 -53
- package/mons-rust.js +16 -16
- package/mons-rust_bg.wasm +0 -0
- package/package.json +1 -1
package/mons-rust.d.ts
CHANGED
|
@@ -10,37 +10,33 @@
|
|
|
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
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
export enum AvailableMoveKind {
|
|
14
|
+
MonMove = 0,
|
|
15
|
+
ManaMove = 1,
|
|
16
|
+
Action = 2,
|
|
17
|
+
Potion = 3,
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
*/
|
|
21
|
-
export enum
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
MonWithConsumable = 3,
|
|
26
|
-
Consumable = 4,
|
|
21
|
+
export enum Modifier {
|
|
22
|
+
SelectPotion = 0,
|
|
23
|
+
SelectBomb = 1,
|
|
24
|
+
Cancel = 2,
|
|
27
25
|
}
|
|
28
26
|
/**
|
|
29
27
|
*/
|
|
30
|
-
export enum
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
MonBase = 5,
|
|
28
|
+
export enum MonKind {
|
|
29
|
+
Demon = 0,
|
|
30
|
+
Drainer = 1,
|
|
31
|
+
Angel = 2,
|
|
32
|
+
Spirit = 3,
|
|
33
|
+
Mystic = 4,
|
|
37
34
|
}
|
|
38
35
|
/**
|
|
39
36
|
*/
|
|
40
|
-
export enum
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
BombOrPotion = 2,
|
|
37
|
+
export enum Color {
|
|
38
|
+
White = 0,
|
|
39
|
+
Black = 1,
|
|
44
40
|
}
|
|
45
41
|
/**
|
|
46
42
|
*/
|
|
@@ -50,9 +46,23 @@ export enum ManaKind {
|
|
|
50
46
|
}
|
|
51
47
|
/**
|
|
52
48
|
*/
|
|
53
|
-
export enum
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
export enum Consumable {
|
|
50
|
+
Potion = 0,
|
|
51
|
+
Bomb = 1,
|
|
52
|
+
BombOrPotion = 2,
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
*/
|
|
56
|
+
export enum NextInputKind {
|
|
57
|
+
MonMove = 0,
|
|
58
|
+
ManaMove = 1,
|
|
59
|
+
MysticAction = 2,
|
|
60
|
+
DemonAction = 3,
|
|
61
|
+
DemonAdditionalStep = 4,
|
|
62
|
+
SpiritTargetCapture = 5,
|
|
63
|
+
SpiritTargetMove = 6,
|
|
64
|
+
SelectConsumable = 7,
|
|
65
|
+
BombAttack = 8,
|
|
56
66
|
}
|
|
57
67
|
/**
|
|
58
68
|
*/
|
|
@@ -80,40 +90,30 @@ export enum EventModelKind {
|
|
|
80
90
|
}
|
|
81
91
|
/**
|
|
82
92
|
*/
|
|
83
|
-
export enum
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
*/
|
|
90
|
-
export enum MonKind {
|
|
91
|
-
Demon = 0,
|
|
92
|
-
Drainer = 1,
|
|
93
|
-
Angel = 2,
|
|
94
|
-
Spirit = 3,
|
|
95
|
-
Mystic = 4,
|
|
93
|
+
export enum OutputModelKind {
|
|
94
|
+
InvalidInput = 0,
|
|
95
|
+
LocationsToStartFrom = 1,
|
|
96
|
+
NextInputOptions = 2,
|
|
97
|
+
Events = 3,
|
|
96
98
|
}
|
|
97
99
|
/**
|
|
98
100
|
*/
|
|
99
|
-
export enum
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
export enum SquareModelKind {
|
|
102
|
+
Regular = 0,
|
|
103
|
+
ConsumableBase = 1,
|
|
104
|
+
SupermanaBase = 2,
|
|
105
|
+
ManaBase = 3,
|
|
106
|
+
ManaPool = 4,
|
|
107
|
+
MonBase = 5,
|
|
104
108
|
}
|
|
105
109
|
/**
|
|
106
110
|
*/
|
|
107
|
-
export enum
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
SpiritTargetCapture = 5,
|
|
114
|
-
SpiritTargetMove = 6,
|
|
115
|
-
SelectConsumable = 7,
|
|
116
|
-
BombAttack = 8,
|
|
111
|
+
export enum ItemModelKind {
|
|
112
|
+
Mon = 0,
|
|
113
|
+
Mana = 1,
|
|
114
|
+
MonWithMana = 2,
|
|
115
|
+
MonWithConsumable = 3,
|
|
116
|
+
Consumable = 4,
|
|
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__h206308f423796301(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.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
243
243
|
/**
|
|
244
244
|
*/
|
|
245
|
-
module.exports.
|
|
245
|
+
module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
246
246
|
/**
|
|
247
247
|
*/
|
|
248
|
-
module.exports.
|
|
248
|
+
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", });
|
|
249
249
|
/**
|
|
250
250
|
*/
|
|
251
|
-
module.exports.
|
|
251
|
+
module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
252
252
|
/**
|
|
253
253
|
*/
|
|
254
254
|
module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
255
255
|
/**
|
|
256
256
|
*/
|
|
257
|
-
module.exports.
|
|
257
|
+
module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
258
258
|
/**
|
|
259
259
|
*/
|
|
260
|
-
module.exports.
|
|
260
|
+
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", });
|
|
261
261
|
/**
|
|
262
262
|
*/
|
|
263
|
-
module.exports.
|
|
263
|
+
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", });
|
|
264
264
|
/**
|
|
265
265
|
*/
|
|
266
|
-
module.exports.
|
|
266
|
+
module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
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: () => {} }
|
|
@@ -1454,13 +1454,13 @@ module.exports.__wbg_outputmodel_new = function(arg0) {
|
|
|
1454
1454
|
return addHeapObject(ret);
|
|
1455
1455
|
};
|
|
1456
1456
|
|
|
1457
|
-
module.exports.
|
|
1458
|
-
const ret =
|
|
1457
|
+
module.exports.__wbg_location_new = function(arg0) {
|
|
1458
|
+
const ret = Location.__wrap(arg0);
|
|
1459
1459
|
return addHeapObject(ret);
|
|
1460
1460
|
};
|
|
1461
1461
|
|
|
1462
|
-
module.exports.
|
|
1463
|
-
const ret =
|
|
1462
|
+
module.exports.__wbg_nextinputmodel_new = function(arg0) {
|
|
1463
|
+
const ret = NextInputModel.__wrap(arg0);
|
|
1464
1464
|
return addHeapObject(ret);
|
|
1465
1465
|
};
|
|
1466
1466
|
|
|
@@ -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_wrapper499 = function(arg0, arg1, arg2) {
|
|
1658
1658
|
const ret = makeMutClosure(arg0, arg1, 20, __wbg_adapter_26);
|
|
1659
1659
|
return addHeapObject(ret);
|
|
1660
1660
|
};
|
package/mons-rust_bg.wasm
CHANGED
|
Binary file
|