mons-rust 0.1.86 → 0.1.87
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 +51 -51
- package/mons-rust.js +20 -15
- package/mons-rust_bg.wasm +0 -0
- package/package.json +1 -1
package/mons-rust.d.ts
CHANGED
|
@@ -19,16 +19,36 @@ export enum MonKind {
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
*/
|
|
22
|
-
export enum
|
|
22
|
+
export enum OutputModelKind {
|
|
23
|
+
InvalidInput = 0,
|
|
24
|
+
LocationsToStartFrom = 1,
|
|
25
|
+
NextInputOptions = 2,
|
|
26
|
+
Events = 3,
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
*/
|
|
30
|
+
export enum SquareModelKind {
|
|
31
|
+
Regular = 0,
|
|
32
|
+
ConsumableBase = 1,
|
|
33
|
+
SupermanaBase = 2,
|
|
34
|
+
ManaBase = 3,
|
|
35
|
+
ManaPool = 4,
|
|
36
|
+
MonBase = 5,
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
*/
|
|
40
|
+
export enum AvailableMoveKind {
|
|
23
41
|
MonMove = 0,
|
|
24
42
|
ManaMove = 1,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
43
|
+
Action = 2,
|
|
44
|
+
Potion = 3,
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
*/
|
|
48
|
+
export enum Consumable {
|
|
49
|
+
Potion = 0,
|
|
50
|
+
Bomb = 1,
|
|
51
|
+
BombOrPotion = 2,
|
|
32
52
|
}
|
|
33
53
|
/**
|
|
34
54
|
*/
|
|
@@ -56,64 +76,44 @@ export enum EventModelKind {
|
|
|
56
76
|
}
|
|
57
77
|
/**
|
|
58
78
|
*/
|
|
59
|
-
export enum ItemModelKind {
|
|
60
|
-
Mon = 0,
|
|
61
|
-
Mana = 1,
|
|
62
|
-
MonWithMana = 2,
|
|
63
|
-
MonWithConsumable = 3,
|
|
64
|
-
Consumable = 4,
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
*/
|
|
68
|
-
export enum AvailableMoveKind {
|
|
69
|
-
MonMove = 0,
|
|
70
|
-
ManaMove = 1,
|
|
71
|
-
Action = 2,
|
|
72
|
-
Potion = 3,
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
*/
|
|
76
|
-
export enum SquareModelKind {
|
|
77
|
-
Regular = 0,
|
|
78
|
-
ConsumableBase = 1,
|
|
79
|
-
SupermanaBase = 2,
|
|
80
|
-
ManaBase = 3,
|
|
81
|
-
ManaPool = 4,
|
|
82
|
-
MonBase = 5,
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
*/
|
|
86
79
|
export enum Color {
|
|
87
80
|
White = 0,
|
|
88
81
|
Black = 1,
|
|
89
82
|
}
|
|
90
83
|
/**
|
|
91
84
|
*/
|
|
92
|
-
export enum
|
|
93
|
-
|
|
94
|
-
|
|
85
|
+
export enum Modifier {
|
|
86
|
+
SelectPotion = 0,
|
|
87
|
+
SelectBomb = 1,
|
|
88
|
+
Cancel = 2,
|
|
95
89
|
}
|
|
96
90
|
/**
|
|
97
91
|
*/
|
|
98
|
-
export enum
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
BombOrPotion = 2,
|
|
92
|
+
export enum ManaKind {
|
|
93
|
+
Regular = 0,
|
|
94
|
+
Supermana = 1,
|
|
102
95
|
}
|
|
103
96
|
/**
|
|
104
97
|
*/
|
|
105
|
-
export enum
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
98
|
+
export enum ItemModelKind {
|
|
99
|
+
Mon = 0,
|
|
100
|
+
Mana = 1,
|
|
101
|
+
MonWithMana = 2,
|
|
102
|
+
MonWithConsumable = 3,
|
|
103
|
+
Consumable = 4,
|
|
109
104
|
}
|
|
110
105
|
/**
|
|
111
106
|
*/
|
|
112
|
-
export enum
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
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__h3151ce4ea0fab8cd(arg0, arg1);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
let cachedUint32Memory0 = null;
|
|
@@ -242,34 +242,34 @@ function __wbg_adapter_151(arg0, arg1, arg2, arg3) {
|
|
|
242
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", });
|
|
243
243
|
/**
|
|
244
244
|
*/
|
|
245
|
-
module.exports.
|
|
245
|
+
module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
246
246
|
/**
|
|
247
247
|
*/
|
|
248
|
-
module.exports.
|
|
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.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.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.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", });
|
|
258
258
|
/**
|
|
259
259
|
*/
|
|
260
260
|
module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
261
261
|
/**
|
|
262
262
|
*/
|
|
263
|
-
module.exports.
|
|
263
|
+
module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
264
264
|
/**
|
|
265
265
|
*/
|
|
266
|
-
module.exports.
|
|
266
|
+
module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
267
267
|
/**
|
|
268
268
|
*/
|
|
269
|
-
module.exports.
|
|
269
|
+
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", });
|
|
270
270
|
/**
|
|
271
271
|
*/
|
|
272
|
-
module.exports.
|
|
272
|
+
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", });
|
|
273
273
|
|
|
274
274
|
const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
275
275
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1420,8 +1420,8 @@ module.exports.__wbindgen_number_new = function(arg0) {
|
|
|
1420
1420
|
return addHeapObject(ret);
|
|
1421
1421
|
};
|
|
1422
1422
|
|
|
1423
|
-
module.exports.
|
|
1424
|
-
const ret =
|
|
1423
|
+
module.exports.__wbg_location_new = function(arg0) {
|
|
1424
|
+
const ret = Location.__wrap(arg0);
|
|
1425
1425
|
return addHeapObject(ret);
|
|
1426
1426
|
};
|
|
1427
1427
|
|
|
@@ -1430,8 +1430,8 @@ module.exports.__wbg_nextinputmodel_new = function(arg0) {
|
|
|
1430
1430
|
return addHeapObject(ret);
|
|
1431
1431
|
};
|
|
1432
1432
|
|
|
1433
|
-
module.exports.
|
|
1434
|
-
const ret =
|
|
1433
|
+
module.exports.__wbg_eventmodel_new = function(arg0) {
|
|
1434
|
+
const ret = EventModel.__wrap(arg0);
|
|
1435
1435
|
return addHeapObject(ret);
|
|
1436
1436
|
};
|
|
1437
1437
|
|
|
@@ -1625,6 +1625,11 @@ module.exports.__wbg_reject_a778418101c86bc9 = function(arg0) {
|
|
|
1625
1625
|
return addHeapObject(ret);
|
|
1626
1626
|
};
|
|
1627
1627
|
|
|
1628
|
+
module.exports.__wbg_resolve_b0083a7967828ec8 = function(arg0) {
|
|
1629
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
1630
|
+
return addHeapObject(ret);
|
|
1631
|
+
};
|
|
1632
|
+
|
|
1628
1633
|
module.exports.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1629
1634
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1630
1635
|
return addHeapObject(ret);
|
|
@@ -1649,7 +1654,7 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
|
1649
1654
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1650
1655
|
};
|
|
1651
1656
|
|
|
1652
|
-
module.exports.
|
|
1657
|
+
module.exports.__wbindgen_closure_wrapper306 = function(arg0, arg1, arg2) {
|
|
1653
1658
|
const ret = makeMutClosure(arg0, arg1, 16, __wbg_adapter_26);
|
|
1654
1659
|
return addHeapObject(ret);
|
|
1655
1660
|
};
|
package/mons-rust_bg.wasm
CHANGED
|
Binary file
|