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.
@@ -165,6 +165,11 @@ function getUint16Memory0() {
165
165
  function getArrayU16FromWasm0(ptr, len) {
166
166
  return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
167
167
  }
168
+ /**
169
+ */
170
+ export function set_panic_hook() {
171
+ wasm.set_panic_hook();
172
+ }
168
173
 
169
174
  function passArray16ToWasm0(arg, malloc) {
170
175
  const ptr = malloc(arg.length * 2);
@@ -172,11 +177,6 @@ function passArray16ToWasm0(arg, malloc) {
172
177
  WASM_VECTOR_LEN = arg.length;
173
178
  return ptr;
174
179
  }
175
- /**
176
- */
177
- export function set_panic_hook() {
178
- wasm.set_panic_hook();
179
- }
180
180
 
181
181
  function getArrayU8FromWasm0(ptr, len) {
182
182
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
@@ -2655,6 +2655,13 @@ export class Ship {
2655
2655
  return takeObject(ret);
2656
2656
  }
2657
2657
  /**
2658
+ * @returns {CustomPowerModifiers}
2659
+ */
2660
+ custom_power_mods() {
2661
+ const ret = wasm.ship_custom_power_mods(this.ptr);
2662
+ return takeObject(ret);
2663
+ }
2664
+ /**
2658
2665
  * @returns {ShipMeta}
2659
2666
  */
2660
2667
  meta() {
@@ -3194,13 +3201,13 @@ export function __wbindgen_json_serialize(arg0, arg1) {
3194
3201
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
3195
3202
  };
3196
3203
 
3197
- export function __wbg_createEquipmentBonuses_a27fec520ac90d68(arg0, arg1) {
3198
- const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
3204
+ export function __wbg_ship_new(arg0) {
3205
+ const ret = Ship.__wrap(arg0);
3199
3206
  return addHeapObject(ret);
3200
3207
  };
3201
3208
 
3202
- export function __wbg_ship_new(arg0) {
3203
- const ret = Ship.__wrap(arg0);
3209
+ export function __wbg_createEquipmentBonuses_0b2372f79fe3d0e9(arg0, arg1) {
3210
+ const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
3204
3211
  return addHeapObject(ret);
3205
3212
  };
3206
3213
 
@@ -3230,14 +3237,6 @@ export function __wbg_error_09919627ac0992f5(arg0, arg1) {
3230
3237
  }
3231
3238
  };
3232
3239
 
3233
- export function __wbg_randomFillSync_91e2b39becca6147() { return handleError(function (arg0, arg1, arg2) {
3234
- getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
3235
- }, arguments) };
3236
-
3237
- export function __wbg_getRandomValues_b14734aa289bc356() { return handleError(function (arg0, arg1) {
3238
- getObject(arg0).getRandomValues(getObject(arg1));
3239
- }, arguments) };
3240
-
3241
3240
  export function __wbg_process_e56fd54cf6319b6c(arg0) {
3242
3241
  const ret = getObject(arg0).process;
3243
3242
  return addHeapObject(ret);
@@ -3284,6 +3283,14 @@ export function __wbg_msCrypto_5a86d77a66230f81(arg0) {
3284
3283
  return addHeapObject(ret);
3285
3284
  };
3286
3285
 
3286
+ export function __wbg_getRandomValues_b14734aa289bc356() { return handleError(function (arg0, arg1) {
3287
+ getObject(arg0).getRandomValues(getObject(arg1));
3288
+ }, arguments) };
3289
+
3290
+ export function __wbg_randomFillSync_91e2b39becca6147() { return handleError(function (arg0, arg1, arg2) {
3291
+ getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
3292
+ }, arguments) };
3293
+
3287
3294
  export function __wbg_new_2ab697f1555e0dbc() {
3288
3295
  const ret = new Array();
3289
3296
  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;