fleethub-core 1.7.3 → 1.7.7

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.
@@ -164,6 +164,11 @@ function getUint16Memory0() {
164
164
  function getArrayU16FromWasm0(ptr, len) {
165
165
  return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
166
166
  }
167
+ /**
168
+ */
169
+ module.exports.set_panic_hook = function() {
170
+ wasm.set_panic_hook();
171
+ };
167
172
 
168
173
  function passArray16ToWasm0(arg, malloc) {
169
174
  const ptr = malloc(arg.length * 2);
@@ -171,11 +176,6 @@ function passArray16ToWasm0(arg, malloc) {
171
176
  WASM_VECTOR_LEN = arg.length;
172
177
  return ptr;
173
178
  }
174
- /**
175
- */
176
- module.exports.set_panic_hook = function() {
177
- wasm.set_panic_hook();
178
- };
179
179
 
180
180
  function getArrayU8FromWasm0(ptr, len) {
181
181
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
@@ -2662,6 +2662,13 @@ class Ship {
2662
2662
  return takeObject(ret);
2663
2663
  }
2664
2664
  /**
2665
+ * @returns {CustomPowerModifiers}
2666
+ */
2667
+ custom_power_mods() {
2668
+ const ret = wasm.ship_custom_power_mods(this.ptr);
2669
+ return takeObject(ret);
2670
+ }
2671
+ /**
2665
2672
  * @returns {ShipMeta}
2666
2673
  */
2667
2674
  meta() {
@@ -3202,13 +3209,13 @@ module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
3202
3209
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
3203
3210
  };
3204
3211
 
3205
- module.exports.__wbg_createEquipmentBonuses_a27fec520ac90d68 = function(arg0, arg1) {
3206
- const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
3212
+ module.exports.__wbg_ship_new = function(arg0) {
3213
+ const ret = Ship.__wrap(arg0);
3207
3214
  return addHeapObject(ret);
3208
3215
  };
3209
3216
 
3210
- module.exports.__wbg_ship_new = function(arg0) {
3211
- const ret = Ship.__wrap(arg0);
3217
+ module.exports.__wbg_createEquipmentBonuses_0b2372f79fe3d0e9 = function(arg0, arg1) {
3218
+ const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
3212
3219
  return addHeapObject(ret);
3213
3220
  };
3214
3221
 
@@ -3238,14 +3245,6 @@ module.exports.__wbg_error_09919627ac0992f5 = function(arg0, arg1) {
3238
3245
  }
3239
3246
  };
3240
3247
 
3241
- module.exports.__wbg_randomFillSync_91e2b39becca6147 = function() { return handleError(function (arg0, arg1, arg2) {
3242
- getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
3243
- }, arguments) };
3244
-
3245
- module.exports.__wbg_getRandomValues_b14734aa289bc356 = function() { return handleError(function (arg0, arg1) {
3246
- getObject(arg0).getRandomValues(getObject(arg1));
3247
- }, arguments) };
3248
-
3249
3248
  module.exports.__wbg_process_e56fd54cf6319b6c = function(arg0) {
3250
3249
  const ret = getObject(arg0).process;
3251
3250
  return addHeapObject(ret);
@@ -3292,6 +3291,14 @@ module.exports.__wbg_msCrypto_5a86d77a66230f81 = function(arg0) {
3292
3291
  return addHeapObject(ret);
3293
3292
  };
3294
3293
 
3294
+ module.exports.__wbg_getRandomValues_b14734aa289bc356 = function() { return handleError(function (arg0, arg1) {
3295
+ getObject(arg0).getRandomValues(getObject(arg1));
3296
+ }, arguments) };
3297
+
3298
+ module.exports.__wbg_randomFillSync_91e2b39becca6147 = function() { return handleError(function (arg0, arg1, arg2) {
3299
+ getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
3300
+ }, arguments) };
3301
+
3295
3302
  module.exports.__wbg_new_2ab697f1555e0dbc = function() {
3296
3303
  const ret = new Array();
3297
3304
  return addHeapObject(ret);
Binary file
@@ -41,6 +41,7 @@ export function ship_los(a: number): number;
41
41
  export function ship_default(): number;
42
42
  export function ship_eq_id(a: number, b: number, c: number): number;
43
43
  export function ship_state(a: number): number;
44
+ export function ship_custom_power_mods(a: number): number;
44
45
  export function ship_meta(a: number): number;
45
46
  export function ship_name(a: number, b: number): void;
46
47
  export function ship_yomi(a: number, b: number): void;
@@ -220,10 +221,10 @@ export function fhcore_create_comp_by_map_enemy(a: number, b: number, c: number,
220
221
  export function fhcore_create_default_ship(a: number): number;
221
222
  export function fhcore_create_analyzer(a: number): number;
222
223
  export function fhcore_simulate_shelling_support(a: number, b: number, c: number, d: number, e: number, f: number): void;
224
+ export function set_panic_hook(): void;
223
225
  export function ship_state_day_gunfit_accuracy(a: number, b: number): void;
224
226
  export function ship_state_night_gunfit_accuracy(a: number, b: number): void;
225
227
  export function ship_gunfit_accuracy(a: number, b: number): number;
226
- export function set_panic_hook(): void;
227
228
  export function __wbg_ibonuses_free(a: number): void;
228
229
  export function __wbg_get_ibonuses_shelling_power(a: number): number;
229
230
  export function __wbg_set_ibonuses_shelling_power(a: number, b: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleethub-core",
3
- "version": "1.7.3",
3
+ "version": "1.7.7",
4
4
  "license": "UNLICENSED",
5
5
  "sideEffects": false,
6
6
  "exports": {