mons-rust 0.1.30 → 0.1.31
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 +43 -43
- package/mons-rust.js +10 -10
- package/mons-rust_bg.wasm +0 -0
- package/package.json +1 -1
package/mons-rust.d.ts
CHANGED
|
@@ -10,19 +10,16 @@
|
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Angel = 2,
|
|
24
|
-
Spirit = 3,
|
|
25
|
-
Mystic = 4,
|
|
13
|
+
export enum NextInputKind {
|
|
14
|
+
MonMove = 0,
|
|
15
|
+
ManaMove = 1,
|
|
16
|
+
MysticAction = 2,
|
|
17
|
+
DemonAction = 3,
|
|
18
|
+
DemonAdditionalStep = 4,
|
|
19
|
+
SpiritTargetCapture = 5,
|
|
20
|
+
SpiritTargetMove = 6,
|
|
21
|
+
SelectConsumable = 7,
|
|
22
|
+
BombAttack = 8,
|
|
26
23
|
}
|
|
27
24
|
/**
|
|
28
25
|
*/
|
|
@@ -49,13 +46,6 @@ export enum EventModelKind {
|
|
|
49
46
|
}
|
|
50
47
|
/**
|
|
51
48
|
*/
|
|
52
|
-
export enum Modifier {
|
|
53
|
-
SelectPotion = 0,
|
|
54
|
-
SelectBomb = 1,
|
|
55
|
-
Cancel = 2,
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
*/
|
|
59
49
|
export enum OutputModelKind {
|
|
60
50
|
InvalidInput = 0,
|
|
61
51
|
LocationsToStartFrom = 1,
|
|
@@ -64,16 +54,9 @@ export enum OutputModelKind {
|
|
|
64
54
|
}
|
|
65
55
|
/**
|
|
66
56
|
*/
|
|
67
|
-
export enum
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
MysticAction = 2,
|
|
71
|
-
DemonAction = 3,
|
|
72
|
-
DemonAdditionalStep = 4,
|
|
73
|
-
SpiritTargetCapture = 5,
|
|
74
|
-
SpiritTargetMove = 6,
|
|
75
|
-
SelectConsumable = 7,
|
|
76
|
-
BombAttack = 8,
|
|
57
|
+
export enum ManaKind {
|
|
58
|
+
Regular = 0,
|
|
59
|
+
Supermana = 1,
|
|
77
60
|
}
|
|
78
61
|
/**
|
|
79
62
|
*/
|
|
@@ -86,19 +69,32 @@ export enum ItemModelKind {
|
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
*/
|
|
89
|
-
export enum
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
ManaBase = 3,
|
|
94
|
-
ManaPool = 4,
|
|
95
|
-
MonBase = 5,
|
|
72
|
+
export enum Consumable {
|
|
73
|
+
Potion = 0,
|
|
74
|
+
Bomb = 1,
|
|
75
|
+
BombOrPotion = 2,
|
|
96
76
|
}
|
|
97
77
|
/**
|
|
98
78
|
*/
|
|
99
|
-
export enum
|
|
100
|
-
|
|
101
|
-
|
|
79
|
+
export enum MonKind {
|
|
80
|
+
Demon = 0,
|
|
81
|
+
Drainer = 1,
|
|
82
|
+
Angel = 2,
|
|
83
|
+
Spirit = 3,
|
|
84
|
+
Mystic = 4,
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
*/
|
|
88
|
+
export enum Color {
|
|
89
|
+
White = 0,
|
|
90
|
+
Black = 1,
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
*/
|
|
94
|
+
export enum Modifier {
|
|
95
|
+
SelectPotion = 0,
|
|
96
|
+
SelectBomb = 1,
|
|
97
|
+
Cancel = 2,
|
|
102
98
|
}
|
|
103
99
|
/**
|
|
104
100
|
*/
|
|
@@ -110,9 +106,13 @@ export enum AvailableMoveKind {
|
|
|
110
106
|
}
|
|
111
107
|
/**
|
|
112
108
|
*/
|
|
113
|
-
export enum
|
|
114
|
-
|
|
115
|
-
|
|
109
|
+
export enum SquareModelKind {
|
|
110
|
+
Regular = 0,
|
|
111
|
+
ConsumableBase = 1,
|
|
112
|
+
SupermanaBase = 2,
|
|
113
|
+
ManaBase = 3,
|
|
114
|
+
ManaPool = 4,
|
|
115
|
+
MonBase = 5,
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
118
|
*/
|
package/mons-rust.js
CHANGED
|
@@ -194,37 +194,37 @@ module.exports.winner = function(fen_w, fen_b, flat_moves_string_w, flat_moves_s
|
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
196
|
*/
|
|
197
|
-
module.exports.
|
|
197
|
+
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", });
|
|
198
198
|
/**
|
|
199
199
|
*/
|
|
200
|
-
module.exports.
|
|
200
|
+
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", });
|
|
201
201
|
/**
|
|
202
202
|
*/
|
|
203
|
-
module.exports.
|
|
203
|
+
module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
204
204
|
/**
|
|
205
205
|
*/
|
|
206
|
-
module.exports.
|
|
206
|
+
module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
207
207
|
/**
|
|
208
208
|
*/
|
|
209
|
-
module.exports.
|
|
209
|
+
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
210
|
/**
|
|
211
211
|
*/
|
|
212
|
-
module.exports.
|
|
212
|
+
module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
213
213
|
/**
|
|
214
214
|
*/
|
|
215
|
-
module.exports.
|
|
215
|
+
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", });
|
|
216
216
|
/**
|
|
217
217
|
*/
|
|
218
|
-
module.exports.
|
|
218
|
+
module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
219
219
|
/**
|
|
220
220
|
*/
|
|
221
|
-
module.exports.
|
|
221
|
+
module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
222
222
|
/**
|
|
223
223
|
*/
|
|
224
224
|
module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
225
225
|
/**
|
|
226
226
|
*/
|
|
227
|
-
module.exports.
|
|
227
|
+
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", });
|
|
228
228
|
|
|
229
229
|
const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
230
230
|
? { register: () => {}, unregister: () => {} }
|
package/mons-rust_bg.wasm
CHANGED
|
Binary file
|