mons-rust 0.1.96 → 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 +41 -41
- 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,12 +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 ManaKind {
|
|
14
|
-
Regular = 0,
|
|
15
|
-
Supermana = 1,
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
*/
|
|
19
13
|
export enum AvailableMoveKind {
|
|
20
14
|
MonMove = 0,
|
|
21
15
|
ManaMove = 1,
|
|
@@ -24,28 +18,10 @@ export enum AvailableMoveKind {
|
|
|
24
18
|
}
|
|
25
19
|
/**
|
|
26
20
|
*/
|
|
27
|
-
export enum
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
ManaBase = 3,
|
|
32
|
-
ManaPool = 4,
|
|
33
|
-
MonBase = 5,
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
*/
|
|
37
|
-
export enum OutputModelKind {
|
|
38
|
-
InvalidInput = 0,
|
|
39
|
-
LocationsToStartFrom = 1,
|
|
40
|
-
NextInputOptions = 2,
|
|
41
|
-
Events = 3,
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
*/
|
|
45
|
-
export enum Consumable {
|
|
46
|
-
Potion = 0,
|
|
47
|
-
Bomb = 1,
|
|
48
|
-
BombOrPotion = 2,
|
|
21
|
+
export enum Modifier {
|
|
22
|
+
SelectPotion = 0,
|
|
23
|
+
SelectBomb = 1,
|
|
24
|
+
Cancel = 2,
|
|
49
25
|
}
|
|
50
26
|
/**
|
|
51
27
|
*/
|
|
@@ -64,6 +40,19 @@ export enum Color {
|
|
|
64
40
|
}
|
|
65
41
|
/**
|
|
66
42
|
*/
|
|
43
|
+
export enum ManaKind {
|
|
44
|
+
Regular = 0,
|
|
45
|
+
Supermana = 1,
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
*/
|
|
49
|
+
export enum Consumable {
|
|
50
|
+
Potion = 0,
|
|
51
|
+
Bomb = 1,
|
|
52
|
+
BombOrPotion = 2,
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
*/
|
|
67
56
|
export enum NextInputKind {
|
|
68
57
|
MonMove = 0,
|
|
69
58
|
ManaMove = 1,
|
|
@@ -77,15 +66,6 @@ export enum NextInputKind {
|
|
|
77
66
|
}
|
|
78
67
|
/**
|
|
79
68
|
*/
|
|
80
|
-
export enum ItemModelKind {
|
|
81
|
-
Mon = 0,
|
|
82
|
-
Mana = 1,
|
|
83
|
-
MonWithMana = 2,
|
|
84
|
-
MonWithConsumable = 3,
|
|
85
|
-
Consumable = 4,
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
*/
|
|
89
69
|
export enum EventModelKind {
|
|
90
70
|
MonMove = 0,
|
|
91
71
|
ManaMove = 1,
|
|
@@ -110,10 +90,30 @@ export enum EventModelKind {
|
|
|
110
90
|
}
|
|
111
91
|
/**
|
|
112
92
|
*/
|
|
113
|
-
export enum
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
93
|
+
export enum OutputModelKind {
|
|
94
|
+
InvalidInput = 0,
|
|
95
|
+
LocationsToStartFrom = 1,
|
|
96
|
+
NextInputOptions = 2,
|
|
97
|
+
Events = 3,
|
|
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,
|
|
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;
|
|
@@ -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.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
243
240
|
/**
|
|
244
241
|
*/
|
|
245
242
|
module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
246
243
|
/**
|
|
247
244
|
*/
|
|
248
|
-
module.exports.
|
|
245
|
+
module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
249
246
|
/**
|
|
250
247
|
*/
|
|
251
|
-
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", });
|
|
252
249
|
/**
|
|
253
250
|
*/
|
|
254
|
-
module.exports.
|
|
251
|
+
module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
255
252
|
/**
|
|
256
253
|
*/
|
|
257
|
-
module.exports.
|
|
254
|
+
module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
258
255
|
/**
|
|
259
256
|
*/
|
|
260
|
-
module.exports.
|
|
257
|
+
module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
261
258
|
/**
|
|
262
259
|
*/
|
|
263
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", });
|
|
264
261
|
/**
|
|
265
262
|
*/
|
|
266
|
-
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", });
|
|
267
264
|
/**
|
|
268
265
|
*/
|
|
269
|
-
module.exports.
|
|
266
|
+
module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
270
267
|
/**
|
|
271
268
|
*/
|
|
272
|
-
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
|
+
/**
|
|
271
|
+
*/
|
|
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_location_new = function(arg0) {
|
|
1458
|
+
const ret = Location.__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_eventmodel_new = function(arg0) {
|
|
1468
|
+
const ret = EventModel.__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_wrapper499 = function(arg0, arg1, arg2) {
|
|
1658
|
+
const ret = makeMutClosure(arg0, arg1, 20, __wbg_adapter_26);
|
|
1659
1659
|
return addHeapObject(ret);
|
|
1660
1660
|
};
|
|
1661
1661
|
|
package/mons-rust_bg.wasm
CHANGED
|
Binary file
|