mons-rust 0.1.84 → 0.1.85
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 +56 -56
- package/mons-rust.js +20 -20
- package/mons-rust_bg.wasm +0 -0
- package/package.json +1 -1
package/mons-rust.d.ts
CHANGED
|
@@ -10,30 +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 ItemModelKind {
|
|
14
|
-
Mon = 0,
|
|
15
|
-
Mana = 1,
|
|
16
|
-
MonWithMana = 2,
|
|
17
|
-
MonWithConsumable = 3,
|
|
18
|
-
Consumable = 4,
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
*/
|
|
22
|
-
export enum Consumable {
|
|
23
|
-
Potion = 0,
|
|
24
|
-
Bomb = 1,
|
|
25
|
-
BombOrPotion = 2,
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
*/
|
|
29
|
-
export enum AvailableMoveKind {
|
|
30
|
-
MonMove = 0,
|
|
31
|
-
ManaMove = 1,
|
|
32
|
-
Action = 2,
|
|
33
|
-
Potion = 3,
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
*/
|
|
37
13
|
export enum OutputModelKind {
|
|
38
14
|
InvalidInput = 0,
|
|
39
15
|
LocationsToStartFrom = 1,
|
|
@@ -42,32 +18,12 @@ export enum OutputModelKind {
|
|
|
42
18
|
}
|
|
43
19
|
/**
|
|
44
20
|
*/
|
|
45
|
-
export enum
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
MonBase = 5,
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
*/
|
|
55
|
-
export enum Color {
|
|
56
|
-
White = 0,
|
|
57
|
-
Black = 1,
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
*/
|
|
61
|
-
export enum NextInputKind {
|
|
62
|
-
MonMove = 0,
|
|
63
|
-
ManaMove = 1,
|
|
64
|
-
MysticAction = 2,
|
|
65
|
-
DemonAction = 3,
|
|
66
|
-
DemonAdditionalStep = 4,
|
|
67
|
-
SpiritTargetCapture = 5,
|
|
68
|
-
SpiritTargetMove = 6,
|
|
69
|
-
SelectConsumable = 7,
|
|
70
|
-
BombAttack = 8,
|
|
21
|
+
export enum MonKind {
|
|
22
|
+
Demon = 0,
|
|
23
|
+
Drainer = 1,
|
|
24
|
+
Angel = 2,
|
|
25
|
+
Spirit = 3,
|
|
26
|
+
Mystic = 4,
|
|
71
27
|
}
|
|
72
28
|
/**
|
|
73
29
|
*/
|
|
@@ -95,6 +51,25 @@ export enum EventModelKind {
|
|
|
95
51
|
}
|
|
96
52
|
/**
|
|
97
53
|
*/
|
|
54
|
+
export enum Color {
|
|
55
|
+
White = 0,
|
|
56
|
+
Black = 1,
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
*/
|
|
60
|
+
export enum NextInputKind {
|
|
61
|
+
MonMove = 0,
|
|
62
|
+
ManaMove = 1,
|
|
63
|
+
MysticAction = 2,
|
|
64
|
+
DemonAction = 3,
|
|
65
|
+
DemonAdditionalStep = 4,
|
|
66
|
+
SpiritTargetCapture = 5,
|
|
67
|
+
SpiritTargetMove = 6,
|
|
68
|
+
SelectConsumable = 7,
|
|
69
|
+
BombAttack = 8,
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
*/
|
|
98
73
|
export enum Modifier {
|
|
99
74
|
SelectPotion = 0,
|
|
100
75
|
SelectBomb = 1,
|
|
@@ -102,12 +77,12 @@ export enum Modifier {
|
|
|
102
77
|
}
|
|
103
78
|
/**
|
|
104
79
|
*/
|
|
105
|
-
export enum
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
80
|
+
export enum ItemModelKind {
|
|
81
|
+
Mon = 0,
|
|
82
|
+
Mana = 1,
|
|
83
|
+
MonWithMana = 2,
|
|
84
|
+
MonWithConsumable = 3,
|
|
85
|
+
Consumable = 4,
|
|
111
86
|
}
|
|
112
87
|
/**
|
|
113
88
|
*/
|
|
@@ -117,6 +92,31 @@ export enum ManaKind {
|
|
|
117
92
|
}
|
|
118
93
|
/**
|
|
119
94
|
*/
|
|
95
|
+
export enum SquareModelKind {
|
|
96
|
+
Regular = 0,
|
|
97
|
+
ConsumableBase = 1,
|
|
98
|
+
SupermanaBase = 2,
|
|
99
|
+
ManaBase = 3,
|
|
100
|
+
ManaPool = 4,
|
|
101
|
+
MonBase = 5,
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
*/
|
|
105
|
+
export enum AvailableMoveKind {
|
|
106
|
+
MonMove = 0,
|
|
107
|
+
ManaMove = 1,
|
|
108
|
+
Action = 2,
|
|
109
|
+
Potion = 3,
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
*/
|
|
113
|
+
export enum Consumable {
|
|
114
|
+
Potion = 0,
|
|
115
|
+
Bomb = 1,
|
|
116
|
+
BombOrPotion = 2,
|
|
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__h707a48f6f45da428(arg0, arg1);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
let cachedUint32Memory0 = null;
|
|
@@ -239,37 +239,37 @@ function __wbg_adapter_152(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.MonKind = Object.freeze({ Demon:0,"0":"Demon",Drainer:1,"1":"Drainer",Angel:2,"2":"Angel",Spirit:3,"3":"Spirit",Mystic:4,"4":"Mystic", });
|
|
246
246
|
/**
|
|
247
247
|
*/
|
|
248
|
-
module.exports.
|
|
248
|
+
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", });
|
|
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
|
-
module.exports.
|
|
254
|
+
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", });
|
|
255
255
|
/**
|
|
256
256
|
*/
|
|
257
|
-
module.exports.
|
|
257
|
+
module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
258
258
|
/**
|
|
259
259
|
*/
|
|
260
|
-
module.exports.
|
|
260
|
+
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", });
|
|
261
261
|
/**
|
|
262
262
|
*/
|
|
263
|
-
module.exports.
|
|
263
|
+
module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
264
264
|
/**
|
|
265
265
|
*/
|
|
266
|
-
module.exports.
|
|
266
|
+
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", });
|
|
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.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
273
273
|
|
|
274
274
|
const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
275
275
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1421,8 +1421,8 @@ class VerboseTrackingEntityModel {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
module.exports.VerboseTrackingEntityModel = VerboseTrackingEntityModel;
|
|
1423
1423
|
|
|
1424
|
-
module.exports.
|
|
1425
|
-
const ret =
|
|
1424
|
+
module.exports.__wbg_eventmodel_new = function(arg0) {
|
|
1425
|
+
const ret = EventModel.__wrap(arg0);
|
|
1426
1426
|
return addHeapObject(ret);
|
|
1427
1427
|
};
|
|
1428
1428
|
|
|
@@ -1436,18 +1436,18 @@ module.exports.__wbindgen_number_new = function(arg0) {
|
|
|
1436
1436
|
return addHeapObject(ret);
|
|
1437
1437
|
};
|
|
1438
1438
|
|
|
1439
|
-
module.exports.
|
|
1440
|
-
const ret =
|
|
1439
|
+
module.exports.__wbg_nextinputmodel_new = function(arg0) {
|
|
1440
|
+
const ret = NextInputModel.__wrap(arg0);
|
|
1441
1441
|
return addHeapObject(ret);
|
|
1442
1442
|
};
|
|
1443
1443
|
|
|
1444
|
-
module.exports.
|
|
1445
|
-
const ret =
|
|
1444
|
+
module.exports.__wbg_outputmodel_new = function(arg0) {
|
|
1445
|
+
const ret = OutputModel.__wrap(arg0);
|
|
1446
1446
|
return addHeapObject(ret);
|
|
1447
1447
|
};
|
|
1448
1448
|
|
|
1449
|
-
module.exports.
|
|
1450
|
-
const ret =
|
|
1449
|
+
module.exports.__wbg_verbosetrackingentitymodel_new = function(arg0) {
|
|
1450
|
+
const ret = VerboseTrackingEntityModel.__wrap(arg0);
|
|
1451
1451
|
return addHeapObject(ret);
|
|
1452
1452
|
};
|
|
1453
1453
|
|
package/mons-rust_bg.wasm
CHANGED
|
Binary file
|