fleethub-core 1.7.7 → 1.7.11

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,11 +164,6 @@ 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
- };
172
167
 
173
168
  function passArray16ToWasm0(arg, malloc) {
174
169
  const ptr = malloc(arg.length * 2);
@@ -176,6 +171,11 @@ function passArray16ToWasm0(arg, malloc) {
176
171
  WASM_VECTOR_LEN = arg.length;
177
172
  return ptr;
178
173
  }
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);
@@ -395,13 +395,13 @@ class Analyzer {
395
395
  }
396
396
  /**
397
397
  * @param {Comp} comp
398
- * @param {NightSituation} attacker_situation
399
- * @param {NightSituation} target_situation
398
+ * @param {NightConditions} attacker_conditions
399
+ * @param {NightConditions} target_conditions
400
400
  * @returns {FleetNightCutinRateInfo}
401
401
  */
402
- analyze_night_cutin(comp, attacker_situation, target_situation) {
402
+ analyze_night_cutin(comp, attacker_conditions, target_conditions) {
403
403
  _assertClass(comp, Comp);
404
- const ret = wasm.analyzer_analyze_night_cutin(this.ptr, comp.ptr, addHeapObject(attacker_situation), addHeapObject(target_situation));
404
+ const ret = wasm.analyzer_analyze_night_cutin(this.ptr, comp.ptr, addHeapObject(attacker_conditions), addHeapObject(target_conditions));
405
405
  return takeObject(ret);
406
406
  }
407
407
  /**
@@ -414,7 +414,7 @@ class Analyzer {
414
414
  return takeObject(ret);
415
415
  }
416
416
  /**
417
- * @param {WarfareAnalyzerContext} params
417
+ * @param {WarfareContext} params
418
418
  * @param {Ship} attacker
419
419
  * @param {Ship} target
420
420
  * @returns {WarfareInfo}
@@ -577,6 +577,13 @@ class Comp {
577
577
  return ret !== 0;
578
578
  }
579
579
  /**
580
+ * @returns {boolean}
581
+ */
582
+ has_route_sup() {
583
+ const ret = wasm.comp_has_route_sup(this.ptr);
584
+ return ret !== 0;
585
+ }
586
+ /**
580
587
  * @returns {CompMeta}
581
588
  */
582
589
  meta() {
@@ -706,12 +713,12 @@ class Comp {
706
713
  }
707
714
  /**
708
715
  * @param {Ship} ship
709
- * @param {Formation} formation
710
- * @returns {WarfareShipEnvironment}
716
+ * @param {Formation | undefined} formation
717
+ * @returns {ShipEnvironment}
711
718
  */
712
719
  create_warfare_ship_environment(ship, formation) {
713
720
  _assertClass(ship, Ship);
714
- const ret = wasm.comp_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
721
+ const ret = wasm.comp_create_warfare_ship_environment(this.ptr, ship.ptr, isLikeNone(formation) ? 0 : addHeapObject(formation));
715
722
  return takeObject(ret);
716
723
  }
717
724
  }
@@ -2367,16 +2374,6 @@ class Org {
2367
2374
  return ret;
2368
2375
  }
2369
2376
  /**
2370
- * @param {Ship} ship
2371
- * @param {Formation} formation
2372
- * @returns {WarfareShipEnvironment}
2373
- */
2374
- create_warfare_ship_environment(ship, formation) {
2375
- _assertClass(ship, Ship);
2376
- const ret = wasm.org_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
2377
- return takeObject(ret);
2378
- }
2379
- /**
2380
2377
  * @returns {Org}
2381
2378
  */
2382
2379
  static default() {
@@ -3209,12 +3206,7 @@ module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
3209
3206
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
3210
3207
  };
3211
3208
 
3212
- module.exports.__wbg_ship_new = function(arg0) {
3213
- const ret = Ship.__wrap(arg0);
3214
- return addHeapObject(ret);
3215
- };
3216
-
3217
- module.exports.__wbg_createEquipmentBonuses_0b2372f79fe3d0e9 = function(arg0, arg1) {
3209
+ module.exports.__wbg_createEquipmentBonuses_b7ed2504ed8ad169 = function(arg0, arg1) {
3218
3210
  const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
3219
3211
  return addHeapObject(ret);
3220
3212
  };
@@ -3224,6 +3216,11 @@ module.exports.__wbindgen_json_parse = function(arg0, arg1) {
3224
3216
  return addHeapObject(ret);
3225
3217
  };
3226
3218
 
3219
+ module.exports.__wbg_ship_new = function(arg0) {
3220
+ const ret = Ship.__wrap(arg0);
3221
+ return addHeapObject(ret);
3222
+ };
3223
+
3227
3224
  module.exports.__wbg_new_693216e109162396 = function() {
3228
3225
  const ret = new Error();
3229
3226
  return addHeapObject(ret);
@@ -3245,6 +3242,14 @@ module.exports.__wbg_error_09919627ac0992f5 = function(arg0, arg1) {
3245
3242
  }
3246
3243
  };
3247
3244
 
3245
+ module.exports.__wbg_randomFillSync_91e2b39becca6147 = function() { return handleError(function (arg0, arg1, arg2) {
3246
+ getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
3247
+ }, arguments) };
3248
+
3249
+ module.exports.__wbg_getRandomValues_b14734aa289bc356 = function() { return handleError(function (arg0, arg1) {
3250
+ getObject(arg0).getRandomValues(getObject(arg1));
3251
+ }, arguments) };
3252
+
3248
3253
  module.exports.__wbg_process_e56fd54cf6319b6c = function(arg0) {
3249
3254
  const ret = getObject(arg0).process;
3250
3255
  return addHeapObject(ret);
@@ -3291,14 +3296,6 @@ module.exports.__wbg_msCrypto_5a86d77a66230f81 = function(arg0) {
3291
3296
  return addHeapObject(ret);
3292
3297
  };
3293
3298
 
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
-
3302
3299
  module.exports.__wbg_new_2ab697f1555e0dbc = function() {
3303
3300
  const ret = new Array();
3304
3301
  return addHeapObject(ret);
Binary file
@@ -134,15 +134,7 @@ export function org_is_single(a: number): number;
134
134
  export function org_is_combined(a: number): number;
135
135
  export function org_interception_power(a: number): number;
136
136
  export function org_high_altitude_interception_power(a: number): number;
137
- export function org_create_warfare_ship_environment(a: number, b: number, c: number): number;
138
137
  export function org_default(): number;
139
- export function __wbg_analyzer_free(a: number): void;
140
- export function analyzer_analyze_anti_air(a: number, b: number, c: number, d: number, e: number, f: number): number;
141
- export function analyzer_analyze_day_cutin(a: number, b: number): number;
142
- export function analyzer_analyze_night_cutin(a: number, b: number, c: number, d: number): number;
143
- export function analyzer_analyze_contact_chance(a: number, b: number): number;
144
- export function analyzer_analyze_warfare(a: number, b: number, c: number, d: number): number;
145
- export function analyzer_analyze_fleet_cutin(a: number, b: number, c: number): number;
146
138
  export function __wbg_comp_free(a: number): void;
147
139
  export function __wbg_get_comp_org_type(a: number): number;
148
140
  export function __wbg_set_comp_org_type(a: number, b: number): void;
@@ -160,6 +152,7 @@ export function comp_side(a: number): number;
160
152
  export function comp_is_combined(a: number): number;
161
153
  export function comp_is_player(a: number): number;
162
154
  export function comp_is_enemy(a: number): number;
155
+ export function comp_has_route_sup(a: number): number;
163
156
  export function comp_meta(a: number): number;
164
157
  export function comp_get_fleet_id(a: number, b: number, c: number): void;
165
158
  export function comp_get_ship_with_clone(a: number, b: number, c: number, d: number): number;
@@ -171,6 +164,13 @@ export function comp_fighter_power(a: number, b: number, c: number, d: number):
171
164
  export function comp_elos(a: number, b: number, c: number): void;
172
165
  export function comp_transport_point(a: number): number;
173
166
  export function comp_create_warfare_ship_environment(a: number, b: number, c: number): number;
167
+ export function __wbg_analyzer_free(a: number): void;
168
+ export function analyzer_analyze_anti_air(a: number, b: number, c: number, d: number, e: number, f: number): number;
169
+ export function analyzer_analyze_day_cutin(a: number, b: number): number;
170
+ export function analyzer_analyze_night_cutin(a: number, b: number, c: number, d: number): number;
171
+ export function analyzer_analyze_contact_chance(a: number, b: number): number;
172
+ export function analyzer_analyze_warfare(a: number, b: number, c: number, d: number): number;
173
+ export function analyzer_analyze_fleet_cutin(a: number, b: number, c: number): number;
174
174
  export function __wbg_airsquadron_free(a: number): void;
175
175
  export function __wbg_get_airsquadron_id(a: number, b: number): void;
176
176
  export function __wbg_set_airsquadron_id(a: number, b: number, c: number): void;
@@ -221,7 +221,6 @@ export function fhcore_create_comp_by_map_enemy(a: number, b: number, c: number,
221
221
  export function fhcore_create_default_ship(a: number): number;
222
222
  export function fhcore_create_analyzer(a: number): number;
223
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;
225
224
  export function ship_state_day_gunfit_accuracy(a: number, b: number): void;
226
225
  export function ship_state_night_gunfit_accuracy(a: number, b: number): void;
227
226
  export function ship_gunfit_accuracy(a: number, b: number): number;
@@ -344,6 +343,7 @@ export function gear_is_abyssal_patrolling_attack_hawk(a: number): number;
344
343
  export function gear_expedition_bonus(a: number): number;
345
344
  export function gear_can_be_deployed_to_land_base(a: number): number;
346
345
  export function gear_has_proficiency(a: number): number;
346
+ export function set_panic_hook(): void;
347
347
  export function __wbindgen_malloc(a: number): number;
348
348
  export function __wbindgen_realloc(a: number, b: number, c: number): number;
349
349
  export function __wbindgen_add_to_stack_pointer(a: number): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleethub-core",
3
- "version": "1.7.7",
3
+ "version": "1.7.11",
4
4
  "license": "UNLICENSED",
5
5
  "sideEffects": false,
6
6
  "exports": {