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/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 Color {
14
- White = 0,
15
- Black = 1,
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 ManaKind {
20
- Regular = 0,
21
- Supermana = 1,
37
+ export enum Consumable {
38
+ Potion = 0,
39
+ Bomb = 1,
40
+ BombOrPotion = 2,
22
41
  }
23
42
  /**
24
43
  */
25
- export enum ItemModelKind {
26
- Mon = 0,
27
- Mana = 1,
28
- MonWithMana = 2,
29
- MonWithConsumable = 3,
30
- Consumable = 4,
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 Modifier {
48
- SelectPotion = 0,
49
- SelectBomb = 1,
50
- Cancel = 2,
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 GameVariant {
55
- Classic = 0,
56
- SwappedManaRows = 1,
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 OutputModelKind {
71
- InvalidInput = 0,
72
- LocationsToStartFrom = 1,
73
- NextInputOptions = 2,
74
- Events = 3,
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 SquareModelKind {
88
- Regular = 0,
89
- ConsumableBase = 1,
90
- SupermanaBase = 2,
91
- ManaBase = 3,
92
- ManaPool = 4,
93
- MonBase = 5,
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 EventModelKind {
98
- MonMove = 0,
99
- ManaMove = 1,
100
- ManaScored = 2,
101
- MysticAction = 3,
102
- DemonAction = 4,
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 AvailableMoveKind {
122
- MonMove = 0,
123
- ManaMove = 1,
124
- Action = 2,
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 Consumable {
130
- Potion = 0,
131
- Bomb = 1,
132
- BombOrPotion = 2,
130
+ export enum Color {
131
+ White = 0,
132
+ Black = 1,
133
133
  }
134
134
  /**
135
135
  */