mons-rust 0.1.78 → 0.1.79

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,41 +10,6 @@
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 ItemModelKind {
14
- Mon = 0,
15
- Mana = 1,
16
- MonWithMana = 2,
17
- MonWithConsumable = 3,
18
- Consumable = 4,
19
- }
20
- /**
21
- */
22
- export enum Consumable {
23
- Potion = 0,
24
- Bomb = 1,
25
- BombOrPotion = 2,
26
- }
27
- /**
28
- */
29
- export enum ManaKind {
30
- Regular = 0,
31
- Supermana = 1,
32
- }
33
- /**
34
- */
35
- export enum NextInputKind {
36
- MonMove = 0,
37
- ManaMove = 1,
38
- MysticAction = 2,
39
- DemonAction = 3,
40
- DemonAdditionalStep = 4,
41
- SpiritTargetCapture = 5,
42
- SpiritTargetMove = 6,
43
- SelectConsumable = 7,
44
- BombAttack = 8,
45
- }
46
- /**
47
- */
48
13
  export enum Modifier {
49
14
  SelectPotion = 0,
50
15
  SelectBomb = 1,
@@ -52,13 +17,9 @@ export enum Modifier {
52
17
  }
53
18
  /**
54
19
  */
55
- export enum SquareModelKind {
20
+ export enum ManaKind {
56
21
  Regular = 0,
57
- ConsumableBase = 1,
58
- SupermanaBase = 2,
59
- ManaBase = 3,
60
- ManaPool = 4,
61
- MonBase = 5,
22
+ Supermana = 1,
62
23
  }
63
24
  /**
64
25
  */
@@ -94,11 +55,13 @@ export enum EventModelKind {
94
55
  }
95
56
  /**
96
57
  */
97
- export enum AvailableMoveKind {
98
- MonMove = 0,
99
- ManaMove = 1,
100
- Action = 2,
101
- Potion = 3,
58
+ export enum SquareModelKind {
59
+ Regular = 0,
60
+ ConsumableBase = 1,
61
+ SupermanaBase = 2,
62
+ ManaBase = 3,
63
+ ManaPool = 4,
64
+ MonBase = 5,
102
65
  }
103
66
  /**
104
67
  */
@@ -108,6 +71,27 @@ export enum Color {
108
71
  }
109
72
  /**
110
73
  */
74
+ export enum NextInputKind {
75
+ MonMove = 0,
76
+ ManaMove = 1,
77
+ MysticAction = 2,
78
+ DemonAction = 3,
79
+ DemonAdditionalStep = 4,
80
+ SpiritTargetCapture = 5,
81
+ SpiritTargetMove = 6,
82
+ SelectConsumable = 7,
83
+ BombAttack = 8,
84
+ }
85
+ /**
86
+ */
87
+ export enum AvailableMoveKind {
88
+ MonMove = 0,
89
+ ManaMove = 1,
90
+ Action = 2,
91
+ Potion = 3,
92
+ }
93
+ /**
94
+ */
111
95
  export enum MonKind {
112
96
  Demon = 0,
113
97
  Drainer = 1,
@@ -117,6 +101,22 @@ export enum MonKind {
117
101
  }
118
102
  /**
119
103
  */
104
+ export enum Consumable {
105
+ Potion = 0,
106
+ Bomb = 1,
107
+ BombOrPotion = 2,
108
+ }
109
+ /**
110
+ */
111
+ export enum ItemModelKind {
112
+ Mon = 0,
113
+ Mana = 1,
114
+ MonWithMana = 2,
115
+ MonWithConsumable = 3,
116
+ Consumable = 4,
117
+ }
118
+ /**
119
+ */
120
120
  export class EventModel {
121
121
  free(): void;
122
122
  /**
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__hcbc1e14914feb0cf(arg0, arg1);
153
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h48980de9f302649c(arg0, arg1);
154
154
  }
155
155
 
156
156
  let cachedUint32Memory0 = null;
@@ -239,37 +239,37 @@ function __wbg_adapter_152(arg0, arg1, arg2, arg3) {
239
239
 
240
240
  /**
241
241
  */
242
- 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", });
243
- /**
244
- */
245
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
242
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
246
243
  /**
247
244
  */
248
245
  module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
249
246
  /**
250
247
  */
251
- 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", });
248
+ module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
252
249
  /**
253
250
  */
254
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
251
+ 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", });
255
252
  /**
256
253
  */
257
254
  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", });
258
255
  /**
259
256
  */
260
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
257
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
261
258
  /**
262
259
  */
263
- 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", });
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", });
264
261
  /**
265
262
  */
266
263
  module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
267
264
  /**
268
265
  */
269
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
266
+ 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", });
270
267
  /**
271
268
  */
272
- 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", });
269
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
270
+ /**
271
+ */
272
+ 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", });
273
273
 
274
274
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
275
275
  ? { register: () => {}, unregister: () => {} }
@@ -1421,6 +1421,11 @@ class VerboseTrackingEntityModel {
1421
1421
  }
1422
1422
  module.exports.VerboseTrackingEntityModel = VerboseTrackingEntityModel;
1423
1423
 
1424
+ module.exports.__wbg_location_new = function(arg0) {
1425
+ const ret = Location.__wrap(arg0);
1426
+ return addHeapObject(ret);
1427
+ };
1428
+
1424
1429
  module.exports.__wbindgen_number_new = function(arg0) {
1425
1430
  const ret = arg0;
1426
1431
  return addHeapObject(ret);
@@ -1436,11 +1441,6 @@ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1436
1441
  return addHeapObject(ret);
1437
1442
  };
1438
1443
 
1439
- module.exports.__wbg_location_new = function(arg0) {
1440
- const ret = Location.__wrap(arg0);
1441
- return addHeapObject(ret);
1442
- };
1443
-
1444
1444
  module.exports.__wbg_outputmodel_new = function(arg0) {
1445
1445
  const ret = OutputModel.__wrap(arg0);
1446
1446
  return addHeapObject(ret);
@@ -1655,7 +1655,7 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
1655
1655
  throw new Error(getStringFromWasm0(arg0, arg1));
1656
1656
  };
1657
1657
 
1658
- module.exports.__wbindgen_closure_wrapper377 = function(arg0, arg1, arg2) {
1658
+ module.exports.__wbindgen_closure_wrapper373 = function(arg0, arg1, arg2) {
1659
1659
  const ret = makeMutClosure(arg0, arg1, 23, __wbg_adapter_26);
1660
1660
  return addHeapObject(ret);
1661
1661
  };
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.78",
4
+ "version": "0.1.79",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",