mons-rust 0.1.110 → 0.1.111
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 +52 -52
- package/mons-rust.js +15 -15
- package/mons-rust_bg.wasm +0 -0
- package/package.json +1 -1
package/mons-rust.d.ts
CHANGED
|
@@ -10,6 +10,44 @@
|
|
|
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 MonKind {
|
|
14
|
+
Demon = 0,
|
|
15
|
+
Drainer = 1,
|
|
16
|
+
Angel = 2,
|
|
17
|
+
Spirit = 3,
|
|
18
|
+
Mystic = 4,
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*/
|
|
22
|
+
export enum ManaKind {
|
|
23
|
+
Regular = 0,
|
|
24
|
+
Supermana = 1,
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
*/
|
|
28
|
+
export enum Consumable {
|
|
29
|
+
Potion = 0,
|
|
30
|
+
Bomb = 1,
|
|
31
|
+
BombOrPotion = 2,
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
*/
|
|
35
|
+
export enum ItemModelKind {
|
|
36
|
+
Mon = 0,
|
|
37
|
+
Mana = 1,
|
|
38
|
+
MonWithMana = 2,
|
|
39
|
+
MonWithConsumable = 3,
|
|
40
|
+
Consumable = 4,
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
*/
|
|
44
|
+
export enum Modifier {
|
|
45
|
+
SelectPotion = 0,
|
|
46
|
+
SelectBomb = 1,
|
|
47
|
+
Cancel = 2,
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
*/
|
|
13
51
|
export enum EventModelKind {
|
|
14
52
|
MonMove = 0,
|
|
15
53
|
ManaMove = 1,
|
|
@@ -34,27 +72,13 @@ export enum EventModelKind {
|
|
|
34
72
|
}
|
|
35
73
|
/**
|
|
36
74
|
*/
|
|
37
|
-
export enum
|
|
38
|
-
Demon = 0,
|
|
39
|
-
Drainer = 1,
|
|
40
|
-
Angel = 2,
|
|
41
|
-
Spirit = 3,
|
|
42
|
-
Mystic = 4,
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
*/
|
|
46
|
-
export enum ItemModelKind {
|
|
47
|
-
Mon = 0,
|
|
48
|
-
Mana = 1,
|
|
49
|
-
MonWithMana = 2,
|
|
50
|
-
MonWithConsumable = 3,
|
|
51
|
-
Consumable = 4,
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
*/
|
|
55
|
-
export enum ManaKind {
|
|
75
|
+
export enum SquareModelKind {
|
|
56
76
|
Regular = 0,
|
|
57
|
-
|
|
77
|
+
ConsumableBase = 1,
|
|
78
|
+
SupermanaBase = 2,
|
|
79
|
+
ManaBase = 3,
|
|
80
|
+
ManaPool = 4,
|
|
81
|
+
MonBase = 5,
|
|
58
82
|
}
|
|
59
83
|
/**
|
|
60
84
|
*/
|
|
@@ -66,11 +90,9 @@ export enum OutputModelKind {
|
|
|
66
90
|
}
|
|
67
91
|
/**
|
|
68
92
|
*/
|
|
69
|
-
export enum
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
Action = 2,
|
|
73
|
-
Potion = 3,
|
|
93
|
+
export enum Color {
|
|
94
|
+
White = 0,
|
|
95
|
+
Black = 1,
|
|
74
96
|
}
|
|
75
97
|
/**
|
|
76
98
|
*/
|
|
@@ -87,33 +109,11 @@ export enum NextInputKind {
|
|
|
87
109
|
}
|
|
88
110
|
/**
|
|
89
111
|
*/
|
|
90
|
-
export enum
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
ManaPool = 4,
|
|
96
|
-
MonBase = 5,
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
*/
|
|
100
|
-
export enum Color {
|
|
101
|
-
White = 0,
|
|
102
|
-
Black = 1,
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
*/
|
|
106
|
-
export enum Consumable {
|
|
107
|
-
Potion = 0,
|
|
108
|
-
Bomb = 1,
|
|
109
|
-
BombOrPotion = 2,
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
*/
|
|
113
|
-
export enum Modifier {
|
|
114
|
-
SelectPotion = 0,
|
|
115
|
-
SelectBomb = 1,
|
|
116
|
-
Cancel = 2,
|
|
112
|
+
export enum AvailableMoveKind {
|
|
113
|
+
MonMove = 0,
|
|
114
|
+
ManaMove = 1,
|
|
115
|
+
Action = 2,
|
|
116
|
+
Potion = 3,
|
|
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__he9bf1cd1c1c5a3c5(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.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", });
|
|
243
240
|
/**
|
|
244
241
|
*/
|
|
245
242
|
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
243
|
/**
|
|
247
244
|
*/
|
|
248
|
-
module.exports.
|
|
245
|
+
module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
249
246
|
/**
|
|
250
247
|
*/
|
|
251
|
-
module.exports.
|
|
248
|
+
module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
252
249
|
/**
|
|
253
250
|
*/
|
|
254
|
-
module.exports.
|
|
251
|
+
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", });
|
|
255
252
|
/**
|
|
256
253
|
*/
|
|
257
|
-
module.exports.
|
|
254
|
+
module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
258
255
|
/**
|
|
259
256
|
*/
|
|
260
|
-
module.exports.
|
|
257
|
+
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", });
|
|
261
258
|
/**
|
|
262
259
|
*/
|
|
263
260
|
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", });
|
|
264
261
|
/**
|
|
265
262
|
*/
|
|
263
|
+
module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
264
|
+
/**
|
|
265
|
+
*/
|
|
266
266
|
module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
267
267
|
/**
|
|
268
268
|
*/
|
|
269
|
-
module.exports.
|
|
269
|
+
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", });
|
|
270
270
|
/**
|
|
271
271
|
*/
|
|
272
|
-
module.exports.
|
|
272
|
+
module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
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_location_new = function(arg0) {
|
|
|
1464
1464
|
return addHeapObject(ret);
|
|
1465
1465
|
};
|
|
1466
1466
|
|
|
1467
|
-
module.exports.
|
|
1468
|
-
const ret =
|
|
1467
|
+
module.exports.__wbg_nextinputmodel_new = function(arg0) {
|
|
1468
|
+
const ret = NextInputModel.__wrap(arg0);
|
|
1469
1469
|
return addHeapObject(ret);
|
|
1470
1470
|
};
|
|
1471
1471
|
|
package/mons-rust_bg.wasm
CHANGED
|
Binary file
|