mons-rust 0.1.23 → 0.1.25
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 +55 -55
- package/mons-web.js +15 -15
- package/mons-web_bg.wasm +0 -0
- package/package.json +1 -1
package/mons-web.d.ts
CHANGED
|
@@ -10,25 +10,25 @@
|
|
|
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
|
-
White = 0,
|
|
15
|
-
Black = 1,
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
*/
|
|
19
|
-
export enum AvailableMoveKind {
|
|
13
|
+
export enum EventModelKind {
|
|
20
14
|
MonMove = 0,
|
|
21
15
|
ManaMove = 1,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
*/
|
|
@@ -45,12 +45,16 @@ export enum NextInputKind {
|
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
*/
|
|
48
|
-
export enum
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
export enum ManaKind {
|
|
49
|
+
Regular = 0,
|
|
50
|
+
Supermana = 1,
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
*/
|
|
54
|
+
export enum Modifier {
|
|
55
|
+
SelectPotion = 0,
|
|
56
|
+
SelectBomb = 1,
|
|
57
|
+
Cancel = 2,
|
|
54
58
|
}
|
|
55
59
|
/**
|
|
56
60
|
*/
|
|
@@ -64,9 +68,25 @@ export enum SquareModelKind {
|
|
|
64
68
|
}
|
|
65
69
|
/**
|
|
66
70
|
*/
|
|
67
|
-
export enum
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
export enum Color {
|
|
72
|
+
White = 0,
|
|
73
|
+
Black = 1,
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
*/
|
|
77
|
+
export enum AvailableMoveKind {
|
|
78
|
+
MonMove = 0,
|
|
79
|
+
ManaMove = 1,
|
|
80
|
+
Action = 2,
|
|
81
|
+
Potion = 3,
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
*/
|
|
85
|
+
export enum OutputModelKind {
|
|
86
|
+
InvalidInput = 0,
|
|
87
|
+
LocationsToStartFrom = 1,
|
|
88
|
+
NextInputOptions = 2,
|
|
89
|
+
Events = 3,
|
|
70
90
|
}
|
|
71
91
|
/**
|
|
72
92
|
*/
|
|
@@ -77,6 +97,15 @@ export enum Consumable {
|
|
|
77
97
|
}
|
|
78
98
|
/**
|
|
79
99
|
*/
|
|
100
|
+
export enum ItemModelKind {
|
|
101
|
+
Mon = 0,
|
|
102
|
+
Mana = 1,
|
|
103
|
+
MonWithMana = 2,
|
|
104
|
+
MonWithConsumable = 3,
|
|
105
|
+
Consumable = 4,
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
*/
|
|
80
109
|
export enum MonKind {
|
|
81
110
|
Demon = 0,
|
|
82
111
|
Drainer = 1,
|
|
@@ -86,35 +115,6 @@ export enum MonKind {
|
|
|
86
115
|
}
|
|
87
116
|
/**
|
|
88
117
|
*/
|
|
89
|
-
export enum EventModelKind {
|
|
90
|
-
MonMove = 0,
|
|
91
|
-
ManaMove = 1,
|
|
92
|
-
ManaScored = 2,
|
|
93
|
-
MysticAction = 3,
|
|
94
|
-
DemonAction = 4,
|
|
95
|
-
DemonAdditionalStep = 5,
|
|
96
|
-
SpiritTargetMove = 6,
|
|
97
|
-
PickupBomb = 7,
|
|
98
|
-
PickupPotion = 8,
|
|
99
|
-
PickupMana = 9,
|
|
100
|
-
MonFainted = 10,
|
|
101
|
-
ManaDropped = 11,
|
|
102
|
-
SupermanaBackToBase = 12,
|
|
103
|
-
BombAttack = 13,
|
|
104
|
-
MonAwake = 14,
|
|
105
|
-
BombExplosion = 15,
|
|
106
|
-
NextTurn = 16,
|
|
107
|
-
GameOver = 17,
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
*/
|
|
111
|
-
export enum Modifier {
|
|
112
|
-
SelectPotion = 0,
|
|
113
|
-
SelectBomb = 1,
|
|
114
|
-
Cancel = 2,
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
*/
|
|
118
118
|
export class EventModel {
|
|
119
119
|
free(): void;
|
|
120
120
|
/**
|
package/mons-web.js
CHANGED
|
@@ -191,37 +191,37 @@ export function winner(fen_w, fen_b, flat_moves_string_w, flat_moves_string_b) {
|
|
|
191
191
|
|
|
192
192
|
/**
|
|
193
193
|
*/
|
|
194
|
-
export const
|
|
194
|
+
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", });
|
|
195
195
|
/**
|
|
196
196
|
*/
|
|
197
|
-
export const
|
|
197
|
+
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", });
|
|
198
198
|
/**
|
|
199
199
|
*/
|
|
200
|
-
export const
|
|
200
|
+
export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
201
201
|
/**
|
|
202
202
|
*/
|
|
203
|
-
export const
|
|
203
|
+
export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
204
204
|
/**
|
|
205
205
|
*/
|
|
206
|
-
export const
|
|
206
|
+
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", });
|
|
207
207
|
/**
|
|
208
208
|
*/
|
|
209
|
-
export const
|
|
209
|
+
export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
210
210
|
/**
|
|
211
211
|
*/
|
|
212
|
-
export const
|
|
212
|
+
export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
213
213
|
/**
|
|
214
214
|
*/
|
|
215
|
-
export const
|
|
215
|
+
export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
216
216
|
/**
|
|
217
217
|
*/
|
|
218
|
-
export const
|
|
218
|
+
export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
219
219
|
/**
|
|
220
220
|
*/
|
|
221
|
-
export const
|
|
221
|
+
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", });
|
|
222
222
|
/**
|
|
223
223
|
*/
|
|
224
|
-
export const
|
|
224
|
+
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", });
|
|
225
225
|
|
|
226
226
|
const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
227
227
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1149,16 +1149,16 @@ async function __wbg_load(module, imports) {
|
|
|
1149
1149
|
function __wbg_get_imports() {
|
|
1150
1150
|
const imports = {};
|
|
1151
1151
|
imports.wbg = {};
|
|
1152
|
-
imports.wbg.
|
|
1153
|
-
const ret =
|
|
1152
|
+
imports.wbg.__wbg_eventmodel_new = function(arg0) {
|
|
1153
|
+
const ret = EventModel.__wrap(arg0);
|
|
1154
1154
|
return addHeapObject(ret);
|
|
1155
1155
|
};
|
|
1156
1156
|
imports.wbg.__wbg_nextinputmodel_new = function(arg0) {
|
|
1157
1157
|
const ret = NextInputModel.__wrap(arg0);
|
|
1158
1158
|
return addHeapObject(ret);
|
|
1159
1159
|
};
|
|
1160
|
-
imports.wbg.
|
|
1161
|
-
const ret =
|
|
1160
|
+
imports.wbg.__wbg_location_new = function(arg0) {
|
|
1161
|
+
const ret = Location.__wrap(arg0);
|
|
1162
1162
|
return addHeapObject(ret);
|
|
1163
1163
|
};
|
|
1164
1164
|
imports.wbg.__wbg_location_unwrap = function(arg0) {
|
package/mons-web_bg.wasm
CHANGED
|
Binary file
|