mons-rust 0.1.98 → 0.1.100
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 +39 -39
- 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,6 +10,29 @@
|
|
|
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 OutputModelKind {
|
|
14
|
+
InvalidInput = 0,
|
|
15
|
+
LocationsToStartFrom = 1,
|
|
16
|
+
NextInputOptions = 2,
|
|
17
|
+
Events = 3,
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
*/
|
|
21
|
+
export enum Color {
|
|
22
|
+
White = 0,
|
|
23
|
+
Black = 1,
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
*/
|
|
27
|
+
export enum MonKind {
|
|
28
|
+
Demon = 0,
|
|
29
|
+
Drainer = 1,
|
|
30
|
+
Angel = 2,
|
|
31
|
+
Spirit = 3,
|
|
32
|
+
Mystic = 4,
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*/
|
|
13
36
|
export enum EventModelKind {
|
|
14
37
|
MonMove = 0,
|
|
15
38
|
ManaMove = 1,
|
|
@@ -34,12 +57,13 @@ export enum EventModelKind {
|
|
|
34
57
|
}
|
|
35
58
|
/**
|
|
36
59
|
*/
|
|
37
|
-
export enum
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
60
|
+
export enum SquareModelKind {
|
|
61
|
+
Regular = 0,
|
|
62
|
+
ConsumableBase = 1,
|
|
63
|
+
SupermanaBase = 2,
|
|
64
|
+
ManaBase = 3,
|
|
65
|
+
ManaPool = 4,
|
|
66
|
+
MonBase = 5,
|
|
43
67
|
}
|
|
44
68
|
/**
|
|
45
69
|
*/
|
|
@@ -56,6 +80,13 @@ export enum NextInputKind {
|
|
|
56
80
|
}
|
|
57
81
|
/**
|
|
58
82
|
*/
|
|
83
|
+
export enum Consumable {
|
|
84
|
+
Potion = 0,
|
|
85
|
+
Bomb = 1,
|
|
86
|
+
BombOrPotion = 2,
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
*/
|
|
59
90
|
export enum Modifier {
|
|
60
91
|
SelectPotion = 0,
|
|
61
92
|
SelectBomb = 1,
|
|
@@ -63,13 +94,9 @@ export enum Modifier {
|
|
|
63
94
|
}
|
|
64
95
|
/**
|
|
65
96
|
*/
|
|
66
|
-
export enum
|
|
97
|
+
export enum ManaKind {
|
|
67
98
|
Regular = 0,
|
|
68
|
-
|
|
69
|
-
SupermanaBase = 2,
|
|
70
|
-
ManaBase = 3,
|
|
71
|
-
ManaPool = 4,
|
|
72
|
-
MonBase = 5,
|
|
99
|
+
Supermana = 1,
|
|
73
100
|
}
|
|
74
101
|
/**
|
|
75
102
|
*/
|
|
@@ -81,21 +108,6 @@ export enum AvailableMoveKind {
|
|
|
81
108
|
}
|
|
82
109
|
/**
|
|
83
110
|
*/
|
|
84
|
-
export enum Consumable {
|
|
85
|
-
Potion = 0,
|
|
86
|
-
Bomb = 1,
|
|
87
|
-
BombOrPotion = 2,
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
*/
|
|
91
|
-
export enum OutputModelKind {
|
|
92
|
-
InvalidInput = 0,
|
|
93
|
-
LocationsToStartFrom = 1,
|
|
94
|
-
NextInputOptions = 2,
|
|
95
|
-
Events = 3,
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
*/
|
|
99
111
|
export enum ItemModelKind {
|
|
100
112
|
Mon = 0,
|
|
101
113
|
Mana = 1,
|
|
@@ -105,18 +117,6 @@ export enum ItemModelKind {
|
|
|
105
117
|
}
|
|
106
118
|
/**
|
|
107
119
|
*/
|
|
108
|
-
export enum ManaKind {
|
|
109
|
-
Regular = 0,
|
|
110
|
-
Supermana = 1,
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
*/
|
|
114
|
-
export enum Color {
|
|
115
|
-
White = 0,
|
|
116
|
-
Black = 1,
|
|
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__he12ab5974e4a8350(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.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
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.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", });
|
|
252
252
|
/**
|
|
253
253
|
*/
|
|
254
254
|
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", });
|
|
255
255
|
/**
|
|
256
256
|
*/
|
|
257
|
-
module.exports.
|
|
257
|
+
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", });
|
|
258
258
|
/**
|
|
259
259
|
*/
|
|
260
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.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
264
264
|
/**
|
|
265
265
|
*/
|
|
266
|
-
module.exports.
|
|
266
|
+
module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
267
267
|
/**
|
|
268
268
|
*/
|
|
269
|
-
module.exports.
|
|
269
|
+
module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
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,8 +1454,8 @@ 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_eventmodel_new = function(arg0) {
|
|
1458
|
+
const ret = EventModel.__wrap(arg0);
|
|
1459
1459
|
return addHeapObject(ret);
|
|
1460
1460
|
};
|
|
1461
1461
|
|
|
@@ -1464,8 +1464,8 @@ module.exports.__wbg_nextinputmodel_new = function(arg0) {
|
|
|
1464
1464
|
return addHeapObject(ret);
|
|
1465
1465
|
};
|
|
1466
1466
|
|
|
1467
|
-
module.exports.
|
|
1468
|
-
const ret =
|
|
1467
|
+
module.exports.__wbg_location_new = function(arg0) {
|
|
1468
|
+
const ret = Location.__wrap(arg0);
|
|
1469
1469
|
return addHeapObject(ret);
|
|
1470
1470
|
};
|
|
1471
1471
|
|
|
@@ -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_wrapper518 = 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
|