mons-rust 0.1.109 → 0.1.110

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,6 +10,30 @@
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 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,
34
+ }
35
+ /**
36
+ */
13
37
  export enum MonKind {
14
38
  Demon = 0,
15
39
  Drainer = 1,
@@ -19,40 +43,34 @@ export enum MonKind {
19
43
  }
20
44
  /**
21
45
  */
22
- export enum OutputModelKind {
23
- InvalidInput = 0,
24
- LocationsToStartFrom = 1,
25
- NextInputOptions = 2,
26
- Events = 3,
27
- }
28
- /**
29
- */
30
- export enum Modifier {
31
- SelectPotion = 0,
32
- SelectBomb = 1,
33
- Cancel = 2,
46
+ export enum ItemModelKind {
47
+ Mon = 0,
48
+ Mana = 1,
49
+ MonWithMana = 2,
50
+ MonWithConsumable = 3,
51
+ Consumable = 4,
34
52
  }
35
53
  /**
36
54
  */
37
- export enum Consumable {
38
- Potion = 0,
39
- Bomb = 1,
40
- BombOrPotion = 2,
55
+ export enum ManaKind {
56
+ Regular = 0,
57
+ Supermana = 1,
41
58
  }
42
59
  /**
43
60
  */
44
- export enum Color {
45
- White = 0,
46
- Black = 1,
61
+ export enum OutputModelKind {
62
+ InvalidInput = 0,
63
+ LocationsToStartFrom = 1,
64
+ NextInputOptions = 2,
65
+ Events = 3,
47
66
  }
48
67
  /**
49
68
  */
50
- export enum ItemModelKind {
51
- Mon = 0,
52
- Mana = 1,
53
- MonWithMana = 2,
54
- MonWithConsumable = 3,
55
- Consumable = 4,
69
+ export enum AvailableMoveKind {
70
+ MonMove = 0,
71
+ ManaMove = 1,
72
+ Action = 2,
73
+ Potion = 3,
56
74
  }
57
75
  /**
58
76
  */
@@ -69,14 +87,6 @@ export enum NextInputKind {
69
87
  }
70
88
  /**
71
89
  */
72
- export enum AvailableMoveKind {
73
- MonMove = 0,
74
- ManaMove = 1,
75
- Action = 2,
76
- Potion = 3,
77
- }
78
- /**
79
- */
80
90
  export enum SquareModelKind {
81
91
  Regular = 0,
82
92
  ConsumableBase = 1,
@@ -87,33 +97,23 @@ export enum SquareModelKind {
87
97
  }
88
98
  /**
89
99
  */
90
- export enum ManaKind {
91
- Regular = 0,
92
- Supermana = 1,
100
+ export enum Color {
101
+ White = 0,
102
+ Black = 1,
93
103
  }
94
104
  /**
95
105
  */
96
- export enum EventModelKind {
97
- MonMove = 0,
98
- ManaMove = 1,
99
- ManaScored = 2,
100
- MysticAction = 3,
101
- DemonAction = 4,
102
- DemonAdditionalStep = 5,
103
- SpiritTargetMove = 6,
104
- PickupBomb = 7,
105
- PickupPotion = 8,
106
- PickupMana = 9,
107
- MonFainted = 10,
108
- ManaDropped = 11,
109
- SupermanaBackToBase = 12,
110
- BombAttack = 13,
111
- MonAwake = 14,
112
- BombExplosion = 15,
113
- NextTurn = 16,
114
- GameOver = 17,
115
- Takeback = 18,
116
- UsePotion = 19,
106
+ export enum Consumable {
107
+ Potion = 0,
108
+ Bomb = 1,
109
+ BombOrPotion = 2,
110
+ }
111
+ /**
112
+ */
113
+ export enum Modifier {
114
+ SelectPotion = 0,
115
+ SelectBomb = 1,
116
+ Cancel = 2,
117
117
  }
118
118
  /**
119
119
  */
package/mons-rust.js CHANGED
@@ -150,7 +150,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
150
150
  return real;
151
151
  }
152
152
  function __wbg_adapter_26(arg0, arg1) {
153
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h07d4593ed097e036(arg0, arg1);
153
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf0581f4b625ca923(arg0, arg1);
154
154
  }
155
155
 
156
156
  let cachedUint32Memory0 = null;
@@ -239,37 +239,37 @@ function __wbg_adapter_151(arg0, arg1, arg2, arg3) {
239
239
 
240
240
  /**
241
241
  */
242
- 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", });
242
+ 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",UsePotion:19,"19":"UsePotion", });
243
243
  /**
244
244
  */
245
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
245
+ 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", });
246
246
  /**
247
247
  */
248
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
248
+ 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", });
249
249
  /**
250
250
  */
251
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
251
+ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
252
252
  /**
253
253
  */
254
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
254
+ module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
255
255
  /**
256
256
  */
257
- 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", });
257
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
258
258
  /**
259
259
  */
260
260
  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", });
261
261
  /**
262
262
  */
263
- module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
263
+ 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", });
264
264
  /**
265
265
  */
266
- 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", });
266
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
267
267
  /**
268
268
  */
269
- module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
269
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
270
270
  /**
271
271
  */
272
- 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",UsePotion:19,"19":"UsePotion", });
272
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
273
273
 
274
274
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
275
275
  ? { register: () => {}, unregister: () => {} }
@@ -1454,11 +1454,6 @@ module.exports.__wbg_outputmodel_new = function(arg0) {
1454
1454
  return addHeapObject(ret);
1455
1455
  };
1456
1456
 
1457
- module.exports.__wbg_eventmodel_new = function(arg0) {
1458
- const ret = EventModel.__wrap(arg0);
1459
- return addHeapObject(ret);
1460
- };
1461
-
1462
1457
  module.exports.__wbg_nextinputmodel_new = function(arg0) {
1463
1458
  const ret = NextInputModel.__wrap(arg0);
1464
1459
  return addHeapObject(ret);
@@ -1469,6 +1464,11 @@ module.exports.__wbg_location_new = function(arg0) {
1469
1464
  return addHeapObject(ret);
1470
1465
  };
1471
1466
 
1467
+ module.exports.__wbg_eventmodel_new = function(arg0) {
1468
+ const ret = EventModel.__wrap(arg0);
1469
+ return addHeapObject(ret);
1470
+ };
1471
+
1472
1472
  module.exports.__wbg_verbosetrackingentitymodel_new = function(arg0) {
1473
1473
  const ret = VerboseTrackingEntityModel.__wrap(arg0);
1474
1474
  return addHeapObject(ret);
package/mons-rust_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.109",
4
+ "version": "0.1.110",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",