mons-rust 0.1.134 → 0.2.0
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/README.md +88 -53
- package/mons-rust-internal.cjs +1 -0
- package/mons-rust.d.ts +71 -71
- package/mons-rust.js +33 -1583
- package/package.json +4 -3
- package/mons-rust_bg.wasm +0 -0
- package/snippets/mons-rust-cba9eedc04d5b215/inline0.js +0 -1
package/mons-rust.d.ts
CHANGED
|
@@ -10,24 +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
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
export enum EventModelKind {
|
|
14
|
+
MonMove = 0,
|
|
15
|
+
ManaMove = 1,
|
|
16
|
+
ManaScored = 2,
|
|
17
|
+
MysticAction = 3,
|
|
18
|
+
DemonAction = 4,
|
|
19
|
+
DemonAdditionalStep = 5,
|
|
20
|
+
SpiritTargetMove = 6,
|
|
21
|
+
PickupBomb = 7,
|
|
22
|
+
PickupPotion = 8,
|
|
23
|
+
PickupMana = 9,
|
|
24
|
+
MonFainted = 10,
|
|
25
|
+
ManaDropped = 11,
|
|
26
|
+
SupermanaBackToBase = 12,
|
|
27
|
+
BombAttack = 13,
|
|
28
|
+
MonAwake = 14,
|
|
29
|
+
BombExplosion = 15,
|
|
30
|
+
NextTurn = 16,
|
|
31
|
+
GameOver = 17,
|
|
32
|
+
Takeback = 18,
|
|
33
|
+
UsePotion = 19,
|
|
16
34
|
}
|
|
17
35
|
/**
|
|
18
36
|
*/
|
|
19
|
-
export enum
|
|
20
|
-
|
|
21
|
-
|
|
37
|
+
export enum Consumable {
|
|
38
|
+
Potion = 0,
|
|
39
|
+
Bomb = 1,
|
|
40
|
+
BombOrPotion = 2,
|
|
22
41
|
}
|
|
23
42
|
/**
|
|
24
43
|
*/
|
|
25
|
-
export enum
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
44
|
+
export enum SquareModelKind {
|
|
45
|
+
Regular = 0,
|
|
46
|
+
ConsumableBase = 1,
|
|
47
|
+
SupermanaBase = 2,
|
|
48
|
+
ManaBase = 3,
|
|
49
|
+
ManaPool = 4,
|
|
50
|
+
MonBase = 5,
|
|
31
51
|
}
|
|
32
52
|
/**
|
|
33
53
|
*/
|
|
@@ -44,34 +64,25 @@ export enum NextInputKind {
|
|
|
44
64
|
}
|
|
45
65
|
/**
|
|
46
66
|
*/
|
|
47
|
-
export enum
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
67
|
+
export enum OutputModelKind {
|
|
68
|
+
InvalidInput = 0,
|
|
69
|
+
LocationsToStartFrom = 1,
|
|
70
|
+
NextInputOptions = 2,
|
|
71
|
+
Events = 3,
|
|
51
72
|
}
|
|
52
73
|
/**
|
|
53
74
|
*/
|
|
54
|
-
export enum
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
OffsetArcManaRows = 2,
|
|
58
|
-
CenterSpokeManaRows = 3,
|
|
59
|
-
AlternatingManaRows = 4,
|
|
60
|
-
InnerWedgeManaRows = 5,
|
|
61
|
-
OuterWedgeManaRows = 6,
|
|
62
|
-
BentCenterManaRows = 7,
|
|
63
|
-
OuterEdgeManaRows = 8,
|
|
64
|
-
SplitFlankManaRows = 9,
|
|
65
|
-
ForwardBridgeManaRows = 10,
|
|
66
|
-
CornerChainManaRows = 11,
|
|
75
|
+
export enum ManaKind {
|
|
76
|
+
Regular = 0,
|
|
77
|
+
Supermana = 1,
|
|
67
78
|
}
|
|
68
79
|
/**
|
|
69
80
|
*/
|
|
70
|
-
export enum
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
81
|
+
export enum AvailableMoveKind {
|
|
82
|
+
MonMove = 0,
|
|
83
|
+
ManaMove = 1,
|
|
84
|
+
Action = 2,
|
|
85
|
+
Potion = 3,
|
|
75
86
|
}
|
|
76
87
|
/**
|
|
77
88
|
*/
|
|
@@ -84,52 +95,41 @@ export enum MonKind {
|
|
|
84
95
|
}
|
|
85
96
|
/**
|
|
86
97
|
*/
|
|
87
|
-
export enum
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
export enum GameVariant {
|
|
99
|
+
Classic = 0,
|
|
100
|
+
SwappedManaRows = 1,
|
|
101
|
+
OffsetArcManaRows = 2,
|
|
102
|
+
CenterSpokeManaRows = 3,
|
|
103
|
+
AlternatingManaRows = 4,
|
|
104
|
+
InnerWedgeManaRows = 5,
|
|
105
|
+
OuterWedgeManaRows = 6,
|
|
106
|
+
BentCenterManaRows = 7,
|
|
107
|
+
OuterEdgeManaRows = 8,
|
|
108
|
+
SplitFlankManaRows = 9,
|
|
109
|
+
ForwardBridgeManaRows = 10,
|
|
110
|
+
CornerChainManaRows = 11,
|
|
94
111
|
}
|
|
95
112
|
/**
|
|
96
113
|
*/
|
|
97
|
-
export enum
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
DemonAdditionalStep = 5,
|
|
104
|
-
SpiritTargetMove = 6,
|
|
105
|
-
PickupBomb = 7,
|
|
106
|
-
PickupPotion = 8,
|
|
107
|
-
PickupMana = 9,
|
|
108
|
-
MonFainted = 10,
|
|
109
|
-
ManaDropped = 11,
|
|
110
|
-
SupermanaBackToBase = 12,
|
|
111
|
-
BombAttack = 13,
|
|
112
|
-
MonAwake = 14,
|
|
113
|
-
BombExplosion = 15,
|
|
114
|
-
NextTurn = 16,
|
|
115
|
-
GameOver = 17,
|
|
116
|
-
Takeback = 18,
|
|
117
|
-
UsePotion = 19,
|
|
114
|
+
export enum ItemModelKind {
|
|
115
|
+
Mon = 0,
|
|
116
|
+
Mana = 1,
|
|
117
|
+
MonWithMana = 2,
|
|
118
|
+
MonWithConsumable = 3,
|
|
119
|
+
Consumable = 4,
|
|
118
120
|
}
|
|
119
121
|
/**
|
|
120
122
|
*/
|
|
121
|
-
export enum
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
Potion = 3,
|
|
123
|
+
export enum Modifier {
|
|
124
|
+
SelectPotion = 0,
|
|
125
|
+
SelectBomb = 1,
|
|
126
|
+
Cancel = 2,
|
|
126
127
|
}
|
|
127
128
|
/**
|
|
128
129
|
*/
|
|
129
|
-
export enum
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
BombOrPotion = 2,
|
|
130
|
+
export enum Color {
|
|
131
|
+
White = 0,
|
|
132
|
+
Black = 1,
|
|
133
133
|
}
|
|
134
134
|
/**
|
|
135
135
|
*/
|