mons-rust 0.1.79 → 0.1.81

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
@@ -17,17 +17,32 @@ export enum Modifier {
17
17
  }
18
18
  /**
19
19
  */
20
- export enum ManaKind {
20
+ export enum SquareModelKind {
21
21
  Regular = 0,
22
- Supermana = 1,
22
+ ConsumableBase = 1,
23
+ SupermanaBase = 2,
24
+ ManaBase = 3,
25
+ ManaPool = 4,
26
+ MonBase = 5,
23
27
  }
24
28
  /**
25
29
  */
26
- export enum OutputModelKind {
27
- InvalidInput = 0,
28
- LocationsToStartFrom = 1,
29
- NextInputOptions = 2,
30
- Events = 3,
30
+ export enum NextInputKind {
31
+ MonMove = 0,
32
+ ManaMove = 1,
33
+ MysticAction = 2,
34
+ DemonAction = 3,
35
+ DemonAdditionalStep = 4,
36
+ SpiritTargetCapture = 5,
37
+ SpiritTargetMove = 6,
38
+ SelectConsumable = 7,
39
+ BombAttack = 8,
40
+ }
41
+ /**
42
+ */
43
+ export enum ManaKind {
44
+ Regular = 0,
45
+ Supermana = 1,
31
46
  }
32
47
  /**
33
48
  */
@@ -55,35 +70,6 @@ export enum EventModelKind {
55
70
  }
56
71
  /**
57
72
  */
58
- export enum SquareModelKind {
59
- Regular = 0,
60
- ConsumableBase = 1,
61
- SupermanaBase = 2,
62
- ManaBase = 3,
63
- ManaPool = 4,
64
- MonBase = 5,
65
- }
66
- /**
67
- */
68
- export enum Color {
69
- White = 0,
70
- Black = 1,
71
- }
72
- /**
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
73
  export enum AvailableMoveKind {
88
74
  MonMove = 0,
89
75
  ManaMove = 1,
@@ -108,6 +94,14 @@ export enum Consumable {
108
94
  }
109
95
  /**
110
96
  */
97
+ export enum OutputModelKind {
98
+ InvalidInput = 0,
99
+ LocationsToStartFrom = 1,
100
+ NextInputOptions = 2,
101
+ Events = 3,
102
+ }
103
+ /**
104
+ */
111
105
  export enum ItemModelKind {
112
106
  Mon = 0,
113
107
  Mana = 1,
@@ -117,6 +111,12 @@ export enum ItemModelKind {
117
111
  }
118
112
  /**
119
113
  */
114
+ export enum Color {
115
+ White = 0,
116
+ Black = 1,
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__h48980de9f302649c(arg0, arg1);
153
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2f4219ba1d070c88(arg0, arg1);
154
154
  }
155
155
 
156
156
  let cachedUint32Memory0 = null;
@@ -242,22 +242,16 @@ function __wbg_adapter_152(arg0, arg1, arg2, arg3) {
242
242
  module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
243
243
  /**
244
244
  */
245
- module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
246
- /**
247
- */
248
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
249
- /**
250
- */
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", });
245
+ 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", });
252
246
  /**
253
247
  */
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", });
248
+ 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", });
255
249
  /**
256
250
  */
257
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
251
+ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
258
252
  /**
259
253
  */
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", });
254
+ 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", });
261
255
  /**
262
256
  */
263
257
  module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
@@ -269,7 +263,13 @@ module.exports.MonKind = Object.freeze({ Demon:0,"0":"Demon",Drainer:1,"1":"Drai
269
263
  module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
270
264
  /**
271
265
  */
266
+ module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
267
+ /**
268
+ */
272
269
  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", });
270
+ /**
271
+ */
272
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
273
273
 
274
274
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
275
275
  ? { register: () => {}, unregister: () => {} }
@@ -1421,11 +1421,6 @@ 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
-
1429
1424
  module.exports.__wbindgen_number_new = function(arg0) {
1430
1425
  const ret = arg0;
1431
1426
  return addHeapObject(ret);
@@ -1441,6 +1436,11 @@ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1441
1436
  return addHeapObject(ret);
1442
1437
  };
1443
1438
 
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_wrapper373 = function(arg0, arg1, arg2) {
1658
+ module.exports.__wbindgen_closure_wrapper379 = 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.79",
4
+ "version": "0.1.81",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",