mons-rust 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-rust.d.ts +55 -55
- package/mons-rust.js +13 -13
- package/mons-rust_bg.wasm +0 -0
- package/package.json +1 -1
package/mons-rust.d.ts
CHANGED
|
@@ -10,16 +10,9 @@
|
|
|
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
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
MysticAction = 2,
|
|
17
|
-
DemonAction = 3,
|
|
18
|
-
DemonAdditionalStep = 4,
|
|
19
|
-
SpiritTargetCapture = 5,
|
|
20
|
-
SpiritTargetMove = 6,
|
|
21
|
-
SelectConsumable = 7,
|
|
22
|
-
BombAttack = 8,
|
|
13
|
+
export enum ManaKind {
|
|
14
|
+
Regular = 0,
|
|
15
|
+
Supermana = 1,
|
|
23
16
|
}
|
|
24
17
|
/**
|
|
25
18
|
*/
|
|
@@ -56,6 +49,45 @@ export enum EventModelKind {
|
|
|
56
49
|
}
|
|
57
50
|
/**
|
|
58
51
|
*/
|
|
52
|
+
export enum SquareModelKind {
|
|
53
|
+
Regular = 0,
|
|
54
|
+
ConsumableBase = 1,
|
|
55
|
+
SupermanaBase = 2,
|
|
56
|
+
ManaBase = 3,
|
|
57
|
+
ManaPool = 4,
|
|
58
|
+
MonBase = 5,
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
*/
|
|
62
|
+
export enum GameVariant {
|
|
63
|
+
Classic = 0,
|
|
64
|
+
SwappedManaRows = 1,
|
|
65
|
+
OffsetArcManaRows = 2,
|
|
66
|
+
CenterSpokeManaRows = 3,
|
|
67
|
+
AlternatingManaRows = 4,
|
|
68
|
+
InnerWedgeManaRows = 5,
|
|
69
|
+
OuterWedgeManaRows = 6,
|
|
70
|
+
BentCenterManaRows = 7,
|
|
71
|
+
OuterEdgeManaRows = 8,
|
|
72
|
+
SplitFlankManaRows = 9,
|
|
73
|
+
ForwardBridgeManaRows = 10,
|
|
74
|
+
CornerChainManaRows = 11,
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
*/
|
|
78
|
+
export enum NextInputKind {
|
|
79
|
+
MonMove = 0,
|
|
80
|
+
ManaMove = 1,
|
|
81
|
+
MysticAction = 2,
|
|
82
|
+
DemonAction = 3,
|
|
83
|
+
DemonAdditionalStep = 4,
|
|
84
|
+
SpiritTargetCapture = 5,
|
|
85
|
+
SpiritTargetMove = 6,
|
|
86
|
+
SelectConsumable = 7,
|
|
87
|
+
BombAttack = 8,
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
*/
|
|
59
91
|
export enum AvailableMoveKind {
|
|
60
92
|
MonMove = 0,
|
|
61
93
|
ManaMove = 1,
|
|
@@ -64,6 +96,19 @@ export enum AvailableMoveKind {
|
|
|
64
96
|
}
|
|
65
97
|
/**
|
|
66
98
|
*/
|
|
99
|
+
export enum Color {
|
|
100
|
+
White = 0,
|
|
101
|
+
Black = 1,
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
*/
|
|
105
|
+
export enum Modifier {
|
|
106
|
+
SelectPotion = 0,
|
|
107
|
+
SelectBomb = 1,
|
|
108
|
+
Cancel = 2,
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
*/
|
|
67
112
|
export enum Consumable {
|
|
68
113
|
Potion = 0,
|
|
69
114
|
Bomb = 1,
|
|
@@ -79,12 +124,6 @@ export enum OutputModelKind {
|
|
|
79
124
|
}
|
|
80
125
|
/**
|
|
81
126
|
*/
|
|
82
|
-
export enum Color {
|
|
83
|
-
White = 0,
|
|
84
|
-
Black = 1,
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
*/
|
|
88
127
|
export enum MonKind {
|
|
89
128
|
Demon = 0,
|
|
90
129
|
Drainer = 1,
|
|
@@ -94,45 +133,6 @@ export enum MonKind {
|
|
|
94
133
|
}
|
|
95
134
|
/**
|
|
96
135
|
*/
|
|
97
|
-
export enum Modifier {
|
|
98
|
-
SelectPotion = 0,
|
|
99
|
-
SelectBomb = 1,
|
|
100
|
-
Cancel = 2,
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
*/
|
|
104
|
-
export enum GameVariant {
|
|
105
|
-
Classic = 0,
|
|
106
|
-
SwappedManaRows = 1,
|
|
107
|
-
OffsetArcManaRows = 2,
|
|
108
|
-
CenterSpokeManaRows = 3,
|
|
109
|
-
AlternatingManaRows = 4,
|
|
110
|
-
InnerWedgeManaRows = 5,
|
|
111
|
-
OuterWedgeManaRows = 6,
|
|
112
|
-
BentCenterManaRows = 7,
|
|
113
|
-
OuterEdgeManaRows = 8,
|
|
114
|
-
SplitFlankManaRows = 9,
|
|
115
|
-
ForwardBridgeManaRows = 10,
|
|
116
|
-
CornerChainManaRows = 11,
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
*/
|
|
120
|
-
export enum SquareModelKind {
|
|
121
|
-
Regular = 0,
|
|
122
|
-
ConsumableBase = 1,
|
|
123
|
-
SupermanaBase = 2,
|
|
124
|
-
ManaBase = 3,
|
|
125
|
-
ManaPool = 4,
|
|
126
|
-
MonBase = 5,
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
*/
|
|
130
|
-
export enum ManaKind {
|
|
131
|
-
Regular = 0,
|
|
132
|
-
Supermana = 1,
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
*/
|
|
136
136
|
export class EventModel {
|
|
137
137
|
free(): void;
|
|
138
138
|
/**
|
package/mons-rust.js
CHANGED
|
@@ -201,7 +201,7 @@ function handleError(f, args) {
|
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
203
203
|
*/
|
|
204
|
-
module.exports.
|
|
204
|
+
module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
205
205
|
/**
|
|
206
206
|
*/
|
|
207
207
|
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", });
|
|
@@ -210,31 +210,31 @@ module.exports.ItemModelKind = Object.freeze({ Mon:0,"0":"Mon",Mana:1,"1":"Mana"
|
|
|
210
210
|
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", });
|
|
211
211
|
/**
|
|
212
212
|
*/
|
|
213
|
-
module.exports.
|
|
213
|
+
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", });
|
|
214
214
|
/**
|
|
215
215
|
*/
|
|
216
|
-
module.exports.
|
|
216
|
+
module.exports.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", });
|
|
217
217
|
/**
|
|
218
218
|
*/
|
|
219
|
-
module.exports.
|
|
219
|
+
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", });
|
|
220
220
|
/**
|
|
221
221
|
*/
|
|
222
|
-
module.exports.
|
|
222
|
+
module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
223
223
|
/**
|
|
224
224
|
*/
|
|
225
|
-
module.exports.
|
|
225
|
+
module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
226
226
|
/**
|
|
227
227
|
*/
|
|
228
228
|
module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
229
229
|
/**
|
|
230
230
|
*/
|
|
231
|
-
module.exports.
|
|
231
|
+
module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
232
232
|
/**
|
|
233
233
|
*/
|
|
234
|
-
module.exports.
|
|
234
|
+
module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
235
235
|
/**
|
|
236
236
|
*/
|
|
237
|
-
module.exports.
|
|
237
|
+
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", });
|
|
238
238
|
|
|
239
239
|
const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
240
240
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1402,13 +1402,13 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
1402
1402
|
return addHeapObject(ret);
|
|
1403
1403
|
};
|
|
1404
1404
|
|
|
1405
|
-
module.exports.
|
|
1406
|
-
const ret =
|
|
1405
|
+
module.exports.__wbg_location_new = function(arg0) {
|
|
1406
|
+
const ret = Location.__wrap(arg0);
|
|
1407
1407
|
return addHeapObject(ret);
|
|
1408
1408
|
};
|
|
1409
1409
|
|
|
1410
|
-
module.exports.
|
|
1411
|
-
const ret =
|
|
1410
|
+
module.exports.__wbg_eventmodel_new = function(arg0) {
|
|
1411
|
+
const ret = EventModel.__wrap(arg0);
|
|
1412
1412
|
return addHeapObject(ret);
|
|
1413
1413
|
};
|
|
1414
1414
|
|
package/mons-rust_bg.wasm
CHANGED
|
Binary file
|