mons-web 0.1.130 → 0.1.131
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-web.d.ts +61 -61
- package/mons-web.js +14 -14
- package/mons-web_bg.wasm +0 -0
- package/package.json +1 -1
package/mons-web.d.ts
CHANGED
|
@@ -17,20 +17,6 @@ export enum Modifier {
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
*/
|
|
20
|
-
export enum AvailableMoveKind {
|
|
21
|
-
MonMove = 0,
|
|
22
|
-
ManaMove = 1,
|
|
23
|
-
Action = 2,
|
|
24
|
-
Potion = 3,
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
*/
|
|
28
|
-
export enum Color {
|
|
29
|
-
White = 0,
|
|
30
|
-
Black = 1,
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
*/
|
|
34
20
|
export enum OutputModelKind {
|
|
35
21
|
InvalidInput = 0,
|
|
36
22
|
LocationsToStartFrom = 1,
|
|
@@ -39,47 +25,13 @@ export enum OutputModelKind {
|
|
|
39
25
|
}
|
|
40
26
|
/**
|
|
41
27
|
*/
|
|
42
|
-
export enum
|
|
43
|
-
Demon = 0,
|
|
44
|
-
Drainer = 1,
|
|
45
|
-
Angel = 2,
|
|
46
|
-
Spirit = 3,
|
|
47
|
-
Mystic = 4,
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
*/
|
|
51
|
-
export enum Consumable {
|
|
52
|
-
Potion = 0,
|
|
53
|
-
Bomb = 1,
|
|
54
|
-
BombOrPotion = 2,
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
*/
|
|
58
|
-
export enum NextInputKind {
|
|
59
|
-
MonMove = 0,
|
|
60
|
-
ManaMove = 1,
|
|
61
|
-
MysticAction = 2,
|
|
62
|
-
DemonAction = 3,
|
|
63
|
-
DemonAdditionalStep = 4,
|
|
64
|
-
SpiritTargetCapture = 5,
|
|
65
|
-
SpiritTargetMove = 6,
|
|
66
|
-
SelectConsumable = 7,
|
|
67
|
-
BombAttack = 8,
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
*/
|
|
71
|
-
export enum ItemModelKind {
|
|
72
|
-
Mon = 0,
|
|
73
|
-
Mana = 1,
|
|
74
|
-
MonWithMana = 2,
|
|
75
|
-
MonWithConsumable = 3,
|
|
76
|
-
Consumable = 4,
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
*/
|
|
80
|
-
export enum ManaKind {
|
|
28
|
+
export enum SquareModelKind {
|
|
81
29
|
Regular = 0,
|
|
82
|
-
|
|
30
|
+
ConsumableBase = 1,
|
|
31
|
+
SupermanaBase = 2,
|
|
32
|
+
ManaBase = 3,
|
|
33
|
+
ManaPool = 4,
|
|
34
|
+
MonBase = 5,
|
|
83
35
|
}
|
|
84
36
|
/**
|
|
85
37
|
*/
|
|
@@ -99,13 +51,18 @@ export enum GameVariant {
|
|
|
99
51
|
}
|
|
100
52
|
/**
|
|
101
53
|
*/
|
|
102
|
-
export enum
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
54
|
+
export enum AvailableMoveKind {
|
|
55
|
+
MonMove = 0,
|
|
56
|
+
ManaMove = 1,
|
|
57
|
+
Action = 2,
|
|
58
|
+
Potion = 3,
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
*/
|
|
62
|
+
export enum Consumable {
|
|
63
|
+
Potion = 0,
|
|
64
|
+
Bomb = 1,
|
|
65
|
+
BombOrPotion = 2,
|
|
109
66
|
}
|
|
110
67
|
/**
|
|
111
68
|
*/
|
|
@@ -133,6 +90,49 @@ export enum EventModelKind {
|
|
|
133
90
|
}
|
|
134
91
|
/**
|
|
135
92
|
*/
|
|
93
|
+
export enum MonKind {
|
|
94
|
+
Demon = 0,
|
|
95
|
+
Drainer = 1,
|
|
96
|
+
Angel = 2,
|
|
97
|
+
Spirit = 3,
|
|
98
|
+
Mystic = 4,
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
*/
|
|
102
|
+
export enum NextInputKind {
|
|
103
|
+
MonMove = 0,
|
|
104
|
+
ManaMove = 1,
|
|
105
|
+
MysticAction = 2,
|
|
106
|
+
DemonAction = 3,
|
|
107
|
+
DemonAdditionalStep = 4,
|
|
108
|
+
SpiritTargetCapture = 5,
|
|
109
|
+
SpiritTargetMove = 6,
|
|
110
|
+
SelectConsumable = 7,
|
|
111
|
+
BombAttack = 8,
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
*/
|
|
115
|
+
export enum ManaKind {
|
|
116
|
+
Regular = 0,
|
|
117
|
+
Supermana = 1,
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
*/
|
|
121
|
+
export enum ItemModelKind {
|
|
122
|
+
Mon = 0,
|
|
123
|
+
Mana = 1,
|
|
124
|
+
MonWithMana = 2,
|
|
125
|
+
MonWithConsumable = 3,
|
|
126
|
+
Consumable = 4,
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
*/
|
|
130
|
+
export enum Color {
|
|
131
|
+
White = 0,
|
|
132
|
+
Black = 1,
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
*/
|
|
136
136
|
export class EventModel {
|
|
137
137
|
free(): void;
|
|
138
138
|
/**
|
package/mons-web.js
CHANGED
|
@@ -201,37 +201,37 @@ function handleError(f, args) {
|
|
|
201
201
|
export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
202
202
|
/**
|
|
203
203
|
*/
|
|
204
|
-
export const
|
|
204
|
+
export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
205
205
|
/**
|
|
206
206
|
*/
|
|
207
|
-
export const
|
|
207
|
+
export const 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", });
|
|
208
208
|
/**
|
|
209
209
|
*/
|
|
210
|
-
export const
|
|
210
|
+
export const GameVariant = Object.freeze({ Classic:0,"0":"Classic",SwappedManaRows:1,"1":"SwappedManaRows",OffsetArcManaRows:2,"2":"OffsetArcManaRows",CenterSpokeManaRows:3,"3":"CenterSpokeManaRows",AlternatingManaRows:4,"4":"AlternatingManaRows",InnerWedgeManaRows:5,"5":"InnerWedgeManaRows",OuterWedgeManaRows:6,"6":"OuterWedgeManaRows",BentCenterManaRows:7,"7":"BentCenterManaRows",OuterEdgeManaRows:8,"8":"OuterEdgeManaRows",SplitFlankManaRows:9,"9":"SplitFlankManaRows",ForwardBridgeManaRows:10,"10":"ForwardBridgeManaRows",CornerChainManaRows:11,"11":"CornerChainManaRows", });
|
|
211
211
|
/**
|
|
212
212
|
*/
|
|
213
|
-
export const
|
|
213
|
+
export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
214
214
|
/**
|
|
215
215
|
*/
|
|
216
216
|
export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
217
217
|
/**
|
|
218
218
|
*/
|
|
219
|
-
export const
|
|
219
|
+
export const 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", });
|
|
220
220
|
/**
|
|
221
221
|
*/
|
|
222
|
-
export const
|
|
222
|
+
export const MonKind = Object.freeze({ Demon:0,"0":"Demon",Drainer:1,"1":"Drainer",Angel:2,"2":"Angel",Spirit:3,"3":"Spirit",Mystic:4,"4":"Mystic", });
|
|
223
223
|
/**
|
|
224
224
|
*/
|
|
225
|
-
export const
|
|
225
|
+
export const 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", });
|
|
226
226
|
/**
|
|
227
227
|
*/
|
|
228
|
-
export const
|
|
228
|
+
export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
229
229
|
/**
|
|
230
230
|
*/
|
|
231
|
-
export const
|
|
231
|
+
export const ItemModelKind = Object.freeze({ Mon:0,"0":"Mon",Mana:1,"1":"Mana",MonWithMana:2,"2":"MonWithMana",MonWithConsumable:3,"3":"MonWithConsumable",Consumable:4,"4":"Consumable", });
|
|
232
232
|
/**
|
|
233
233
|
*/
|
|
234
|
-
export const
|
|
234
|
+
export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
235
235
|
|
|
236
236
|
const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
237
237
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1421,14 +1421,14 @@ function __wbg_get_imports() {
|
|
|
1421
1421
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1422
1422
|
return addHeapObject(ret);
|
|
1423
1423
|
};
|
|
1424
|
-
imports.wbg.__wbg_eventmodel_new = function(arg0) {
|
|
1425
|
-
const ret = EventModel.__wrap(arg0);
|
|
1426
|
-
return addHeapObject(ret);
|
|
1427
|
-
};
|
|
1428
1424
|
imports.wbg.__wbg_location_new = function(arg0) {
|
|
1429
1425
|
const ret = Location.__wrap(arg0);
|
|
1430
1426
|
return addHeapObject(ret);
|
|
1431
1427
|
};
|
|
1428
|
+
imports.wbg.__wbg_eventmodel_new = function(arg0) {
|
|
1429
|
+
const ret = EventModel.__wrap(arg0);
|
|
1430
|
+
return addHeapObject(ret);
|
|
1431
|
+
};
|
|
1432
1432
|
imports.wbg.__wbg_nextinputmodel_new = function(arg0) {
|
|
1433
1433
|
const ret = NextInputModel.__wrap(arg0);
|
|
1434
1434
|
return addHeapObject(ret);
|
package/mons-web_bg.wasm
CHANGED
|
Binary file
|