mons-rust 0.1.90 → 0.1.91
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 +52 -52
- package/mons-rust.js +19 -19
- package/mons-rust_bg.wasm +0 -0
- package/package.json +1 -1
package/mons-rust.d.ts
CHANGED
|
@@ -10,6 +10,41 @@
|
|
|
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 Consumable {
|
|
14
|
+
Potion = 0,
|
|
15
|
+
Bomb = 1,
|
|
16
|
+
BombOrPotion = 2,
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
*/
|
|
20
|
+
export enum ItemModelKind {
|
|
21
|
+
Mon = 0,
|
|
22
|
+
Mana = 1,
|
|
23
|
+
MonWithMana = 2,
|
|
24
|
+
MonWithConsumable = 3,
|
|
25
|
+
Consumable = 4,
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
*/
|
|
29
|
+
export enum MonKind {
|
|
30
|
+
Demon = 0,
|
|
31
|
+
Drainer = 1,
|
|
32
|
+
Angel = 2,
|
|
33
|
+
Spirit = 3,
|
|
34
|
+
Mystic = 4,
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
*/
|
|
38
|
+
export enum SquareModelKind {
|
|
39
|
+
Regular = 0,
|
|
40
|
+
ConsumableBase = 1,
|
|
41
|
+
SupermanaBase = 2,
|
|
42
|
+
ManaBase = 3,
|
|
43
|
+
ManaPool = 4,
|
|
44
|
+
MonBase = 5,
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
*/
|
|
13
48
|
export enum EventModelKind {
|
|
14
49
|
MonMove = 0,
|
|
15
50
|
ManaMove = 1,
|
|
@@ -42,12 +77,16 @@ export enum OutputModelKind {
|
|
|
42
77
|
}
|
|
43
78
|
/**
|
|
44
79
|
*/
|
|
45
|
-
export enum
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
80
|
+
export enum NextInputKind {
|
|
81
|
+
MonMove = 0,
|
|
82
|
+
ManaMove = 1,
|
|
83
|
+
MysticAction = 2,
|
|
84
|
+
DemonAction = 3,
|
|
85
|
+
DemonAdditionalStep = 4,
|
|
86
|
+
SpiritTargetCapture = 5,
|
|
87
|
+
SpiritTargetMove = 6,
|
|
88
|
+
SelectConsumable = 7,
|
|
89
|
+
BombAttack = 8,
|
|
51
90
|
}
|
|
52
91
|
/**
|
|
53
92
|
*/
|
|
@@ -59,17 +98,9 @@ export enum AvailableMoveKind {
|
|
|
59
98
|
}
|
|
60
99
|
/**
|
|
61
100
|
*/
|
|
62
|
-
export enum
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
Cancel = 2,
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
*/
|
|
69
|
-
export enum Consumable {
|
|
70
|
-
Potion = 0,
|
|
71
|
-
Bomb = 1,
|
|
72
|
-
BombOrPotion = 2,
|
|
101
|
+
export enum Color {
|
|
102
|
+
White = 0,
|
|
103
|
+
Black = 1,
|
|
73
104
|
}
|
|
74
105
|
/**
|
|
75
106
|
*/
|
|
@@ -79,41 +110,10 @@ export enum ManaKind {
|
|
|
79
110
|
}
|
|
80
111
|
/**
|
|
81
112
|
*/
|
|
82
|
-
export enum
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
Spirit = 3,
|
|
87
|
-
Mystic = 4,
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
*/
|
|
91
|
-
export enum SquareModelKind {
|
|
92
|
-
Regular = 0,
|
|
93
|
-
ConsumableBase = 1,
|
|
94
|
-
SupermanaBase = 2,
|
|
95
|
-
ManaBase = 3,
|
|
96
|
-
ManaPool = 4,
|
|
97
|
-
MonBase = 5,
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
*/
|
|
101
|
-
export enum NextInputKind {
|
|
102
|
-
MonMove = 0,
|
|
103
|
-
ManaMove = 1,
|
|
104
|
-
MysticAction = 2,
|
|
105
|
-
DemonAction = 3,
|
|
106
|
-
DemonAdditionalStep = 4,
|
|
107
|
-
SpiritTargetCapture = 5,
|
|
108
|
-
SpiritTargetMove = 6,
|
|
109
|
-
SelectConsumable = 7,
|
|
110
|
-
BombAttack = 8,
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
*/
|
|
114
|
-
export enum Color {
|
|
115
|
-
White = 0,
|
|
116
|
-
Black = 1,
|
|
113
|
+
export enum Modifier {
|
|
114
|
+
SelectPotion = 0,
|
|
115
|
+
SelectBomb = 1,
|
|
116
|
+
Cancel = 2,
|
|
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__head22c65042fd6f5(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.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
243
243
|
/**
|
|
244
244
|
*/
|
|
245
|
-
module.exports.
|
|
245
|
+
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
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.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", });
|
|
252
252
|
/**
|
|
253
253
|
*/
|
|
254
|
-
module.exports.
|
|
254
|
+
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", });
|
|
255
255
|
/**
|
|
256
256
|
*/
|
|
257
|
-
module.exports.
|
|
257
|
+
module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
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.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
264
264
|
/**
|
|
265
265
|
*/
|
|
266
|
-
module.exports.
|
|
266
|
+
module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
267
267
|
/**
|
|
268
268
|
*/
|
|
269
|
-
module.exports.
|
|
269
|
+
module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
270
270
|
/**
|
|
271
271
|
*/
|
|
272
|
-
module.exports.
|
|
272
|
+
module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
273
273
|
|
|
274
274
|
const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
275
275
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1420,6 +1420,11 @@ 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
|
+
|
|
1423
1428
|
module.exports.__wbg_eventmodel_new = function(arg0) {
|
|
1424
1429
|
const ret = EventModel.__wrap(arg0);
|
|
1425
1430
|
return addHeapObject(ret);
|
|
@@ -1430,11 +1435,6 @@ module.exports.__wbg_location_new = function(arg0) {
|
|
|
1430
1435
|
return addHeapObject(ret);
|
|
1431
1436
|
};
|
|
1432
1437
|
|
|
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_wrapper366 = function(arg0, arg1, arg2) {
|
|
1658
|
+
const ret = makeMutClosure(arg0, arg1, 15, __wbg_adapter_26);
|
|
1659
1659
|
return addHeapObject(ret);
|
|
1660
1660
|
};
|
|
1661
1661
|
|
package/mons-rust_bg.wasm
CHANGED
|
Binary file
|