mons-rust 0.1.23 → 0.1.24

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 CHANGED
@@ -16,22 +16,6 @@ export enum Color {
16
16
  }
17
17
  /**
18
18
  */
19
- export enum AvailableMoveKind {
20
- MonMove = 0,
21
- ManaMove = 1,
22
- Action = 2,
23
- Potion = 3,
24
- }
25
- /**
26
- */
27
- export enum OutputModelKind {
28
- InvalidInput = 0,
29
- LocationsToStartFrom = 1,
30
- NextInputOptions = 2,
31
- Events = 3,
32
- }
33
- /**
34
- */
35
19
  export enum NextInputKind {
36
20
  MonMove = 0,
37
21
  ManaMove = 1,
@@ -45,22 +29,11 @@ export enum NextInputKind {
45
29
  }
46
30
  /**
47
31
  */
48
- export enum ItemModelKind {
49
- Mon = 0,
50
- Mana = 1,
51
- MonWithMana = 2,
52
- MonWithConsumable = 3,
53
- Consumable = 4,
54
- }
55
- /**
56
- */
57
- export enum SquareModelKind {
58
- Regular = 0,
59
- ConsumableBase = 1,
60
- SupermanaBase = 2,
61
- ManaBase = 3,
62
- ManaPool = 4,
63
- MonBase = 5,
32
+ export enum OutputModelKind {
33
+ InvalidInput = 0,
34
+ LocationsToStartFrom = 1,
35
+ NextInputOptions = 2,
36
+ Events = 3,
64
37
  }
65
38
  /**
66
39
  */
@@ -70,22 +43,6 @@ export enum ManaKind {
70
43
  }
71
44
  /**
72
45
  */
73
- export enum Consumable {
74
- Potion = 0,
75
- Bomb = 1,
76
- BombOrPotion = 2,
77
- }
78
- /**
79
- */
80
- export enum MonKind {
81
- Demon = 0,
82
- Drainer = 1,
83
- Angel = 2,
84
- Spirit = 3,
85
- Mystic = 4,
86
- }
87
- /**
88
- */
89
46
  export enum EventModelKind {
90
47
  MonMove = 0,
91
48
  ManaMove = 1,
@@ -108,6 +65,21 @@ export enum EventModelKind {
108
65
  }
109
66
  /**
110
67
  */
68
+ export enum AvailableMoveKind {
69
+ MonMove = 0,
70
+ ManaMove = 1,
71
+ Action = 2,
72
+ Potion = 3,
73
+ }
74
+ /**
75
+ */
76
+ export enum Consumable {
77
+ Potion = 0,
78
+ Bomb = 1,
79
+ BombOrPotion = 2,
80
+ }
81
+ /**
82
+ */
111
83
  export enum Modifier {
112
84
  SelectPotion = 0,
113
85
  SelectBomb = 1,
@@ -115,6 +87,34 @@ export enum Modifier {
115
87
  }
116
88
  /**
117
89
  */
90
+ export enum SquareModelKind {
91
+ Regular = 0,
92
+ ConsumableBase = 1,
93
+ SupermanaBase = 2,
94
+ ManaBase = 3,
95
+ ManaPool = 4,
96
+ MonBase = 5,
97
+ }
98
+ /**
99
+ */
100
+ export enum ItemModelKind {
101
+ Mon = 0,
102
+ Mana = 1,
103
+ MonWithMana = 2,
104
+ MonWithConsumable = 3,
105
+ Consumable = 4,
106
+ }
107
+ /**
108
+ */
109
+ export enum MonKind {
110
+ Demon = 0,
111
+ Drainer = 1,
112
+ Angel = 2,
113
+ Spirit = 3,
114
+ Mystic = 4,
115
+ }
116
+ /**
117
+ */
118
118
  export class EventModel {
119
119
  free(): void;
120
120
  /**
package/mons-web.js CHANGED
@@ -194,34 +194,34 @@ export function winner(fen_w, fen_b, flat_moves_string_w, flat_moves_string_b) {
194
194
  export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
195
195
  /**
196
196
  */
197
- export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
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
200
  export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
201
201
  /**
202
202
  */
203
- 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", });
203
+ export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
204
204
  /**
205
205
  */
206
- 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", });
206
+ 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", });
207
207
  /**
208
208
  */
209
- 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", });
209
+ export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
210
210
  /**
211
211
  */
212
- export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
212
+ export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
213
213
  /**
214
214
  */
215
- export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
215
+ export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
216
216
  /**
217
217
  */
218
- 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", });
218
+ 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", });
219
219
  /**
220
220
  */
221
- 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", });
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 Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
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,10 +1149,6 @@ async function __wbg_load(module, imports) {
1149
1149
  function __wbg_get_imports() {
1150
1150
  const imports = {};
1151
1151
  imports.wbg = {};
1152
- imports.wbg.__wbg_location_new = function(arg0) {
1153
- const ret = Location.__wrap(arg0);
1154
- return addHeapObject(ret);
1155
- };
1156
1152
  imports.wbg.__wbg_nextinputmodel_new = function(arg0) {
1157
1153
  const ret = NextInputModel.__wrap(arg0);
1158
1154
  return addHeapObject(ret);
@@ -1161,6 +1157,10 @@ function __wbg_get_imports() {
1161
1157
  const ret = EventModel.__wrap(arg0);
1162
1158
  return addHeapObject(ret);
1163
1159
  };
1160
+ imports.wbg.__wbg_location_new = function(arg0) {
1161
+ const ret = Location.__wrap(arg0);
1162
+ return addHeapObject(ret);
1163
+ };
1164
1164
  imports.wbg.__wbg_location_unwrap = function(arg0) {
1165
1165
  const ret = Location.__unwrap(takeObject(arg0));
1166
1166
  return ret;
package/mons-web_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mons-rust",
3
3
  "description": "super metal mons",
4
- "version": "0.1.23",
4
+ "version": "0.1.24",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",