mons-rust 0.1.69 → 0.1.70

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,54 +10,50 @@
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 Modifier {
14
- SelectPotion = 0,
15
- SelectBomb = 1,
16
- Cancel = 2,
17
- }
18
- /**
19
- */
20
- export enum Color {
21
- White = 0,
22
- Black = 1,
13
+ export enum MonKind {
14
+ Demon = 0,
15
+ Drainer = 1,
16
+ Angel = 2,
17
+ Spirit = 3,
18
+ Mystic = 4,
23
19
  }
24
20
  /**
25
21
  */
26
- export enum OutputModelKind {
27
- InvalidInput = 0,
28
- LocationsToStartFrom = 1,
29
- NextInputOptions = 2,
30
- Events = 3,
22
+ export enum Consumable {
23
+ Potion = 0,
24
+ Bomb = 1,
25
+ BombOrPotion = 2,
31
26
  }
32
27
  /**
33
28
  */
34
- export enum EventModelKind {
29
+ export enum AvailableMoveKind {
35
30
  MonMove = 0,
36
31
  ManaMove = 1,
37
- ManaScored = 2,
38
- MysticAction = 3,
39
- DemonAction = 4,
40
- DemonAdditionalStep = 5,
41
- SpiritTargetMove = 6,
42
- PickupBomb = 7,
43
- PickupPotion = 8,
44
- PickupMana = 9,
45
- MonFainted = 10,
46
- ManaDropped = 11,
47
- SupermanaBackToBase = 12,
48
- BombAttack = 13,
49
- MonAwake = 14,
50
- BombExplosion = 15,
51
- NextTurn = 16,
52
- GameOver = 17,
53
- Takeback = 18,
54
- UsePotion = 19,
32
+ Action = 2,
33
+ Potion = 3,
55
34
  }
56
35
  /**
57
36
  */
58
- export enum ManaKind {
37
+ export enum SquareModelKind {
59
38
  Regular = 0,
60
- Supermana = 1,
39
+ ConsumableBase = 1,
40
+ SupermanaBase = 2,
41
+ ManaBase = 3,
42
+ ManaPool = 4,
43
+ MonBase = 5,
44
+ }
45
+ /**
46
+ */
47
+ export enum NextInputKind {
48
+ MonMove = 0,
49
+ ManaMove = 1,
50
+ MysticAction = 2,
51
+ DemonAction = 3,
52
+ DemonAdditionalStep = 4,
53
+ SpiritTargetCapture = 5,
54
+ SpiritTargetMove = 6,
55
+ SelectConsumable = 7,
56
+ BombAttack = 8,
61
57
  }
62
58
  /**
63
59
  */
@@ -70,50 +66,54 @@ export enum ItemModelKind {
70
66
  }
71
67
  /**
72
68
  */
73
- export enum AvailableMoveKind {
74
- MonMove = 0,
75
- ManaMove = 1,
76
- Action = 2,
77
- Potion = 3,
69
+ export enum ManaKind {
70
+ Regular = 0,
71
+ Supermana = 1,
78
72
  }
79
73
  /**
80
74
  */
81
- export enum SquareModelKind {
82
- Regular = 0,
83
- ConsumableBase = 1,
84
- SupermanaBase = 2,
85
- ManaBase = 3,
86
- ManaPool = 4,
87
- MonBase = 5,
75
+ export enum OutputModelKind {
76
+ InvalidInput = 0,
77
+ LocationsToStartFrom = 1,
78
+ NextInputOptions = 2,
79
+ Events = 3,
88
80
  }
89
81
  /**
90
82
  */
91
- export enum Consumable {
92
- Potion = 0,
93
- Bomb = 1,
94
- BombOrPotion = 2,
83
+ export enum Color {
84
+ White = 0,
85
+ Black = 1,
95
86
  }
96
87
  /**
97
88
  */
98
- export enum NextInputKind {
89
+ export enum EventModelKind {
99
90
  MonMove = 0,
100
91
  ManaMove = 1,
101
- MysticAction = 2,
102
- DemonAction = 3,
103
- DemonAdditionalStep = 4,
104
- SpiritTargetCapture = 5,
92
+ ManaScored = 2,
93
+ MysticAction = 3,
94
+ DemonAction = 4,
95
+ DemonAdditionalStep = 5,
105
96
  SpiritTargetMove = 6,
106
- SelectConsumable = 7,
107
- BombAttack = 8,
97
+ PickupBomb = 7,
98
+ PickupPotion = 8,
99
+ PickupMana = 9,
100
+ MonFainted = 10,
101
+ ManaDropped = 11,
102
+ SupermanaBackToBase = 12,
103
+ BombAttack = 13,
104
+ MonAwake = 14,
105
+ BombExplosion = 15,
106
+ NextTurn = 16,
107
+ GameOver = 17,
108
+ Takeback = 18,
109
+ UsePotion = 19,
108
110
  }
109
111
  /**
110
112
  */
111
- export enum MonKind {
112
- Demon = 0,
113
- Drainer = 1,
114
- Angel = 2,
115
- Spirit = 3,
116
- Mystic = 4,
113
+ export enum Modifier {
114
+ SelectPotion = 0,
115
+ SelectBomb = 1,
116
+ Cancel = 2,
117
117
  }
118
118
  /**
119
119
  */
package/mons-rust.js CHANGED
@@ -201,37 +201,37 @@ function handleError(f, args) {
201
201
  }
202
202
  /**
203
203
  */
204
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
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.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
207
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
208
208
  /**
209
209
  */
210
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
210
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
211
211
  /**
212
212
  */
213
- 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", });
213
+ 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", });
214
214
  /**
215
215
  */
216
- module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
216
+ 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", });
217
217
  /**
218
218
  */
219
219
  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
220
  /**
221
221
  */
222
- module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
222
+ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
223
223
  /**
224
224
  */
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", });
225
+ module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
226
226
  /**
227
227
  */
228
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
228
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
229
229
  /**
230
230
  */
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", });
231
+ 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", });
232
232
  /**
233
233
  */
234
- 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", });
234
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
235
235
 
236
236
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
237
237
  ? { register: () => {}, unregister: () => {} }
@@ -651,14 +651,14 @@ class Mon {
651
651
  * @returns {number}
652
652
  */
653
653
  get cooldown() {
654
- const ret = wasm.__wbg_get_location_i(this.__wbg_ptr);
654
+ const ret = wasm.__wbg_get_mon_cooldown(this.__wbg_ptr);
655
655
  return ret;
656
656
  }
657
657
  /**
658
658
  * @param {number} arg0
659
659
  */
660
660
  set cooldown(arg0) {
661
- wasm.__wbg_set_location_i(this.__wbg_ptr, arg0);
661
+ wasm.__wbg_set_mon_cooldown(this.__wbg_ptr, arg0);
662
662
  }
663
663
  /**
664
664
  * @returns {boolean}
@@ -1383,13 +1383,13 @@ class VerboseTrackingEntityModel {
1383
1383
  }
1384
1384
  module.exports.VerboseTrackingEntityModel = VerboseTrackingEntityModel;
1385
1385
 
1386
- module.exports.__wbg_eventmodel_new = function(arg0) {
1387
- const ret = EventModel.__wrap(arg0);
1386
+ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1387
+ const ret = NextInputModel.__wrap(arg0);
1388
1388
  return addHeapObject(ret);
1389
1389
  };
1390
1390
 
1391
- module.exports.__wbg_nextinputmodel_new = function(arg0) {
1392
- const ret = NextInputModel.__wrap(arg0);
1391
+ module.exports.__wbg_eventmodel_new = function(arg0) {
1392
+ const ret = EventModel.__wrap(arg0);
1393
1393
  return addHeapObject(ret);
1394
1394
  };
1395
1395
 
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.69",
4
+ "version": "0.1.70",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",