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