fleethub-core 1.1.5 → 1.2.1

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.
@@ -180,25 +180,6 @@ const u32CvtShim = new Uint32Array(2);
180
180
 
181
181
  const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
182
182
 
183
- function isLikeNone(x) {
184
- return x === undefined || x === null;
185
- }
186
-
187
- let cachegetUint16Memory0 = null;
188
- function getUint16Memory0() {
189
- if (cachegetUint16Memory0 === null || cachegetUint16Memory0.buffer !== wasm.memory.buffer) {
190
- cachegetUint16Memory0 = new Uint16Array(wasm.memory.buffer);
191
- }
192
- return cachegetUint16Memory0;
193
- }
194
-
195
- function passArray16ToWasm0(arg, malloc) {
196
- const ptr = malloc(arg.length * 2);
197
- getUint16Memory0().set(arg, ptr / 2);
198
- WASM_VECTOR_LEN = arg.length;
199
- return ptr;
200
- }
201
-
202
183
  function _assertClass(instance, klass) {
203
184
  if (!(instance instanceof klass)) {
204
185
  throw new Error(`expected instance of ${klass.name}`);
@@ -214,18 +195,9 @@ function getFloat64Memory0() {
214
195
  return cachegetFloat64Memory0;
215
196
  }
216
197
 
217
- function getArrayU8FromWasm0(ptr, len) {
218
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
198
+ function isLikeNone(x) {
199
+ return x === undefined || x === null;
219
200
  }
220
- /**
221
- * @param {Gear} gear
222
- * @returns {boolean}
223
- */
224
- module.exports.air_squadron_can_equip = function(gear) {
225
- _assertClass(gear, Gear);
226
- var ret = wasm.air_squadron_can_equip(gear.ptr);
227
- return ret !== 0;
228
- };
229
201
 
230
202
  let cachegetUint32Memory0 = null;
231
203
  function getUint32Memory0() {
@@ -244,14 +216,30 @@ function getArrayJsValueFromWasm0(ptr, len) {
244
216
  }
245
217
  return result;
246
218
  }
219
+
220
+ let cachegetUint16Memory0 = null;
221
+ function getUint16Memory0() {
222
+ if (cachegetUint16Memory0 === null || cachegetUint16Memory0.buffer !== wasm.memory.buffer) {
223
+ cachegetUint16Memory0 = new Uint16Array(wasm.memory.buffer);
224
+ }
225
+ return cachegetUint16Memory0;
226
+ }
227
+
228
+ function getArrayU16FromWasm0(ptr, len) {
229
+ return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
230
+ }
247
231
  /**
232
+ * @param {Gear} gear
233
+ * @returns {boolean}
248
234
  */
249
- module.exports.set_panic_hook = function() {
250
- wasm.set_panic_hook();
235
+ module.exports.air_squadron_can_equip = function(gear) {
236
+ _assertClass(gear, Gear);
237
+ var ret = wasm.air_squadron_can_equip(gear.ptr);
238
+ return ret !== 0;
251
239
  };
252
240
 
253
241
  /**
254
- * @param {bindings.OrgType} org_type
242
+ * @param {OrgType} org_type
255
243
  * @returns {boolean}
256
244
  */
257
245
  module.exports.org_type_is_single = function(org_type) {
@@ -260,8 +248,8 @@ module.exports.org_type_is_single = function(org_type) {
260
248
  };
261
249
 
262
250
  /**
263
- * @param {bindings.OrgType} org_type
264
- * @returns {bindings.Formation}
251
+ * @param {OrgType} org_type
252
+ * @returns {Formation}
265
253
  */
266
254
  module.exports.org_type_default_formation = function(org_type) {
267
255
  var ret = wasm.org_type_default_formation(addHeapObject(org_type));
@@ -269,7 +257,7 @@ module.exports.org_type_default_formation = function(org_type) {
269
257
  };
270
258
 
271
259
  /**
272
- * @param {bindings.OrgType} org_type
260
+ * @param {OrgType} org_type
273
261
  * @returns {boolean}
274
262
  */
275
263
  module.exports.org_type_is_player = function(org_type) {
@@ -278,16 +266,25 @@ module.exports.org_type_is_player = function(org_type) {
278
266
  };
279
267
 
280
268
  /**
281
- * @param {bindings.OrgType} org_type
282
- * @returns {bindings.Side}
269
+ * @param {OrgType} org_type
270
+ * @returns {Side}
283
271
  */
284
272
  module.exports.org_type_side = function(org_type) {
285
273
  var ret = wasm.org_type_side(addHeapObject(org_type));
286
274
  return takeObject(ret);
287
275
  };
288
276
 
289
- function getArrayU16FromWasm0(ptr, len) {
290
- return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
277
+ /**
278
+ */
279
+ module.exports.set_panic_hook = function() {
280
+ wasm.set_panic_hook();
281
+ };
282
+
283
+ function passArray16ToWasm0(arg, malloc) {
284
+ const ptr = malloc(arg.length * 2);
285
+ getUint16Memory0().set(arg, ptr / 2);
286
+ WASM_VECTOR_LEN = arg.length;
287
+ return ptr;
291
288
  }
292
289
 
293
290
  function handleError(f, args) {
@@ -298,6 +295,10 @@ function handleError(f, args) {
298
295
  }
299
296
  }
300
297
 
298
+ function getArrayU8FromWasm0(ptr, len) {
299
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
300
+ }
301
+
301
302
  const AirSquadronFinalization = new FinalizationRegistry(ptr => wasm.__wbg_airsquadron_free(ptr));
302
303
  /**
303
304
  */
@@ -375,7 +376,7 @@ class AirSquadron {
375
376
  return takeObject(ret);
376
377
  }
377
378
  /**
378
- * @param {bindings.AirSquadronMode} arg0
379
+ * @param {AirSquadronMode} arg0
379
380
  */
380
381
  set mode(arg0) {
381
382
  wasm.__wbg_set_airsquadron_mode(this.ptr, addHeapObject(arg0));
@@ -487,11 +488,11 @@ class Analyzer {
487
488
  }
488
489
  /**
489
490
  * @param {Comp} comp
490
- * @param {bindings.Formation} formation
491
+ * @param {Formation} formation
491
492
  * @param {number} adjusted_anti_air_resist
492
493
  * @param {number} fleet_anti_air_resist
493
494
  * @param {number | undefined} aaci
494
- * @returns {bindings.CompAntiAirInfo}
495
+ * @returns {CompAntiAirInfo}
495
496
  */
496
497
  analyze_anti_air(comp, formation, adjusted_anti_air_resist, fleet_anti_air_resist, aaci) {
497
498
  _assertClass(comp, Comp);
@@ -500,7 +501,7 @@ class Analyzer {
500
501
  }
501
502
  /**
502
503
  * @param {Comp} comp
503
- * @returns {bindings.CompDayCutinRateInfo}
504
+ * @returns {CompDayCutinRateInfo}
504
505
  */
505
506
  analyze_day_cutin(comp) {
506
507
  _assertClass(comp, Comp);
@@ -509,9 +510,9 @@ class Analyzer {
509
510
  }
510
511
  /**
511
512
  * @param {Comp} comp
512
- * @param {bindings.NightSituation} attacker_situation
513
- * @param {bindings.NightSituation} target_situation
514
- * @returns {bindings.FleetNightCutinRateInfo}
513
+ * @param {NightSituation} attacker_situation
514
+ * @param {NightSituation} target_situation
515
+ * @returns {FleetNightCutinRateInfo}
515
516
  */
516
517
  analyze_night_cutin(comp, attacker_situation, target_situation) {
517
518
  _assertClass(comp, Comp);
@@ -520,7 +521,7 @@ class Analyzer {
520
521
  }
521
522
  /**
522
523
  * @param {Comp} comp
523
- * @returns {bindings.CompContactChanceInfo}
524
+ * @returns {CompContactChanceInfo}
524
525
  */
525
526
  analyze_contact_chance(comp) {
526
527
  _assertClass(comp, Comp);
@@ -528,10 +529,10 @@ class Analyzer {
528
529
  return takeObject(ret);
529
530
  }
530
531
  /**
531
- * @param {bindings.WarfareAnalyzerContext} params
532
+ * @param {WarfareAnalyzerContext} params
532
533
  * @param {Ship} attacker
533
534
  * @param {Ship} target
534
- * @returns {bindings.WarfareInfo}
535
+ * @returns {WarfareInfo}
535
536
  */
536
537
  analyze_warfare(params, attacker, target) {
537
538
  _assertClass(attacker, Ship);
@@ -541,8 +542,8 @@ class Analyzer {
541
542
  }
542
543
  /**
543
544
  * @param {Comp} comp
544
- * @param {bindings.Engagement} engagement
545
- * @returns {bindings.FleetCutinAnalysis}
545
+ * @param {Engagement} engagement
546
+ * @returns {FleetCutinAnalysis}
546
547
  */
547
548
  analyze_fleet_cutin(comp, engagement) {
548
549
  _assertClass(comp, Comp);
@@ -582,7 +583,7 @@ class Comp {
582
583
  return takeObject(ret);
583
584
  }
584
585
  /**
585
- * @param {bindings.OrgType} arg0
586
+ * @param {OrgType} arg0
586
587
  */
587
588
  set org_type(arg0) {
588
589
  wasm.__wbg_set_comp_org_type(this.ptr, addHeapObject(arg0));
@@ -669,7 +670,7 @@ class Comp {
669
670
  wasm.__wbg_set_comp_boss_sup(this.ptr, ptr0);
670
671
  }
671
672
  /**
672
- * @returns {bindings.Side}
673
+ * @returns {Side}
673
674
  */
674
675
  side() {
675
676
  var ret = wasm.comp_side(this.ptr);
@@ -685,19 +686,26 @@ class Comp {
685
686
  /**
686
687
  * @returns {boolean}
687
688
  */
689
+ is_player() {
690
+ var ret = wasm.comp_is_player(this.ptr);
691
+ return ret !== 0;
692
+ }
693
+ /**
694
+ * @returns {boolean}
695
+ */
688
696
  is_enemy() {
689
697
  var ret = wasm.comp_is_enemy(this.ptr);
690
698
  return ret !== 0;
691
699
  }
692
700
  /**
693
- * @returns {bindings.CompMeta}
701
+ * @returns {CompMeta}
694
702
  */
695
703
  meta() {
696
704
  var ret = wasm.comp_meta(this.ptr);
697
705
  return takeObject(ret);
698
706
  }
699
707
  /**
700
- * @param {bindings.FleetType} ft
708
+ * @param {FleetType} ft
701
709
  * @returns {string | undefined}
702
710
  */
703
711
  get_fleet_id(ft) {
@@ -717,7 +725,7 @@ class Comp {
717
725
  }
718
726
  }
719
727
  /**
720
- * @param {bindings.FleetType} ft
728
+ * @param {FleetType} ft
721
729
  * @param {string} key
722
730
  * @returns {Ship | undefined}
723
731
  */
@@ -728,7 +736,7 @@ class Comp {
728
736
  return ret === 0 ? undefined : Ship.__wrap(ret);
729
737
  }
730
738
  /**
731
- * @param {bindings.FleetType} ft
739
+ * @param {FleetType} ft
732
740
  * @param {string} key
733
741
  * @returns {string | undefined}
734
742
  */
@@ -761,7 +769,7 @@ class Comp {
761
769
  return ret === 0 ? undefined : Ship.__wrap(ret);
762
770
  }
763
771
  /**
764
- * @returns {bindings.Formation}
772
+ * @returns {Formation}
765
773
  */
766
774
  default_formation() {
767
775
  var ret = wasm.comp_default_formation(this.ptr);
@@ -779,7 +787,7 @@ class Comp {
779
787
  /**
780
788
  * 制空値
781
789
  * @param {boolean} escort_participates
782
- * @param {bindings.AirWaveType} air_type
790
+ * @param {AirWaveType} air_type
783
791
  * @returns {number | undefined}
784
792
  */
785
793
  fighter_power(escort_participates, air_type) {
@@ -817,6 +825,16 @@ class Comp {
817
825
  var ret = wasm.comp_transport_point(this.ptr);
818
826
  return ret;
819
827
  }
828
+ /**
829
+ * @param {Ship} ship
830
+ * @param {Formation} formation
831
+ * @returns {WarfareShipEnvironment}
832
+ */
833
+ create_warfare_ship_environment(ship, formation) {
834
+ _assertClass(ship, Ship);
835
+ var ret = wasm.comp_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
836
+ return takeObject(ret);
837
+ }
820
838
  }
821
839
  module.exports.Comp = Comp;
822
840
 
@@ -863,7 +881,7 @@ class FhCore {
863
881
  }
864
882
  }
865
883
  /**
866
- * @param {bindings.GearState | undefined} input
884
+ * @param {GearState | undefined} input
867
885
  * @returns {Gear | undefined}
868
886
  */
869
887
  create_gear(input) {
@@ -871,7 +889,7 @@ class FhCore {
871
889
  return ret === 0 ? undefined : Gear.__wrap(ret);
872
890
  }
873
891
  /**
874
- * @param {bindings.ShipState | undefined} input
892
+ * @param {ShipState | undefined} input
875
893
  * @returns {Ship | undefined}
876
894
  */
877
895
  create_ship(input) {
@@ -879,7 +897,7 @@ class FhCore {
879
897
  return ret === 0 ? undefined : Ship.__wrap(ret);
880
898
  }
881
899
  /**
882
- * @param {bindings.AirSquadronState | undefined} input
900
+ * @param {AirSquadronState | undefined} input
883
901
  * @returns {AirSquadron}
884
902
  */
885
903
  create_air_squadron(input) {
@@ -887,7 +905,7 @@ class FhCore {
887
905
  return AirSquadron.__wrap(ret);
888
906
  }
889
907
  /**
890
- * @param {bindings.FleetState | undefined} input
908
+ * @param {FleetState | undefined} input
891
909
  * @returns {Fleet}
892
910
  */
893
911
  create_fleet(input) {
@@ -895,7 +913,7 @@ class FhCore {
895
913
  return Fleet.__wrap(ret);
896
914
  }
897
915
  /**
898
- * @param {bindings.OrgState | undefined} input
916
+ * @param {OrgState | undefined} input
899
917
  * @returns {Org | undefined}
900
918
  */
901
919
  create_org(input) {
@@ -940,9 +958,9 @@ class FhCore {
940
958
  /**
941
959
  * @param {Comp} player
942
960
  * @param {Comp} enemy
943
- * @param {bindings.ShellingSupportSimulatorParams} params
961
+ * @param {ShellingSupportSimulatorParams} params
944
962
  * @param {number} times
945
- * @returns {bindings.SimulatorResult}
963
+ * @returns {SimulatorResult}
946
964
  */
947
965
  simulate_shelling_support(player, enemy, params, times) {
948
966
  try {
@@ -1047,7 +1065,7 @@ class Fleet {
1047
1065
  wasm.__wbg_set_fleet_len(this.ptr, arg0);
1048
1066
  }
1049
1067
  /**
1050
- * @returns {bindings.FleetMeta}
1068
+ * @returns {FleetMeta}
1051
1069
  */
1052
1070
  meta() {
1053
1071
  var ret = wasm.fleet_meta(this.ptr);
@@ -1119,7 +1137,7 @@ class Fleet {
1119
1137
  }
1120
1138
  /**
1121
1139
  * @param {string} id
1122
- * @param {bindings.DamageState} state
1140
+ * @param {DamageState} state
1123
1141
  * @returns {number | undefined}
1124
1142
  */
1125
1143
  get_damage_bound(id, state) {
@@ -1184,7 +1202,7 @@ class Fleet {
1184
1202
  }
1185
1203
  }
1186
1204
  /**
1187
- * @param {bindings.AirWaveType} air_type
1205
+ * @param {AirWaveType} air_type
1188
1206
  * @returns {number | undefined}
1189
1207
  */
1190
1208
  fighter_power(air_type) {
@@ -1410,7 +1428,7 @@ class Gear {
1410
1428
  return takeObject(ret);
1411
1429
  }
1412
1430
  /**
1413
- * @param {bindings.GearType} arg0
1431
+ * @param {GearType} arg0
1414
1432
  */
1415
1433
  set gear_type(arg0) {
1416
1434
  wasm.__wbg_set_gear_gear_type(this.ptr, addHeapObject(arg0));
@@ -1667,7 +1685,7 @@ class Gear {
1667
1685
  return ret;
1668
1686
  }
1669
1687
  /**
1670
- * @param {bindings.GearAttr} attr
1688
+ * @param {GearAttr} attr
1671
1689
  * @returns {boolean}
1672
1690
  */
1673
1691
  has_attr(attr) {
@@ -1675,7 +1693,7 @@ class Gear {
1675
1693
  return ret !== 0;
1676
1694
  }
1677
1695
  /**
1678
- * @returns {bindings.GearCategory}
1696
+ * @returns {GearCategory}
1679
1697
  */
1680
1698
  category() {
1681
1699
  var ret = wasm.gear_category(this.ptr);
@@ -1769,7 +1787,7 @@ class Gear {
1769
1787
  return ret;
1770
1788
  }
1771
1789
  /**
1772
- * @param {bindings.AirStateRank} rank
1790
+ * @param {AirStateRank} rank
1773
1791
  * @returns {number}
1774
1792
  */
1775
1793
  contact_selection_rate(rank) {
@@ -2138,7 +2156,7 @@ class Org {
2138
2156
  return takeObject(ret);
2139
2157
  }
2140
2158
  /**
2141
- * @param {bindings.OrgType} arg0
2159
+ * @param {OrgType} arg0
2142
2160
  */
2143
2161
  set org_type(arg0) {
2144
2162
  wasm.__wbg_set_org_org_type(this.ptr, addHeapObject(arg0));
@@ -2218,7 +2236,7 @@ class Org {
2218
2236
  wasm.__wbg_set_org_boss_sup(this.ptr, ptr0, len0);
2219
2237
  }
2220
2238
  /**
2221
- * @param {bindings.Role} role
2239
+ * @param {Role} role
2222
2240
  * @returns {number}
2223
2241
  */
2224
2242
  fleet_len(role) {
@@ -2226,7 +2244,7 @@ class Org {
2226
2244
  return ret >>> 0;
2227
2245
  }
2228
2246
  /**
2229
- * @param {bindings.Role} role
2247
+ * @param {Role} role
2230
2248
  * @param {string} key
2231
2249
  * @returns {string | undefined}
2232
2250
  */
@@ -2265,7 +2283,7 @@ class Org {
2265
2283
  }
2266
2284
  }
2267
2285
  /**
2268
- * @param {bindings.Role} role
2286
+ * @param {Role} role
2269
2287
  * @returns {number | undefined}
2270
2288
  */
2271
2289
  fleet_los_mod(role) {
@@ -2322,7 +2340,7 @@ class Org {
2322
2340
  return Fleet.__wrap(ret);
2323
2341
  }
2324
2342
  /**
2325
- * @param {bindings.Role} role
2343
+ * @param {Role} role
2326
2344
  * @param {string} key
2327
2345
  * @returns {Ship | undefined}
2328
2346
  */
@@ -2343,7 +2361,7 @@ class Org {
2343
2361
  return ret === 0 ? undefined : Ship.__wrap(ret);
2344
2362
  }
2345
2363
  /**
2346
- * @param {bindings.Role} role
2364
+ * @param {Role} role
2347
2365
  * @returns {string}
2348
2366
  */
2349
2367
  get_fleet_id_by_role(role) {
@@ -2429,6 +2447,13 @@ class Org {
2429
2447
  }
2430
2448
  }
2431
2449
  /**
2450
+ * @returns {Side}
2451
+ */
2452
+ side() {
2453
+ var ret = wasm.org_side(this.ptr);
2454
+ return takeObject(ret);
2455
+ }
2456
+ /**
2432
2457
  * @returns {boolean}
2433
2458
  */
2434
2459
  is_player() {
@@ -2474,8 +2499,8 @@ class Org {
2474
2499
  }
2475
2500
  /**
2476
2501
  * @param {Ship} ship
2477
- * @param {bindings.Formation} formation
2478
- * @returns {bindings.WarfareShipEnvironment}
2502
+ * @param {Formation} formation
2503
+ * @returns {WarfareShipEnvironment}
2479
2504
  */
2480
2505
  create_warfare_ship_environment(ship, formation) {
2481
2506
  _assertClass(ship, Ship);
@@ -2641,22 +2666,22 @@ class Ship {
2641
2666
  return takeObject(ret);
2642
2667
  }
2643
2668
  /**
2644
- * @param {bindings.ShipType} arg0
2669
+ * @param {ShipType} arg0
2645
2670
  */
2646
2671
  set ship_type(arg0) {
2647
2672
  wasm.__wbg_set_ship_ship_type(this.ptr, addHeapObject(arg0));
2648
2673
  }
2649
2674
  /**
2650
2675
  */
2651
- get ship_class() {
2652
- var ret = wasm.__wbg_get_ship_ship_class(this.ptr);
2653
- return takeObject(ret);
2676
+ get ctype() {
2677
+ var ret = wasm.__wbg_get_ship_ctype(this.ptr);
2678
+ return ret;
2654
2679
  }
2655
2680
  /**
2656
- * @param {bindings.ShipClass} arg0
2681
+ * @param {number} arg0
2657
2682
  */
2658
- set ship_class(arg0) {
2659
- wasm.__wbg_set_ship_ship_class(this.ptr, addHeapObject(arg0));
2683
+ set ctype(arg0) {
2684
+ wasm.__wbg_set_ship_ctype(this.ptr, arg0);
2660
2685
  }
2661
2686
  /**
2662
2687
  * @returns {number | undefined}
@@ -2774,14 +2799,14 @@ class Ship {
2774
2799
  return ret !== 0;
2775
2800
  }
2776
2801
  /**
2777
- * @returns {bindings.ShipState}
2802
+ * @returns {ShipState}
2778
2803
  */
2779
2804
  state() {
2780
2805
  var ret = wasm.ship_state(this.ptr);
2781
2806
  return takeObject(ret);
2782
2807
  }
2783
2808
  /**
2784
- * @returns {bindings.ShipMeta}
2809
+ * @returns {ShipMeta}
2785
2810
  */
2786
2811
  meta() {
2787
2812
  var ret = wasm.ship_meta(this.ptr);
@@ -2820,13 +2845,6 @@ class Ship {
2820
2845
  /**
2821
2846
  * @returns {number}
2822
2847
  */
2823
- get ctype() {
2824
- var ret = wasm.ship_ctype(this.ptr);
2825
- return ret;
2826
- }
2827
- /**
2828
- * @returns {number}
2829
- */
2830
2848
  get stype() {
2831
2849
  var ret = wasm.ship_stype(this.ptr);
2832
2850
  return ret;
@@ -2867,28 +2885,28 @@ class Ship {
2867
2885
  return ret !== 0;
2868
2886
  }
2869
2887
  /**
2870
- * @returns {bindings.DamageState}
2888
+ * @returns {DamageState}
2871
2889
  */
2872
2890
  damage_state() {
2873
2891
  var ret = wasm.ship_damage_state(this.ptr);
2874
2892
  return takeObject(ret);
2875
2893
  }
2876
2894
  /**
2877
- * @returns {bindings.MoraleState}
2895
+ * @returns {MoraleState}
2878
2896
  */
2879
2897
  morale_state() {
2880
2898
  var ret = wasm.ship_morale_state(this.ptr);
2881
2899
  return takeObject(ret);
2882
2900
  }
2883
2901
  /**
2884
- * @returns {bindings.ShipCategory}
2902
+ * @returns {ShipCategory}
2885
2903
  */
2886
2904
  category() {
2887
2905
  var ret = wasm.ship_category(this.ptr);
2888
2906
  return takeObject(ret);
2889
2907
  }
2890
2908
  /**
2891
- * @param {bindings.ShipAttr} attr
2909
+ * @param {ShipAttr} attr
2892
2910
  * @returns {boolean}
2893
2911
  */
2894
2912
  has_attr(attr) {
@@ -2913,7 +2931,7 @@ class Ship {
2913
2931
  return ret === 0 ? undefined : Gear.__wrap(ret);
2914
2932
  }
2915
2933
  /**
2916
- * @param {bindings.DamageState} state
2934
+ * @param {DamageState} state
2917
2935
  * @returns {number | undefined}
2918
2936
  */
2919
2937
  get_damage_bound(state) {
@@ -3135,7 +3153,7 @@ class Ship {
3135
3153
  return ret;
3136
3154
  }
3137
3155
  /**
3138
- * @param {bindings.AirWaveType} air_type
3156
+ * @param {AirWaveType} air_type
3139
3157
  * @returns {number | undefined}
3140
3158
  */
3141
3159
  fighter_power(air_type) {
@@ -3246,22 +3264,6 @@ class Ship {
3246
3264
  }
3247
3265
  }
3248
3266
  /**
3249
- * @returns {Uint8Array}
3250
- */
3251
- get_possible_anti_air_cutin_ids() {
3252
- try {
3253
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3254
- wasm.ship_get_possible_anti_air_cutin_ids(retptr, this.ptr);
3255
- var r0 = getInt32Memory0()[retptr / 4 + 0];
3256
- var r1 = getInt32Memory0()[retptr / 4 + 1];
3257
- var v0 = getArrayU8FromWasm0(r0, r1).slice();
3258
- wasm.__wbindgen_free(r0, r1 * 1);
3259
- return v0;
3260
- } finally {
3261
- wasm.__wbindgen_add_to_stack_pointer(16);
3262
- }
3263
- }
3264
- /**
3265
3267
  * @returns {number}
3266
3268
  */
3267
3269
  transport_point() {
@@ -3340,15 +3342,15 @@ module.exports.__wbg_error_09919627ac0992f5 = function(arg0, arg1) {
3340
3342
  }
3341
3343
  };
3342
3344
 
3343
- module.exports.__wbg_randomFillSync_378e02b85af41ab6 = function() { return handleError(function (arg0, arg1, arg2) {
3344
- getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
3345
+ module.exports.__wbg_getRandomValues_fb6b088efb6bead2 = function() { return handleError(function (arg0, arg1) {
3346
+ getObject(arg0).getRandomValues(getObject(arg1));
3345
3347
  }, arguments) };
3346
3348
 
3347
- module.exports.__wbg_getRandomValues_99bbe8a65f4aef87 = function() { return handleError(function (arg0, arg1) {
3348
- getObject(arg0).getRandomValues(getObject(arg1));
3349
+ module.exports.__wbg_randomFillSync_654a7797990fb8db = function() { return handleError(function (arg0, arg1, arg2) {
3350
+ getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
3349
3351
  }, arguments) };
3350
3352
 
3351
- module.exports.__wbg_process_5729605ce9d34ea8 = function(arg0) {
3353
+ module.exports.__wbg_process_70251ed1291754d5 = function(arg0) {
3352
3354
  var ret = getObject(arg0).process;
3353
3355
  return addHeapObject(ret);
3354
3356
  };
@@ -3359,12 +3361,12 @@ module.exports.__wbindgen_is_object = function(arg0) {
3359
3361
  return ret;
3360
3362
  };
3361
3363
 
3362
- module.exports.__wbg_versions_531e16e1a776ee97 = function(arg0) {
3364
+ module.exports.__wbg_versions_b23f2588cdb2ddbb = function(arg0) {
3363
3365
  var ret = getObject(arg0).versions;
3364
3366
  return addHeapObject(ret);
3365
3367
  };
3366
3368
 
3367
- module.exports.__wbg_node_18b58a160b60d170 = function(arg0) {
3369
+ module.exports.__wbg_node_61b8c9a82499895d = function(arg0) {
3368
3370
  var ret = getObject(arg0).node;
3369
3371
  return addHeapObject(ret);
3370
3372
  };
@@ -3374,22 +3376,22 @@ module.exports.__wbindgen_is_string = function(arg0) {
3374
3376
  return ret;
3375
3377
  };
3376
3378
 
3377
- module.exports.__wbg_static_accessor_NODE_MODULE_bdc5ca9096c68aeb = function() {
3379
+ module.exports.__wbg_static_accessor_NODE_MODULE_33b45247c55045b0 = function() {
3378
3380
  var ret = module;
3379
3381
  return addHeapObject(ret);
3380
3382
  };
3381
3383
 
3382
- module.exports.__wbg_require_edfaedd93e302925 = function() { return handleError(function (arg0, arg1, arg2) {
3384
+ module.exports.__wbg_require_2a93bc09fee45aca = function() { return handleError(function (arg0, arg1, arg2) {
3383
3385
  var ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
3384
3386
  return addHeapObject(ret);
3385
3387
  }, arguments) };
3386
3388
 
3387
- module.exports.__wbg_crypto_2bc4d5b05161de5b = function(arg0) {
3389
+ module.exports.__wbg_crypto_2f56257a38275dbd = function(arg0) {
3388
3390
  var ret = getObject(arg0).crypto;
3389
3391
  return addHeapObject(ret);
3390
3392
  };
3391
3393
 
3392
- module.exports.__wbg_msCrypto_d003eebe62c636a9 = function(arg0) {
3394
+ module.exports.__wbg_msCrypto_d07655bf62361f21 = function(arg0) {
3393
3395
  var ret = getObject(arg0).msCrypto;
3394
3396
  return addHeapObject(ret);
3395
3397
  };
Binary file