mons-rust 0.1.48 → 0.1.50

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
@@ -19,6 +19,36 @@ export enum MonKind {
19
19
  }
20
20
  /**
21
21
  */
22
+ export enum Modifier {
23
+ SelectPotion = 0,
24
+ SelectBomb = 1,
25
+ Cancel = 2,
26
+ }
27
+ /**
28
+ */
29
+ export enum OutputModelKind {
30
+ InvalidInput = 0,
31
+ LocationsToStartFrom = 1,
32
+ NextInputOptions = 2,
33
+ Events = 3,
34
+ }
35
+ /**
36
+ */
37
+ export enum ManaKind {
38
+ Regular = 0,
39
+ Supermana = 1,
40
+ }
41
+ /**
42
+ */
43
+ export enum ItemModelKind {
44
+ Mon = 0,
45
+ Mana = 1,
46
+ MonWithMana = 2,
47
+ MonWithConsumable = 3,
48
+ Consumable = 4,
49
+ }
50
+ /**
51
+ */
22
52
  export enum EventModelKind {
23
53
  MonMove = 0,
24
54
  ManaMove = 1,
@@ -50,27 +80,6 @@ export enum AvailableMoveKind {
50
80
  }
51
81
  /**
52
82
  */
53
- export enum Color {
54
- White = 0,
55
- Black = 1,
56
- }
57
- /**
58
- */
59
- export enum ManaKind {
60
- Regular = 0,
61
- Supermana = 1,
62
- }
63
- /**
64
- */
65
- export enum ItemModelKind {
66
- Mon = 0,
67
- Mana = 1,
68
- MonWithMana = 2,
69
- MonWithConsumable = 3,
70
- Consumable = 4,
71
- }
72
- /**
73
- */
74
83
  export enum Consumable {
75
84
  Potion = 0,
76
85
  Bomb = 1,
@@ -78,13 +87,9 @@ export enum Consumable {
78
87
  }
79
88
  /**
80
89
  */
81
- export enum SquareModelKind {
82
- Regular = 0,
83
- ConsumableBase = 1,
84
- SupermanaBase = 2,
85
- ManaBase = 3,
86
- ManaPool = 4,
87
- MonBase = 5,
90
+ export enum Color {
91
+ White = 0,
92
+ Black = 1,
88
93
  }
89
94
  /**
90
95
  */
@@ -101,18 +106,13 @@ export enum NextInputKind {
101
106
  }
102
107
  /**
103
108
  */
104
- export enum Modifier {
105
- SelectPotion = 0,
106
- SelectBomb = 1,
107
- Cancel = 2,
108
- }
109
- /**
110
- */
111
- export enum OutputModelKind {
112
- InvalidInput = 0,
113
- LocationsToStartFrom = 1,
114
- NextInputOptions = 2,
115
- Events = 3,
109
+ export enum SquareModelKind {
110
+ Regular = 0,
111
+ ConsumableBase = 1,
112
+ SupermanaBase = 2,
113
+ ManaBase = 3,
114
+ ManaPool = 4,
115
+ MonBase = 5,
116
116
  }
117
117
  /**
118
118
  */
package/mons-rust.js CHANGED
@@ -204,13 +204,10 @@ function handleError(f, args) {
204
204
  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", });
205
205
  /**
206
206
  */
207
- 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", });
208
- /**
209
- */
210
- module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
207
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
211
208
  /**
212
209
  */
213
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
210
+ module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
214
211
  /**
215
212
  */
216
213
  module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
@@ -219,19 +216,22 @@ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1
219
216
  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", });
220
217
  /**
221
218
  */
222
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
219
+ 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", });
223
220
  /**
224
221
  */
225
- 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", });
222
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
226
223
  /**
227
224
  */
228
- 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", });
225
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
229
226
  /**
230
227
  */
231
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
228
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
232
229
  /**
233
230
  */
234
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
231
+ 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", });
232
+ /**
233
+ */
234
+ 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", });
235
235
 
236
236
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
237
237
  ? { register: () => {}, unregister: () => {} }
@@ -1206,8 +1206,8 @@ class SquareModel {
1206
1206
  }
1207
1207
  module.exports.SquareModel = SquareModel;
1208
1208
 
1209
- module.exports.__wbg_location_new = function(arg0) {
1210
- const ret = Location.__wrap(arg0);
1209
+ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1210
+ const ret = NextInputModel.__wrap(arg0);
1211
1211
  return addHeapObject(ret);
1212
1212
  };
1213
1213
 
@@ -1216,8 +1216,8 @@ module.exports.__wbg_eventmodel_new = function(arg0) {
1216
1216
  return addHeapObject(ret);
1217
1217
  };
1218
1218
 
1219
- module.exports.__wbg_nextinputmodel_new = function(arg0) {
1220
- const ret = NextInputModel.__wrap(arg0);
1219
+ module.exports.__wbg_location_new = function(arg0) {
1220
+ const ret = Location.__wrap(arg0);
1221
1221
  return addHeapObject(ret);
1222
1222
  };
1223
1223
 
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.48",
4
+ "version": "0.1.50",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",