mons-rust 0.1.81 → 0.1.82
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 +54 -54
- 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,13 +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 Modifier {
|
|
14
|
-
SelectPotion = 0,
|
|
15
|
-
SelectBomb = 1,
|
|
16
|
-
Cancel = 2,
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
*/
|
|
20
13
|
export enum SquareModelKind {
|
|
21
14
|
Regular = 0,
|
|
22
15
|
ConsumableBase = 1,
|
|
@@ -27,6 +20,46 @@ export enum SquareModelKind {
|
|
|
27
20
|
}
|
|
28
21
|
/**
|
|
29
22
|
*/
|
|
23
|
+
export enum ItemModelKind {
|
|
24
|
+
Mon = 0,
|
|
25
|
+
Mana = 1,
|
|
26
|
+
MonWithMana = 2,
|
|
27
|
+
MonWithConsumable = 3,
|
|
28
|
+
Consumable = 4,
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
*/
|
|
32
|
+
export enum Consumable {
|
|
33
|
+
Potion = 0,
|
|
34
|
+
Bomb = 1,
|
|
35
|
+
BombOrPotion = 2,
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
*/
|
|
39
|
+
export enum AvailableMoveKind {
|
|
40
|
+
MonMove = 0,
|
|
41
|
+
ManaMove = 1,
|
|
42
|
+
Action = 2,
|
|
43
|
+
Potion = 3,
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*/
|
|
47
|
+
export enum MonKind {
|
|
48
|
+
Demon = 0,
|
|
49
|
+
Drainer = 1,
|
|
50
|
+
Angel = 2,
|
|
51
|
+
Spirit = 3,
|
|
52
|
+
Mystic = 4,
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
*/
|
|
56
|
+
export enum Modifier {
|
|
57
|
+
SelectPotion = 0,
|
|
58
|
+
SelectBomb = 1,
|
|
59
|
+
Cancel = 2,
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*/
|
|
30
63
|
export enum NextInputKind {
|
|
31
64
|
MonMove = 0,
|
|
32
65
|
ManaMove = 1,
|
|
@@ -40,9 +73,17 @@ export enum NextInputKind {
|
|
|
40
73
|
}
|
|
41
74
|
/**
|
|
42
75
|
*/
|
|
43
|
-
export enum
|
|
44
|
-
|
|
45
|
-
|
|
76
|
+
export enum Color {
|
|
77
|
+
White = 0,
|
|
78
|
+
Black = 1,
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
*/
|
|
82
|
+
export enum OutputModelKind {
|
|
83
|
+
InvalidInput = 0,
|
|
84
|
+
LocationsToStartFrom = 1,
|
|
85
|
+
NextInputOptions = 2,
|
|
86
|
+
Events = 3,
|
|
46
87
|
}
|
|
47
88
|
/**
|
|
48
89
|
*/
|
|
@@ -70,50 +111,9 @@ export enum EventModelKind {
|
|
|
70
111
|
}
|
|
71
112
|
/**
|
|
72
113
|
*/
|
|
73
|
-
export enum
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
Action = 2,
|
|
77
|
-
Potion = 3,
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
*/
|
|
81
|
-
export enum MonKind {
|
|
82
|
-
Demon = 0,
|
|
83
|
-
Drainer = 1,
|
|
84
|
-
Angel = 2,
|
|
85
|
-
Spirit = 3,
|
|
86
|
-
Mystic = 4,
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
*/
|
|
90
|
-
export enum Consumable {
|
|
91
|
-
Potion = 0,
|
|
92
|
-
Bomb = 1,
|
|
93
|
-
BombOrPotion = 2,
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
*/
|
|
97
|
-
export enum OutputModelKind {
|
|
98
|
-
InvalidInput = 0,
|
|
99
|
-
LocationsToStartFrom = 1,
|
|
100
|
-
NextInputOptions = 2,
|
|
101
|
-
Events = 3,
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
*/
|
|
105
|
-
export enum ItemModelKind {
|
|
106
|
-
Mon = 0,
|
|
107
|
-
Mana = 1,
|
|
108
|
-
MonWithMana = 2,
|
|
109
|
-
MonWithConsumable = 3,
|
|
110
|
-
Consumable = 4,
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
*/
|
|
114
|
-
export enum Color {
|
|
115
|
-
White = 0,
|
|
116
|
-
Black = 1,
|
|
114
|
+
export enum ManaKind {
|
|
115
|
+
Regular = 0,
|
|
116
|
+
Supermana = 1,
|
|
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__h3fb1aa55fa18b074(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.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", });
|
|
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.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
249
249
|
/**
|
|
250
250
|
*/
|
|
251
|
-
module.exports.
|
|
251
|
+
module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
252
252
|
/**
|
|
253
253
|
*/
|
|
254
|
-
module.exports.
|
|
254
|
+
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", });
|
|
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.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.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
264
264
|
/**
|
|
265
265
|
*/
|
|
266
266
|
module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
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.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
273
273
|
|
|
274
274
|
const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
275
275
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1426,8 +1426,8 @@ module.exports.__wbindgen_number_new = function(arg0) {
|
|
|
1426
1426
|
return addHeapObject(ret);
|
|
1427
1427
|
};
|
|
1428
1428
|
|
|
1429
|
-
module.exports.
|
|
1430
|
-
const ret =
|
|
1429
|
+
module.exports.__wbg_location_new = function(arg0) {
|
|
1430
|
+
const ret = Location.__wrap(arg0);
|
|
1431
1431
|
return addHeapObject(ret);
|
|
1432
1432
|
};
|
|
1433
1433
|
|
|
@@ -1436,18 +1436,18 @@ module.exports.__wbg_nextinputmodel_new = function(arg0) {
|
|
|
1436
1436
|
return addHeapObject(ret);
|
|
1437
1437
|
};
|
|
1438
1438
|
|
|
1439
|
-
module.exports.
|
|
1440
|
-
const ret =
|
|
1439
|
+
module.exports.__wbg_eventmodel_new = function(arg0) {
|
|
1440
|
+
const ret = EventModel.__wrap(arg0);
|
|
1441
1441
|
return addHeapObject(ret);
|
|
1442
1442
|
};
|
|
1443
1443
|
|
|
1444
|
-
module.exports.
|
|
1445
|
-
const ret =
|
|
1444
|
+
module.exports.__wbg_verbosetrackingentitymodel_new = function(arg0) {
|
|
1445
|
+
const ret = VerboseTrackingEntityModel.__wrap(arg0);
|
|
1446
1446
|
return addHeapObject(ret);
|
|
1447
1447
|
};
|
|
1448
1448
|
|
|
1449
|
-
module.exports.
|
|
1450
|
-
const ret =
|
|
1449
|
+
module.exports.__wbg_outputmodel_new = function(arg0) {
|
|
1450
|
+
const ret = OutputModel.__wrap(arg0);
|
|
1451
1451
|
return addHeapObject(ret);
|
|
1452
1452
|
};
|
|
1453
1453
|
|
package/mons-rust_bg.wasm
CHANGED
|
Binary file
|