fleethub-core 1.2.1 → 1.3.2
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/node/fleethub_core.d.ts +438 -458
- package/node/fleethub_core.js +387 -400
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +164 -166
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +438 -458
- package/pkg/fleethub_core_bg.js +387 -400
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +164 -166
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -188,6 +188,10 @@ function _assertClass(instance, klass) {
|
|
|
188
188
|
return instance.ptr;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
function isLikeNone(x) {
|
|
192
|
+
return x === undefined || x === null;
|
|
193
|
+
}
|
|
194
|
+
|
|
191
195
|
let cachegetFloat64Memory0 = null;
|
|
192
196
|
function getFloat64Memory0() {
|
|
193
197
|
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
@@ -196,10 +200,6 @@ function getFloat64Memory0() {
|
|
|
196
200
|
return cachegetFloat64Memory0;
|
|
197
201
|
}
|
|
198
202
|
|
|
199
|
-
function isLikeNone(x) {
|
|
200
|
-
return x === undefined || x === null;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
203
|
let cachegetUint32Memory0 = null;
|
|
204
204
|
function getUint32Memory0() {
|
|
205
205
|
if (cachegetUint32Memory0 === null || cachegetUint32Memory0.buffer !== wasm.memory.buffer) {
|
|
@@ -229,52 +229,6 @@ function getUint16Memory0() {
|
|
|
229
229
|
function getArrayU16FromWasm0(ptr, len) {
|
|
230
230
|
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
231
231
|
}
|
|
232
|
-
/**
|
|
233
|
-
* @param {Gear} gear
|
|
234
|
-
* @returns {boolean}
|
|
235
|
-
*/
|
|
236
|
-
export function air_squadron_can_equip(gear) {
|
|
237
|
-
_assertClass(gear, Gear);
|
|
238
|
-
var ret = wasm.air_squadron_can_equip(gear.ptr);
|
|
239
|
-
return ret !== 0;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* @param {OrgType} org_type
|
|
244
|
-
* @returns {boolean}
|
|
245
|
-
*/
|
|
246
|
-
export function org_type_is_single(org_type) {
|
|
247
|
-
var ret = wasm.org_type_is_single(addHeapObject(org_type));
|
|
248
|
-
return ret !== 0;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* @param {OrgType} org_type
|
|
253
|
-
* @returns {Formation}
|
|
254
|
-
*/
|
|
255
|
-
export function org_type_default_formation(org_type) {
|
|
256
|
-
var ret = wasm.org_type_default_formation(addHeapObject(org_type));
|
|
257
|
-
return takeObject(ret);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* @param {OrgType} org_type
|
|
262
|
-
* @returns {boolean}
|
|
263
|
-
*/
|
|
264
|
-
export function org_type_is_player(org_type) {
|
|
265
|
-
var ret = wasm.org_type_is_player(addHeapObject(org_type));
|
|
266
|
-
return ret !== 0;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* @param {OrgType} org_type
|
|
271
|
-
* @returns {Side}
|
|
272
|
-
*/
|
|
273
|
-
export function org_type_side(org_type) {
|
|
274
|
-
var ret = wasm.org_type_side(addHeapObject(org_type));
|
|
275
|
-
return takeObject(ret);
|
|
276
|
-
}
|
|
277
|
-
|
|
278
232
|
/**
|
|
279
233
|
*/
|
|
280
234
|
export function set_panic_hook() {
|
|
@@ -288,6 +242,17 @@ function passArray16ToWasm0(arg, malloc) {
|
|
|
288
242
|
return ptr;
|
|
289
243
|
}
|
|
290
244
|
|
|
245
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
246
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
250
|
+
const ptr = malloc(arg.length * 1);
|
|
251
|
+
getUint8Memory0().set(arg, ptr / 1);
|
|
252
|
+
WASM_VECTOR_LEN = arg.length;
|
|
253
|
+
return ptr;
|
|
254
|
+
}
|
|
255
|
+
|
|
291
256
|
function handleError(f, args) {
|
|
292
257
|
try {
|
|
293
258
|
return f.apply(this, args);
|
|
@@ -296,10 +261,6 @@ function handleError(f, args) {
|
|
|
296
261
|
}
|
|
297
262
|
}
|
|
298
263
|
|
|
299
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
300
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
264
|
const AirSquadronFinalization = new FinalizationRegistry(ptr => wasm.__wbg_airsquadron_free(ptr));
|
|
304
265
|
/**
|
|
305
266
|
*/
|
|
@@ -341,8 +302,8 @@ export class AirSquadron {
|
|
|
341
302
|
* @param {string} arg0
|
|
342
303
|
*/
|
|
343
304
|
set id(arg0) {
|
|
344
|
-
|
|
345
|
-
|
|
305
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
306
|
+
const len0 = WASM_VECTOR_LEN;
|
|
346
307
|
wasm.__wbg_set_airsquadron_id(this.ptr, ptr0, len0);
|
|
347
308
|
}
|
|
348
309
|
/**
|
|
@@ -373,7 +334,7 @@ export class AirSquadron {
|
|
|
373
334
|
/**
|
|
374
335
|
*/
|
|
375
336
|
get mode() {
|
|
376
|
-
|
|
337
|
+
const ret = wasm.__wbg_get_airsquadron_mode(this.ptr);
|
|
377
338
|
return takeObject(ret);
|
|
378
339
|
}
|
|
379
340
|
/**
|
|
@@ -387,21 +348,12 @@ export class AirSquadron {
|
|
|
387
348
|
* @returns {Gear | undefined}
|
|
388
349
|
*/
|
|
389
350
|
get_gear(key) {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
351
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
352
|
+
const len0 = WASM_VECTOR_LEN;
|
|
353
|
+
const ret = wasm.airsquadron_get_gear(this.ptr, ptr0, len0);
|
|
393
354
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
394
355
|
}
|
|
395
356
|
/**
|
|
396
|
-
* @param {Gear} gear
|
|
397
|
-
* @returns {boolean}
|
|
398
|
-
*/
|
|
399
|
-
can_equip(gear) {
|
|
400
|
-
_assertClass(gear, Gear);
|
|
401
|
-
var ret = wasm.airsquadron_can_equip(this.ptr, gear.ptr);
|
|
402
|
-
return ret !== 0;
|
|
403
|
-
}
|
|
404
|
-
/**
|
|
405
357
|
* @param {number} index
|
|
406
358
|
* @returns {number}
|
|
407
359
|
*/
|
|
@@ -443,14 +395,14 @@ export class AirSquadron {
|
|
|
443
395
|
* @returns {number}
|
|
444
396
|
*/
|
|
445
397
|
fighter_power() {
|
|
446
|
-
|
|
398
|
+
const ret = wasm.airsquadron_fighter_power(this.ptr);
|
|
447
399
|
return ret;
|
|
448
400
|
}
|
|
449
401
|
/**
|
|
450
402
|
* @returns {number}
|
|
451
403
|
*/
|
|
452
404
|
interception_power() {
|
|
453
|
-
|
|
405
|
+
const ret = wasm.airsquadron_interception_power(this.ptr);
|
|
454
406
|
return ret;
|
|
455
407
|
}
|
|
456
408
|
/**
|
|
@@ -458,7 +410,7 @@ export class AirSquadron {
|
|
|
458
410
|
* @returns {number}
|
|
459
411
|
*/
|
|
460
412
|
radius() {
|
|
461
|
-
|
|
413
|
+
const ret = wasm.airsquadron_radius(this.ptr);
|
|
462
414
|
return ret;
|
|
463
415
|
}
|
|
464
416
|
}
|
|
@@ -489,14 +441,14 @@ export class Analyzer {
|
|
|
489
441
|
/**
|
|
490
442
|
* @param {Comp} comp
|
|
491
443
|
* @param {Formation} formation
|
|
492
|
-
* @param {number}
|
|
444
|
+
* @param {number} ship_anti_air_resist
|
|
493
445
|
* @param {number} fleet_anti_air_resist
|
|
494
446
|
* @param {number | undefined} aaci
|
|
495
447
|
* @returns {CompAntiAirInfo}
|
|
496
448
|
*/
|
|
497
|
-
analyze_anti_air(comp, formation,
|
|
449
|
+
analyze_anti_air(comp, formation, ship_anti_air_resist, fleet_anti_air_resist, aaci) {
|
|
498
450
|
_assertClass(comp, Comp);
|
|
499
|
-
|
|
451
|
+
const ret = wasm.analyzer_analyze_anti_air(this.ptr, comp.ptr, addHeapObject(formation), ship_anti_air_resist, fleet_anti_air_resist, isLikeNone(aaci) ? 0xFFFFFF : aaci);
|
|
500
452
|
return takeObject(ret);
|
|
501
453
|
}
|
|
502
454
|
/**
|
|
@@ -505,7 +457,7 @@ export class Analyzer {
|
|
|
505
457
|
*/
|
|
506
458
|
analyze_day_cutin(comp) {
|
|
507
459
|
_assertClass(comp, Comp);
|
|
508
|
-
|
|
460
|
+
const ret = wasm.analyzer_analyze_day_cutin(this.ptr, comp.ptr);
|
|
509
461
|
return takeObject(ret);
|
|
510
462
|
}
|
|
511
463
|
/**
|
|
@@ -516,7 +468,7 @@ export class Analyzer {
|
|
|
516
468
|
*/
|
|
517
469
|
analyze_night_cutin(comp, attacker_situation, target_situation) {
|
|
518
470
|
_assertClass(comp, Comp);
|
|
519
|
-
|
|
471
|
+
const ret = wasm.analyzer_analyze_night_cutin(this.ptr, comp.ptr, addHeapObject(attacker_situation), addHeapObject(target_situation));
|
|
520
472
|
return takeObject(ret);
|
|
521
473
|
}
|
|
522
474
|
/**
|
|
@@ -525,7 +477,7 @@ export class Analyzer {
|
|
|
525
477
|
*/
|
|
526
478
|
analyze_contact_chance(comp) {
|
|
527
479
|
_assertClass(comp, Comp);
|
|
528
|
-
|
|
480
|
+
const ret = wasm.analyzer_analyze_contact_chance(this.ptr, comp.ptr);
|
|
529
481
|
return takeObject(ret);
|
|
530
482
|
}
|
|
531
483
|
/**
|
|
@@ -537,7 +489,7 @@ export class Analyzer {
|
|
|
537
489
|
analyze_warfare(params, attacker, target) {
|
|
538
490
|
_assertClass(attacker, Ship);
|
|
539
491
|
_assertClass(target, Ship);
|
|
540
|
-
|
|
492
|
+
const ret = wasm.analyzer_analyze_warfare(this.ptr, addHeapObject(params), attacker.ptr, target.ptr);
|
|
541
493
|
return takeObject(ret);
|
|
542
494
|
}
|
|
543
495
|
/**
|
|
@@ -547,7 +499,7 @@ export class Analyzer {
|
|
|
547
499
|
*/
|
|
548
500
|
analyze_fleet_cutin(comp, engagement) {
|
|
549
501
|
_assertClass(comp, Comp);
|
|
550
|
-
|
|
502
|
+
const ret = wasm.analyzer_analyze_fleet_cutin(this.ptr, comp.ptr, addHeapObject(engagement));
|
|
551
503
|
return takeObject(ret);
|
|
552
504
|
}
|
|
553
505
|
}
|
|
@@ -578,7 +530,7 @@ export class Comp {
|
|
|
578
530
|
/**
|
|
579
531
|
*/
|
|
580
532
|
get org_type() {
|
|
581
|
-
|
|
533
|
+
const ret = wasm.__wbg_get_comp_org_type(this.ptr);
|
|
582
534
|
return takeObject(ret);
|
|
583
535
|
}
|
|
584
536
|
/**
|
|
@@ -590,7 +542,7 @@ export class Comp {
|
|
|
590
542
|
/**
|
|
591
543
|
*/
|
|
592
544
|
get hq_level() {
|
|
593
|
-
|
|
545
|
+
const ret = wasm.__wbg_get_comp_hq_level(this.ptr);
|
|
594
546
|
return ret;
|
|
595
547
|
}
|
|
596
548
|
/**
|
|
@@ -602,7 +554,7 @@ export class Comp {
|
|
|
602
554
|
/**
|
|
603
555
|
*/
|
|
604
556
|
get main() {
|
|
605
|
-
|
|
557
|
+
const ret = wasm.__wbg_get_comp_main(this.ptr);
|
|
606
558
|
return Fleet.__wrap(ret);
|
|
607
559
|
}
|
|
608
560
|
/**
|
|
@@ -617,7 +569,7 @@ export class Comp {
|
|
|
617
569
|
/**
|
|
618
570
|
*/
|
|
619
571
|
get escort() {
|
|
620
|
-
|
|
572
|
+
const ret = wasm.__wbg_get_comp_escort(this.ptr);
|
|
621
573
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
622
574
|
}
|
|
623
575
|
/**
|
|
@@ -635,7 +587,7 @@ export class Comp {
|
|
|
635
587
|
/**
|
|
636
588
|
*/
|
|
637
589
|
get route_sup() {
|
|
638
|
-
|
|
590
|
+
const ret = wasm.__wbg_get_comp_route_sup(this.ptr);
|
|
639
591
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
640
592
|
}
|
|
641
593
|
/**
|
|
@@ -653,7 +605,7 @@ export class Comp {
|
|
|
653
605
|
/**
|
|
654
606
|
*/
|
|
655
607
|
get boss_sup() {
|
|
656
|
-
|
|
608
|
+
const ret = wasm.__wbg_get_comp_boss_sup(this.ptr);
|
|
657
609
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
658
610
|
}
|
|
659
611
|
/**
|
|
@@ -672,35 +624,35 @@ export class Comp {
|
|
|
672
624
|
* @returns {Side}
|
|
673
625
|
*/
|
|
674
626
|
side() {
|
|
675
|
-
|
|
627
|
+
const ret = wasm.comp_side(this.ptr);
|
|
676
628
|
return takeObject(ret);
|
|
677
629
|
}
|
|
678
630
|
/**
|
|
679
631
|
* @returns {boolean}
|
|
680
632
|
*/
|
|
681
633
|
is_combined() {
|
|
682
|
-
|
|
634
|
+
const ret = wasm.comp_is_combined(this.ptr);
|
|
683
635
|
return ret !== 0;
|
|
684
636
|
}
|
|
685
637
|
/**
|
|
686
638
|
* @returns {boolean}
|
|
687
639
|
*/
|
|
688
640
|
is_player() {
|
|
689
|
-
|
|
641
|
+
const ret = wasm.comp_is_player(this.ptr);
|
|
690
642
|
return ret !== 0;
|
|
691
643
|
}
|
|
692
644
|
/**
|
|
693
645
|
* @returns {boolean}
|
|
694
646
|
*/
|
|
695
647
|
is_enemy() {
|
|
696
|
-
|
|
648
|
+
const ret = wasm.comp_is_enemy(this.ptr);
|
|
697
649
|
return ret !== 0;
|
|
698
650
|
}
|
|
699
651
|
/**
|
|
700
652
|
* @returns {CompMeta}
|
|
701
653
|
*/
|
|
702
654
|
meta() {
|
|
703
|
-
|
|
655
|
+
const ret = wasm.comp_meta(this.ptr);
|
|
704
656
|
return takeObject(ret);
|
|
705
657
|
}
|
|
706
658
|
/**
|
|
@@ -729,9 +681,9 @@ export class Comp {
|
|
|
729
681
|
* @returns {Ship | undefined}
|
|
730
682
|
*/
|
|
731
683
|
get_ship_with_clone(ft, key) {
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
684
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
685
|
+
const len0 = WASM_VECTOR_LEN;
|
|
686
|
+
const ret = wasm.comp_get_ship_with_clone(this.ptr, addHeapObject(ft), ptr0, len0);
|
|
735
687
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
736
688
|
}
|
|
737
689
|
/**
|
|
@@ -742,8 +694,8 @@ export class Comp {
|
|
|
742
694
|
get_ship_entity_id(ft, key) {
|
|
743
695
|
try {
|
|
744
696
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
745
|
-
|
|
746
|
-
|
|
697
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
698
|
+
const len0 = WASM_VECTOR_LEN;
|
|
747
699
|
wasm.comp_get_ship_entity_id(retptr, this.ptr, addHeapObject(ft), ptr0, len0);
|
|
748
700
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
749
701
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -762,25 +714,25 @@ export class Comp {
|
|
|
762
714
|
* @returns {Ship | undefined}
|
|
763
715
|
*/
|
|
764
716
|
get_ship_by_eid_with_clone(id) {
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
717
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
718
|
+
const len0 = WASM_VECTOR_LEN;
|
|
719
|
+
const ret = wasm.comp_get_ship_by_eid_with_clone(this.ptr, ptr0, len0);
|
|
768
720
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
769
721
|
}
|
|
770
722
|
/**
|
|
771
723
|
* @returns {Formation}
|
|
772
724
|
*/
|
|
773
725
|
default_formation() {
|
|
774
|
-
|
|
726
|
+
const ret = wasm.comp_default_formation(this.ptr);
|
|
775
727
|
return takeObject(ret);
|
|
776
728
|
}
|
|
777
729
|
/**
|
|
778
|
-
*
|
|
730
|
+
* 艦隊防空値
|
|
779
731
|
* @param {number} formation_mod
|
|
780
732
|
* @returns {number}
|
|
781
733
|
*/
|
|
782
|
-
|
|
783
|
-
|
|
734
|
+
adjusted_anti_air(formation_mod) {
|
|
735
|
+
const ret = wasm.comp_adjusted_anti_air(this.ptr, formation_mod);
|
|
784
736
|
return ret;
|
|
785
737
|
}
|
|
786
738
|
/**
|
|
@@ -821,7 +773,7 @@ export class Comp {
|
|
|
821
773
|
* @returns {number}
|
|
822
774
|
*/
|
|
823
775
|
transport_point() {
|
|
824
|
-
|
|
776
|
+
const ret = wasm.comp_transport_point(this.ptr);
|
|
825
777
|
return ret;
|
|
826
778
|
}
|
|
827
779
|
/**
|
|
@@ -831,7 +783,7 @@ export class Comp {
|
|
|
831
783
|
*/
|
|
832
784
|
create_warfare_ship_environment(ship, formation) {
|
|
833
785
|
_assertClass(ship, Ship);
|
|
834
|
-
|
|
786
|
+
const ret = wasm.comp_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
835
787
|
return takeObject(ret);
|
|
836
788
|
}
|
|
837
789
|
}
|
|
@@ -883,7 +835,7 @@ export class FhCore {
|
|
|
883
835
|
* @returns {Gear | undefined}
|
|
884
836
|
*/
|
|
885
837
|
create_gear(input) {
|
|
886
|
-
|
|
838
|
+
const ret = wasm.fhcore_create_gear(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
887
839
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
888
840
|
}
|
|
889
841
|
/**
|
|
@@ -891,7 +843,7 @@ export class FhCore {
|
|
|
891
843
|
* @returns {Ship | undefined}
|
|
892
844
|
*/
|
|
893
845
|
create_ship(input) {
|
|
894
|
-
|
|
846
|
+
const ret = wasm.fhcore_create_ship(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
895
847
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
896
848
|
}
|
|
897
849
|
/**
|
|
@@ -899,7 +851,7 @@ export class FhCore {
|
|
|
899
851
|
* @returns {AirSquadron}
|
|
900
852
|
*/
|
|
901
853
|
create_air_squadron(input) {
|
|
902
|
-
|
|
854
|
+
const ret = wasm.fhcore_create_air_squadron(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
903
855
|
return AirSquadron.__wrap(ret);
|
|
904
856
|
}
|
|
905
857
|
/**
|
|
@@ -907,7 +859,7 @@ export class FhCore {
|
|
|
907
859
|
* @returns {Fleet}
|
|
908
860
|
*/
|
|
909
861
|
create_fleet(input) {
|
|
910
|
-
|
|
862
|
+
const ret = wasm.fhcore_create_fleet(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
911
863
|
return Fleet.__wrap(ret);
|
|
912
864
|
}
|
|
913
865
|
/**
|
|
@@ -915,7 +867,7 @@ export class FhCore {
|
|
|
915
867
|
* @returns {Org | undefined}
|
|
916
868
|
*/
|
|
917
869
|
create_org(input) {
|
|
918
|
-
|
|
870
|
+
const ret = wasm.fhcore_create_org(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
919
871
|
return ret === 0 ? undefined : Org.__wrap(ret);
|
|
920
872
|
}
|
|
921
873
|
/**
|
|
@@ -923,7 +875,7 @@ export class FhCore {
|
|
|
923
875
|
* @returns {Ship | undefined}
|
|
924
876
|
*/
|
|
925
877
|
create_ship_by_id(ship_id) {
|
|
926
|
-
|
|
878
|
+
const ret = wasm.fhcore_create_ship_by_id(this.ptr, ship_id);
|
|
927
879
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
928
880
|
}
|
|
929
881
|
/**
|
|
@@ -932,25 +884,25 @@ export class FhCore {
|
|
|
932
884
|
* @returns {Comp}
|
|
933
885
|
*/
|
|
934
886
|
create_comp_by_map_enemy(main, escort) {
|
|
935
|
-
|
|
936
|
-
|
|
887
|
+
const ptr0 = passArray16ToWasm0(main, wasm.__wbindgen_malloc);
|
|
888
|
+
const len0 = WASM_VECTOR_LEN;
|
|
937
889
|
var ptr1 = isLikeNone(escort) ? 0 : passArray16ToWasm0(escort, wasm.__wbindgen_malloc);
|
|
938
890
|
var len1 = WASM_VECTOR_LEN;
|
|
939
|
-
|
|
891
|
+
const ret = wasm.fhcore_create_comp_by_map_enemy(this.ptr, ptr0, len0, ptr1, len1);
|
|
940
892
|
return Comp.__wrap(ret);
|
|
941
893
|
}
|
|
942
894
|
/**
|
|
943
895
|
* @returns {Ship}
|
|
944
896
|
*/
|
|
945
897
|
create_default_ship() {
|
|
946
|
-
|
|
898
|
+
const ret = wasm.fhcore_create_default_ship(this.ptr);
|
|
947
899
|
return Ship.__wrap(ret);
|
|
948
900
|
}
|
|
949
901
|
/**
|
|
950
902
|
* @returns {Analyzer}
|
|
951
903
|
*/
|
|
952
904
|
create_analyzer() {
|
|
953
|
-
|
|
905
|
+
const ret = wasm.fhcore_create_analyzer(this.ptr);
|
|
954
906
|
return Analyzer.__wrap(ret);
|
|
955
907
|
}
|
|
956
908
|
/**
|
|
@@ -1020,8 +972,8 @@ export class Fleet {
|
|
|
1020
972
|
* @param {string} arg0
|
|
1021
973
|
*/
|
|
1022
974
|
set id(arg0) {
|
|
1023
|
-
|
|
1024
|
-
|
|
975
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
976
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1025
977
|
wasm.__wbg_set_fleet_id(this.ptr, ptr0, len0);
|
|
1026
978
|
}
|
|
1027
979
|
/**
|
|
@@ -1052,7 +1004,7 @@ export class Fleet {
|
|
|
1052
1004
|
/**
|
|
1053
1005
|
*/
|
|
1054
1006
|
get len() {
|
|
1055
|
-
|
|
1007
|
+
const ret = wasm.__wbg_get_fleet_len(this.ptr);
|
|
1056
1008
|
return ret >>> 0;
|
|
1057
1009
|
}
|
|
1058
1010
|
/**
|
|
@@ -1065,7 +1017,7 @@ export class Fleet {
|
|
|
1065
1017
|
* @returns {FleetMeta}
|
|
1066
1018
|
*/
|
|
1067
1019
|
meta() {
|
|
1068
|
-
|
|
1020
|
+
const ret = wasm.fleet_meta(this.ptr);
|
|
1069
1021
|
return takeObject(ret);
|
|
1070
1022
|
}
|
|
1071
1023
|
/**
|
|
@@ -1138,9 +1090,9 @@ export class Fleet {
|
|
|
1138
1090
|
* @returns {number | undefined}
|
|
1139
1091
|
*/
|
|
1140
1092
|
get_damage_bound(id, state) {
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1093
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1094
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1095
|
+
const ret = wasm.fleet_get_damage_bound(this.ptr, ptr0, len0, addHeapObject(state));
|
|
1144
1096
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1145
1097
|
}
|
|
1146
1098
|
/**
|
|
@@ -1150,9 +1102,9 @@ export class Fleet {
|
|
|
1150
1102
|
* @returns {number | undefined}
|
|
1151
1103
|
*/
|
|
1152
1104
|
get_remaining_fuel(id, rate, ceil) {
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1105
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1106
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1107
|
+
const ret = wasm.fleet_get_remaining_fuel(this.ptr, ptr0, len0, rate, ceil);
|
|
1156
1108
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1157
1109
|
}
|
|
1158
1110
|
/**
|
|
@@ -1162,16 +1114,16 @@ export class Fleet {
|
|
|
1162
1114
|
* @returns {number | undefined}
|
|
1163
1115
|
*/
|
|
1164
1116
|
get_remaining_ammo(id, rate, ceil) {
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1117
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1118
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1119
|
+
const ret = wasm.fleet_get_remaining_ammo(this.ptr, ptr0, len0, rate, ceil);
|
|
1168
1120
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1169
1121
|
}
|
|
1170
1122
|
/**
|
|
1171
1123
|
* @returns {number}
|
|
1172
1124
|
*/
|
|
1173
1125
|
count_ships() {
|
|
1174
|
-
|
|
1126
|
+
const ret = wasm.fleet_count_ships(this.ptr);
|
|
1175
1127
|
return ret >>> 0;
|
|
1176
1128
|
}
|
|
1177
1129
|
/**
|
|
@@ -1179,9 +1131,9 @@ export class Fleet {
|
|
|
1179
1131
|
* @returns {Ship | undefined}
|
|
1180
1132
|
*/
|
|
1181
1133
|
get_ship(key) {
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1134
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1135
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1136
|
+
const ret = wasm.fleet_get_ship(this.ptr, ptr0, len0);
|
|
1185
1137
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
1186
1138
|
}
|
|
1187
1139
|
/**
|
|
@@ -1250,7 +1202,7 @@ export class Fleet {
|
|
|
1250
1202
|
* @returns {number}
|
|
1251
1203
|
*/
|
|
1252
1204
|
expedition_bonus() {
|
|
1253
|
-
|
|
1205
|
+
const ret = wasm.fleet_expedition_bonus(this.ptr);
|
|
1254
1206
|
return ret;
|
|
1255
1207
|
}
|
|
1256
1208
|
/**
|
|
@@ -1260,8 +1212,8 @@ export class Fleet {
|
|
|
1260
1212
|
sum_ship_stat_by(key) {
|
|
1261
1213
|
try {
|
|
1262
1214
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1263
|
-
|
|
1264
|
-
|
|
1215
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1216
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1265
1217
|
wasm.fleet_sum_ship_stat_by(retptr, this.ptr, ptr0, len0);
|
|
1266
1218
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1267
1219
|
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
@@ -1318,8 +1270,8 @@ export class Gear {
|
|
|
1318
1270
|
* @param {string} arg0
|
|
1319
1271
|
*/
|
|
1320
1272
|
set id(arg0) {
|
|
1321
|
-
|
|
1322
|
-
|
|
1273
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1274
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1323
1275
|
wasm.__wbg_set_gear_id(this.ptr, ptr0, len0);
|
|
1324
1276
|
}
|
|
1325
1277
|
/**
|
|
@@ -1350,7 +1302,7 @@ export class Gear {
|
|
|
1350
1302
|
/**
|
|
1351
1303
|
*/
|
|
1352
1304
|
get gear_id() {
|
|
1353
|
-
|
|
1305
|
+
const ret = wasm.__wbg_get_gear_gear_id(this.ptr);
|
|
1354
1306
|
return ret;
|
|
1355
1307
|
}
|
|
1356
1308
|
/**
|
|
@@ -1362,7 +1314,7 @@ export class Gear {
|
|
|
1362
1314
|
/**
|
|
1363
1315
|
*/
|
|
1364
1316
|
get stars() {
|
|
1365
|
-
|
|
1317
|
+
const ret = wasm.__wbg_get_gear_stars(this.ptr);
|
|
1366
1318
|
return ret;
|
|
1367
1319
|
}
|
|
1368
1320
|
/**
|
|
@@ -1374,7 +1326,7 @@ export class Gear {
|
|
|
1374
1326
|
/**
|
|
1375
1327
|
*/
|
|
1376
1328
|
get exp() {
|
|
1377
|
-
|
|
1329
|
+
const ret = wasm.__wbg_get_gear_exp(this.ptr);
|
|
1378
1330
|
return ret;
|
|
1379
1331
|
}
|
|
1380
1332
|
/**
|
|
@@ -1386,7 +1338,7 @@ export class Gear {
|
|
|
1386
1338
|
/**
|
|
1387
1339
|
*/
|
|
1388
1340
|
get default_exp() {
|
|
1389
|
-
|
|
1341
|
+
const ret = wasm.__wbg_get_gear_default_exp(this.ptr);
|
|
1390
1342
|
return ret;
|
|
1391
1343
|
}
|
|
1392
1344
|
/**
|
|
@@ -1413,14 +1365,37 @@ export class Gear {
|
|
|
1413
1365
|
* @param {string} arg0
|
|
1414
1366
|
*/
|
|
1415
1367
|
set name(arg0) {
|
|
1416
|
-
|
|
1417
|
-
|
|
1368
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1369
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1418
1370
|
wasm.__wbg_set_gear_name(this.ptr, ptr0, len0);
|
|
1419
1371
|
}
|
|
1420
1372
|
/**
|
|
1421
1373
|
*/
|
|
1374
|
+
get types() {
|
|
1375
|
+
try {
|
|
1376
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1377
|
+
wasm.__wbg_get_gear_types(retptr, this.ptr);
|
|
1378
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1379
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1380
|
+
var v0 = getArrayU8FromWasm0(r0, r1).slice();
|
|
1381
|
+
wasm.__wbindgen_free(r0, r1 * 1);
|
|
1382
|
+
return v0;
|
|
1383
|
+
} finally {
|
|
1384
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
/**
|
|
1388
|
+
* @param {Uint8Array} arg0
|
|
1389
|
+
*/
|
|
1390
|
+
set types(arg0) {
|
|
1391
|
+
const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1392
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1393
|
+
wasm.__wbg_set_gear_types(this.ptr, ptr0, len0);
|
|
1394
|
+
}
|
|
1395
|
+
/**
|
|
1396
|
+
*/
|
|
1422
1397
|
get gear_type() {
|
|
1423
|
-
|
|
1398
|
+
const ret = wasm.__wbg_get_gear_gear_type(this.ptr);
|
|
1424
1399
|
return takeObject(ret);
|
|
1425
1400
|
}
|
|
1426
1401
|
/**
|
|
@@ -1432,7 +1407,7 @@ export class Gear {
|
|
|
1432
1407
|
/**
|
|
1433
1408
|
*/
|
|
1434
1409
|
get max_hp() {
|
|
1435
|
-
|
|
1410
|
+
const ret = wasm.__wbg_get_gear_max_hp(this.ptr);
|
|
1436
1411
|
return ret;
|
|
1437
1412
|
}
|
|
1438
1413
|
/**
|
|
@@ -1444,7 +1419,7 @@ export class Gear {
|
|
|
1444
1419
|
/**
|
|
1445
1420
|
*/
|
|
1446
1421
|
get firepower() {
|
|
1447
|
-
|
|
1422
|
+
const ret = wasm.__wbg_get_gear_firepower(this.ptr);
|
|
1448
1423
|
return ret;
|
|
1449
1424
|
}
|
|
1450
1425
|
/**
|
|
@@ -1456,7 +1431,7 @@ export class Gear {
|
|
|
1456
1431
|
/**
|
|
1457
1432
|
*/
|
|
1458
1433
|
get armor() {
|
|
1459
|
-
|
|
1434
|
+
const ret = wasm.__wbg_get_gear_armor(this.ptr);
|
|
1460
1435
|
return ret;
|
|
1461
1436
|
}
|
|
1462
1437
|
/**
|
|
@@ -1468,7 +1443,7 @@ export class Gear {
|
|
|
1468
1443
|
/**
|
|
1469
1444
|
*/
|
|
1470
1445
|
get torpedo() {
|
|
1471
|
-
|
|
1446
|
+
const ret = wasm.__wbg_get_gear_torpedo(this.ptr);
|
|
1472
1447
|
return ret;
|
|
1473
1448
|
}
|
|
1474
1449
|
/**
|
|
@@ -1480,7 +1455,7 @@ export class Gear {
|
|
|
1480
1455
|
/**
|
|
1481
1456
|
*/
|
|
1482
1457
|
get anti_air() {
|
|
1483
|
-
|
|
1458
|
+
const ret = wasm.__wbg_get_gear_anti_air(this.ptr);
|
|
1484
1459
|
return ret;
|
|
1485
1460
|
}
|
|
1486
1461
|
/**
|
|
@@ -1492,7 +1467,7 @@ export class Gear {
|
|
|
1492
1467
|
/**
|
|
1493
1468
|
*/
|
|
1494
1469
|
get speed() {
|
|
1495
|
-
|
|
1470
|
+
const ret = wasm.__wbg_get_gear_speed(this.ptr);
|
|
1496
1471
|
return ret;
|
|
1497
1472
|
}
|
|
1498
1473
|
/**
|
|
@@ -1504,7 +1479,7 @@ export class Gear {
|
|
|
1504
1479
|
/**
|
|
1505
1480
|
*/
|
|
1506
1481
|
get bombing() {
|
|
1507
|
-
|
|
1482
|
+
const ret = wasm.__wbg_get_gear_bombing(this.ptr);
|
|
1508
1483
|
return ret;
|
|
1509
1484
|
}
|
|
1510
1485
|
/**
|
|
@@ -1516,7 +1491,7 @@ export class Gear {
|
|
|
1516
1491
|
/**
|
|
1517
1492
|
*/
|
|
1518
1493
|
get asw() {
|
|
1519
|
-
|
|
1494
|
+
const ret = wasm.__wbg_get_gear_asw(this.ptr);
|
|
1520
1495
|
return ret;
|
|
1521
1496
|
}
|
|
1522
1497
|
/**
|
|
@@ -1528,7 +1503,7 @@ export class Gear {
|
|
|
1528
1503
|
/**
|
|
1529
1504
|
*/
|
|
1530
1505
|
get los() {
|
|
1531
|
-
|
|
1506
|
+
const ret = wasm.__wbg_get_gear_los(this.ptr);
|
|
1532
1507
|
return ret;
|
|
1533
1508
|
}
|
|
1534
1509
|
/**
|
|
@@ -1540,7 +1515,7 @@ export class Gear {
|
|
|
1540
1515
|
/**
|
|
1541
1516
|
*/
|
|
1542
1517
|
get luck() {
|
|
1543
|
-
|
|
1518
|
+
const ret = wasm.__wbg_get_gear_luck(this.ptr);
|
|
1544
1519
|
return ret;
|
|
1545
1520
|
}
|
|
1546
1521
|
/**
|
|
@@ -1552,7 +1527,7 @@ export class Gear {
|
|
|
1552
1527
|
/**
|
|
1553
1528
|
*/
|
|
1554
1529
|
get accuracy() {
|
|
1555
|
-
|
|
1530
|
+
const ret = wasm.__wbg_get_gear_accuracy(this.ptr);
|
|
1556
1531
|
return ret;
|
|
1557
1532
|
}
|
|
1558
1533
|
/**
|
|
@@ -1564,7 +1539,7 @@ export class Gear {
|
|
|
1564
1539
|
/**
|
|
1565
1540
|
*/
|
|
1566
1541
|
get evasion() {
|
|
1567
|
-
|
|
1542
|
+
const ret = wasm.__wbg_get_gear_evasion(this.ptr);
|
|
1568
1543
|
return ret;
|
|
1569
1544
|
}
|
|
1570
1545
|
/**
|
|
@@ -1576,7 +1551,7 @@ export class Gear {
|
|
|
1576
1551
|
/**
|
|
1577
1552
|
*/
|
|
1578
1553
|
get range() {
|
|
1579
|
-
|
|
1554
|
+
const ret = wasm.__wbg_get_gear_range(this.ptr);
|
|
1580
1555
|
return ret;
|
|
1581
1556
|
}
|
|
1582
1557
|
/**
|
|
@@ -1588,7 +1563,7 @@ export class Gear {
|
|
|
1588
1563
|
/**
|
|
1589
1564
|
*/
|
|
1590
1565
|
get radius() {
|
|
1591
|
-
|
|
1566
|
+
const ret = wasm.__wbg_get_gear_radius(this.ptr);
|
|
1592
1567
|
return ret;
|
|
1593
1568
|
}
|
|
1594
1569
|
/**
|
|
@@ -1600,7 +1575,7 @@ export class Gear {
|
|
|
1600
1575
|
/**
|
|
1601
1576
|
*/
|
|
1602
1577
|
get cost() {
|
|
1603
|
-
|
|
1578
|
+
const ret = wasm.__wbg_get_gear_cost(this.ptr);
|
|
1604
1579
|
return ret;
|
|
1605
1580
|
}
|
|
1606
1581
|
/**
|
|
@@ -1612,7 +1587,7 @@ export class Gear {
|
|
|
1612
1587
|
/**
|
|
1613
1588
|
*/
|
|
1614
1589
|
get improvable() {
|
|
1615
|
-
|
|
1590
|
+
const ret = wasm.__wbg_get_gear_improvable(this.ptr);
|
|
1616
1591
|
return ret !== 0;
|
|
1617
1592
|
}
|
|
1618
1593
|
/**
|
|
@@ -1623,20 +1598,20 @@ export class Gear {
|
|
|
1623
1598
|
}
|
|
1624
1599
|
/**
|
|
1625
1600
|
*/
|
|
1626
|
-
get
|
|
1627
|
-
|
|
1601
|
+
get ship_anti_air_resistance() {
|
|
1602
|
+
const ret = wasm.__wbg_get_gear_ship_anti_air_resistance(this.ptr);
|
|
1628
1603
|
return ret;
|
|
1629
1604
|
}
|
|
1630
1605
|
/**
|
|
1631
1606
|
* @param {number} arg0
|
|
1632
1607
|
*/
|
|
1633
|
-
set
|
|
1634
|
-
wasm.
|
|
1608
|
+
set ship_anti_air_resistance(arg0) {
|
|
1609
|
+
wasm.__wbg_set_gear_ship_anti_air_resistance(this.ptr, arg0);
|
|
1635
1610
|
}
|
|
1636
1611
|
/**
|
|
1637
1612
|
*/
|
|
1638
1613
|
get fleet_anti_air_resistance() {
|
|
1639
|
-
|
|
1614
|
+
const ret = wasm.__wbg_get_gear_fleet_anti_air_resistance(this.ptr);
|
|
1640
1615
|
return ret;
|
|
1641
1616
|
}
|
|
1642
1617
|
/**
|
|
@@ -1649,35 +1624,28 @@ export class Gear {
|
|
|
1649
1624
|
* @returns {Gear}
|
|
1650
1625
|
*/
|
|
1651
1626
|
static default() {
|
|
1652
|
-
|
|
1627
|
+
const ret = wasm.gear_default();
|
|
1653
1628
|
return Gear.__wrap(ret);
|
|
1654
1629
|
}
|
|
1655
1630
|
/**
|
|
1656
|
-
* @returns {any}
|
|
1657
|
-
*/
|
|
1658
|
-
get types() {
|
|
1659
|
-
var ret = wasm.gear_types(this.ptr);
|
|
1660
|
-
return takeObject(ret);
|
|
1661
|
-
}
|
|
1662
|
-
/**
|
|
1663
1631
|
* @returns {number}
|
|
1664
1632
|
*/
|
|
1665
1633
|
get gear_type_id() {
|
|
1666
|
-
|
|
1634
|
+
const ret = wasm.gear_gear_type_id(this.ptr);
|
|
1667
1635
|
return ret;
|
|
1668
1636
|
}
|
|
1669
1637
|
/**
|
|
1670
1638
|
* @returns {number}
|
|
1671
1639
|
*/
|
|
1672
1640
|
get special_type_id() {
|
|
1673
|
-
|
|
1641
|
+
const ret = wasm.gear_special_type_id(this.ptr);
|
|
1674
1642
|
return ret;
|
|
1675
1643
|
}
|
|
1676
1644
|
/**
|
|
1677
1645
|
* @returns {number}
|
|
1678
1646
|
*/
|
|
1679
1647
|
get icon_id() {
|
|
1680
|
-
|
|
1648
|
+
const ret = wasm.gear_icon_id(this.ptr);
|
|
1681
1649
|
return ret;
|
|
1682
1650
|
}
|
|
1683
1651
|
/**
|
|
@@ -1685,63 +1653,63 @@ export class Gear {
|
|
|
1685
1653
|
* @returns {boolean}
|
|
1686
1654
|
*/
|
|
1687
1655
|
has_attr(attr) {
|
|
1688
|
-
|
|
1656
|
+
const ret = wasm.gear_has_attr(this.ptr, addHeapObject(attr));
|
|
1689
1657
|
return ret !== 0;
|
|
1690
1658
|
}
|
|
1691
1659
|
/**
|
|
1692
1660
|
* @returns {GearCategory}
|
|
1693
1661
|
*/
|
|
1694
1662
|
category() {
|
|
1695
|
-
|
|
1663
|
+
const ret = wasm.gear_category(this.ptr);
|
|
1696
1664
|
return takeObject(ret);
|
|
1697
1665
|
}
|
|
1698
1666
|
/**
|
|
1699
1667
|
* @returns {number}
|
|
1700
1668
|
*/
|
|
1701
1669
|
get ace() {
|
|
1702
|
-
|
|
1670
|
+
const ret = wasm.gear_ace(this.ptr);
|
|
1703
1671
|
return ret;
|
|
1704
1672
|
}
|
|
1705
1673
|
/**
|
|
1706
1674
|
* @returns {number}
|
|
1707
1675
|
*/
|
|
1708
1676
|
get anti_bomber() {
|
|
1709
|
-
|
|
1677
|
+
const ret = wasm.gear_anti_bomber(this.ptr);
|
|
1710
1678
|
return ret;
|
|
1711
1679
|
}
|
|
1712
1680
|
/**
|
|
1713
1681
|
* @returns {number}
|
|
1714
1682
|
*/
|
|
1715
1683
|
get interception() {
|
|
1716
|
-
|
|
1684
|
+
const ret = wasm.gear_interception(this.ptr);
|
|
1717
1685
|
return ret;
|
|
1718
1686
|
}
|
|
1719
1687
|
/**
|
|
1720
1688
|
* @returns {boolean}
|
|
1721
1689
|
*/
|
|
1722
1690
|
is_carrier_shelling_plane() {
|
|
1723
|
-
|
|
1691
|
+
const ret = wasm.gear_is_carrier_shelling_plane(this.ptr);
|
|
1724
1692
|
return ret !== 0;
|
|
1725
1693
|
}
|
|
1726
1694
|
/**
|
|
1727
1695
|
* @returns {boolean}
|
|
1728
1696
|
*/
|
|
1729
1697
|
has_proficiency() {
|
|
1730
|
-
|
|
1698
|
+
const ret = wasm.gear_can_be_deployed_to_land_base(this.ptr);
|
|
1731
1699
|
return ret !== 0;
|
|
1732
1700
|
}
|
|
1733
1701
|
/**
|
|
1734
1702
|
* @returns {boolean}
|
|
1735
1703
|
*/
|
|
1736
1704
|
max_exp_eq_120() {
|
|
1737
|
-
|
|
1705
|
+
const ret = wasm.gear_max_exp_eq_120(this.ptr);
|
|
1738
1706
|
return ret !== 0;
|
|
1739
1707
|
}
|
|
1740
1708
|
/**
|
|
1741
1709
|
* @returns {number}
|
|
1742
1710
|
*/
|
|
1743
1711
|
proficiency_critical_power_mod() {
|
|
1744
|
-
|
|
1712
|
+
const ret = wasm.gear_proficiency_critical_power_mod(this.ptr);
|
|
1745
1713
|
return ret;
|
|
1746
1714
|
}
|
|
1747
1715
|
/**
|
|
@@ -1749,7 +1717,7 @@ export class Gear {
|
|
|
1749
1717
|
* @returns {number}
|
|
1750
1718
|
*/
|
|
1751
1719
|
calc_fighter_power(slot_size) {
|
|
1752
|
-
|
|
1720
|
+
const ret = wasm.gear_calc_fighter_power(this.ptr, slot_size);
|
|
1753
1721
|
return ret;
|
|
1754
1722
|
}
|
|
1755
1723
|
/**
|
|
@@ -1757,21 +1725,21 @@ export class Gear {
|
|
|
1757
1725
|
* @returns {number}
|
|
1758
1726
|
*/
|
|
1759
1727
|
calc_interception_power(slot_size) {
|
|
1760
|
-
|
|
1728
|
+
const ret = wasm.gear_calc_interception_power(this.ptr, slot_size);
|
|
1761
1729
|
return ret;
|
|
1762
1730
|
}
|
|
1763
1731
|
/**
|
|
1764
1732
|
* @returns {number}
|
|
1765
1733
|
*/
|
|
1766
|
-
|
|
1767
|
-
|
|
1734
|
+
fleet_anti_air_mod() {
|
|
1735
|
+
const ret = wasm.gear_fleet_anti_air_mod(this.ptr);
|
|
1768
1736
|
return ret;
|
|
1769
1737
|
}
|
|
1770
1738
|
/**
|
|
1771
1739
|
* @returns {number}
|
|
1772
1740
|
*/
|
|
1773
|
-
|
|
1774
|
-
|
|
1741
|
+
ship_anti_air_mod() {
|
|
1742
|
+
const ret = wasm.gear_ship_anti_air_mod(this.ptr);
|
|
1775
1743
|
return ret;
|
|
1776
1744
|
}
|
|
1777
1745
|
/**
|
|
@@ -1779,7 +1747,7 @@ export class Gear {
|
|
|
1779
1747
|
* @returns {number}
|
|
1780
1748
|
*/
|
|
1781
1749
|
calc_contact_trigger_factor(slot_size) {
|
|
1782
|
-
|
|
1750
|
+
const ret = wasm.gear_calc_contact_trigger_factor(this.ptr, slot_size);
|
|
1783
1751
|
return ret;
|
|
1784
1752
|
}
|
|
1785
1753
|
/**
|
|
@@ -1787,7 +1755,7 @@ export class Gear {
|
|
|
1787
1755
|
* @returns {number}
|
|
1788
1756
|
*/
|
|
1789
1757
|
contact_selection_rate(rank) {
|
|
1790
|
-
|
|
1758
|
+
const ret = wasm.gear_contact_selection_rate(this.ptr, addHeapObject(rank));
|
|
1791
1759
|
return ret;
|
|
1792
1760
|
}
|
|
1793
1761
|
/**
|
|
@@ -1795,14 +1763,14 @@ export class Gear {
|
|
|
1795
1763
|
* @returns {number}
|
|
1796
1764
|
*/
|
|
1797
1765
|
night_contact_rate(level) {
|
|
1798
|
-
|
|
1766
|
+
const ret = wasm.gear_night_contact_rate(this.ptr, level);
|
|
1799
1767
|
return ret;
|
|
1800
1768
|
}
|
|
1801
1769
|
/**
|
|
1802
1770
|
* @returns {boolean}
|
|
1803
1771
|
*/
|
|
1804
1772
|
is_night_plane() {
|
|
1805
|
-
|
|
1773
|
+
const ret = wasm.gear_is_night_plane(this.ptr);
|
|
1806
1774
|
return ret !== 0;
|
|
1807
1775
|
}
|
|
1808
1776
|
/**
|
|
@@ -1811,44 +1779,51 @@ export class Gear {
|
|
|
1811
1779
|
* @returns {number}
|
|
1812
1780
|
*/
|
|
1813
1781
|
night_plane_power(slot_size, anti_inst) {
|
|
1814
|
-
|
|
1782
|
+
const ret = wasm.gear_night_plane_power(this.ptr, slot_size, anti_inst);
|
|
1815
1783
|
return ret;
|
|
1816
1784
|
}
|
|
1817
1785
|
/**
|
|
1818
1786
|
* @returns {number}
|
|
1819
1787
|
*/
|
|
1820
1788
|
elos() {
|
|
1821
|
-
|
|
1789
|
+
const ret = wasm.gear_elos(this.ptr);
|
|
1822
1790
|
return ret;
|
|
1823
1791
|
}
|
|
1824
1792
|
/**
|
|
1825
1793
|
* @returns {boolean}
|
|
1826
1794
|
*/
|
|
1827
1795
|
is_abyssal() {
|
|
1828
|
-
|
|
1796
|
+
const ret = wasm.gear_is_abyssal(this.ptr);
|
|
1829
1797
|
return ret !== 0;
|
|
1830
1798
|
}
|
|
1831
1799
|
/**
|
|
1832
1800
|
* @returns {boolean}
|
|
1833
1801
|
*/
|
|
1834
1802
|
is_abyssal_cuttlefish_torpedo() {
|
|
1835
|
-
|
|
1803
|
+
const ret = wasm.gear_is_abyssal_cuttlefish_torpedo(this.ptr);
|
|
1836
1804
|
return ret !== 0;
|
|
1837
1805
|
}
|
|
1838
1806
|
/**
|
|
1839
1807
|
* @returns {boolean}
|
|
1840
1808
|
*/
|
|
1841
1809
|
is_abyssal_patrolling_attack_hawk() {
|
|
1842
|
-
|
|
1810
|
+
const ret = wasm.gear_is_abyssal_patrolling_attack_hawk(this.ptr);
|
|
1843
1811
|
return ret !== 0;
|
|
1844
1812
|
}
|
|
1845
1813
|
/**
|
|
1846
1814
|
* @returns {number}
|
|
1847
1815
|
*/
|
|
1848
1816
|
expedition_bonus() {
|
|
1849
|
-
|
|
1817
|
+
const ret = wasm.gear_expedition_bonus(this.ptr);
|
|
1850
1818
|
return ret;
|
|
1851
1819
|
}
|
|
1820
|
+
/**
|
|
1821
|
+
* @returns {boolean}
|
|
1822
|
+
*/
|
|
1823
|
+
can_be_deployed_to_land_base() {
|
|
1824
|
+
const ret = wasm.gear_can_be_deployed_to_land_base(this.ptr);
|
|
1825
|
+
return ret !== 0;
|
|
1826
|
+
}
|
|
1852
1827
|
}
|
|
1853
1828
|
|
|
1854
1829
|
const IBonusesFinalization = new FinalizationRegistry(ptr => wasm.__wbg_ibonuses_free(ptr));
|
|
@@ -1870,7 +1845,7 @@ export class IBonuses {
|
|
|
1870
1845
|
/**
|
|
1871
1846
|
*/
|
|
1872
1847
|
get shelling_power() {
|
|
1873
|
-
|
|
1848
|
+
const ret = wasm.__wbg_get_ibonuses_shelling_power(this.ptr);
|
|
1874
1849
|
return ret;
|
|
1875
1850
|
}
|
|
1876
1851
|
/**
|
|
@@ -1882,7 +1857,7 @@ export class IBonuses {
|
|
|
1882
1857
|
/**
|
|
1883
1858
|
*/
|
|
1884
1859
|
get carrier_shelling_power() {
|
|
1885
|
-
|
|
1860
|
+
const ret = wasm.__wbg_get_ibonuses_carrier_shelling_power(this.ptr);
|
|
1886
1861
|
return ret;
|
|
1887
1862
|
}
|
|
1888
1863
|
/**
|
|
@@ -1894,7 +1869,7 @@ export class IBonuses {
|
|
|
1894
1869
|
/**
|
|
1895
1870
|
*/
|
|
1896
1871
|
get shelling_accuracy() {
|
|
1897
|
-
|
|
1872
|
+
const ret = wasm.__wbg_get_ibonuses_shelling_accuracy(this.ptr);
|
|
1898
1873
|
return ret;
|
|
1899
1874
|
}
|
|
1900
1875
|
/**
|
|
@@ -1906,7 +1881,7 @@ export class IBonuses {
|
|
|
1906
1881
|
/**
|
|
1907
1882
|
*/
|
|
1908
1883
|
get torpedo_power() {
|
|
1909
|
-
|
|
1884
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_power(this.ptr);
|
|
1910
1885
|
return ret;
|
|
1911
1886
|
}
|
|
1912
1887
|
/**
|
|
@@ -1918,7 +1893,7 @@ export class IBonuses {
|
|
|
1918
1893
|
/**
|
|
1919
1894
|
*/
|
|
1920
1895
|
get torpedo_accuracy() {
|
|
1921
|
-
|
|
1896
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_accuracy(this.ptr);
|
|
1922
1897
|
return ret;
|
|
1923
1898
|
}
|
|
1924
1899
|
/**
|
|
@@ -1930,7 +1905,7 @@ export class IBonuses {
|
|
|
1930
1905
|
/**
|
|
1931
1906
|
*/
|
|
1932
1907
|
get torpedo_evasion() {
|
|
1933
|
-
|
|
1908
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_evasion(this.ptr);
|
|
1934
1909
|
return ret;
|
|
1935
1910
|
}
|
|
1936
1911
|
/**
|
|
@@ -1942,7 +1917,7 @@ export class IBonuses {
|
|
|
1942
1917
|
/**
|
|
1943
1918
|
*/
|
|
1944
1919
|
get asw_power() {
|
|
1945
|
-
|
|
1920
|
+
const ret = wasm.__wbg_get_ibonuses_asw_power(this.ptr);
|
|
1946
1921
|
return ret;
|
|
1947
1922
|
}
|
|
1948
1923
|
/**
|
|
@@ -1954,7 +1929,7 @@ export class IBonuses {
|
|
|
1954
1929
|
/**
|
|
1955
1930
|
*/
|
|
1956
1931
|
get asw_accuracy() {
|
|
1957
|
-
|
|
1932
|
+
const ret = wasm.__wbg_get_ibonuses_asw_accuracy(this.ptr);
|
|
1958
1933
|
return ret;
|
|
1959
1934
|
}
|
|
1960
1935
|
/**
|
|
@@ -1966,7 +1941,7 @@ export class IBonuses {
|
|
|
1966
1941
|
/**
|
|
1967
1942
|
*/
|
|
1968
1943
|
get night_power() {
|
|
1969
|
-
|
|
1944
|
+
const ret = wasm.__wbg_get_ibonuses_night_power(this.ptr);
|
|
1970
1945
|
return ret;
|
|
1971
1946
|
}
|
|
1972
1947
|
/**
|
|
@@ -1978,7 +1953,7 @@ export class IBonuses {
|
|
|
1978
1953
|
/**
|
|
1979
1954
|
*/
|
|
1980
1955
|
get night_accuracy() {
|
|
1981
|
-
|
|
1956
|
+
const ret = wasm.__wbg_get_ibonuses_night_accuracy(this.ptr);
|
|
1982
1957
|
return ret;
|
|
1983
1958
|
}
|
|
1984
1959
|
/**
|
|
@@ -1990,7 +1965,7 @@ export class IBonuses {
|
|
|
1990
1965
|
/**
|
|
1991
1966
|
*/
|
|
1992
1967
|
get defense_power() {
|
|
1993
|
-
|
|
1968
|
+
const ret = wasm.__wbg_get_ibonuses_defense_power(this.ptr);
|
|
1994
1969
|
return ret;
|
|
1995
1970
|
}
|
|
1996
1971
|
/**
|
|
@@ -2002,7 +1977,7 @@ export class IBonuses {
|
|
|
2002
1977
|
/**
|
|
2003
1978
|
*/
|
|
2004
1979
|
get contact_selection() {
|
|
2005
|
-
|
|
1980
|
+
const ret = wasm.__wbg_get_ibonuses_contact_selection(this.ptr);
|
|
2006
1981
|
return ret;
|
|
2007
1982
|
}
|
|
2008
1983
|
/**
|
|
@@ -2014,7 +1989,7 @@ export class IBonuses {
|
|
|
2014
1989
|
/**
|
|
2015
1990
|
*/
|
|
2016
1991
|
get fighter_power() {
|
|
2017
|
-
|
|
1992
|
+
const ret = wasm.__wbg_get_ibonuses_fighter_power(this.ptr);
|
|
2018
1993
|
return ret;
|
|
2019
1994
|
}
|
|
2020
1995
|
/**
|
|
@@ -2025,20 +2000,20 @@ export class IBonuses {
|
|
|
2025
2000
|
}
|
|
2026
2001
|
/**
|
|
2027
2002
|
*/
|
|
2028
|
-
get
|
|
2029
|
-
|
|
2003
|
+
get ship_anti_air() {
|
|
2004
|
+
const ret = wasm.__wbg_get_ibonuses_ship_anti_air(this.ptr);
|
|
2030
2005
|
return ret;
|
|
2031
2006
|
}
|
|
2032
2007
|
/**
|
|
2033
2008
|
* @param {number} arg0
|
|
2034
2009
|
*/
|
|
2035
|
-
set
|
|
2036
|
-
wasm.
|
|
2010
|
+
set ship_anti_air(arg0) {
|
|
2011
|
+
wasm.__wbg_set_ibonuses_ship_anti_air(this.ptr, arg0);
|
|
2037
2012
|
}
|
|
2038
2013
|
/**
|
|
2039
2014
|
*/
|
|
2040
2015
|
get fleet_anti_air() {
|
|
2041
|
-
|
|
2016
|
+
const ret = wasm.__wbg_get_ibonuses_fleet_anti_air(this.ptr);
|
|
2042
2017
|
return ret;
|
|
2043
2018
|
}
|
|
2044
2019
|
/**
|
|
@@ -2050,7 +2025,7 @@ export class IBonuses {
|
|
|
2050
2025
|
/**
|
|
2051
2026
|
*/
|
|
2052
2027
|
get elos() {
|
|
2053
|
-
|
|
2028
|
+
const ret = wasm.__wbg_get_ibonuses_elos(this.ptr);
|
|
2054
2029
|
return ret;
|
|
2055
2030
|
}
|
|
2056
2031
|
/**
|
|
@@ -2102,8 +2077,8 @@ export class Org {
|
|
|
2102
2077
|
* @param {string} arg0
|
|
2103
2078
|
*/
|
|
2104
2079
|
set id(arg0) {
|
|
2105
|
-
|
|
2106
|
-
|
|
2080
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2081
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2107
2082
|
wasm.__wbg_set_org_id(this.ptr, ptr0, len0);
|
|
2108
2083
|
}
|
|
2109
2084
|
/**
|
|
@@ -2134,7 +2109,7 @@ export class Org {
|
|
|
2134
2109
|
/**
|
|
2135
2110
|
*/
|
|
2136
2111
|
get hq_level() {
|
|
2137
|
-
|
|
2112
|
+
const ret = wasm.__wbg_get_org_hq_level(this.ptr);
|
|
2138
2113
|
return ret;
|
|
2139
2114
|
}
|
|
2140
2115
|
/**
|
|
@@ -2146,7 +2121,7 @@ export class Org {
|
|
|
2146
2121
|
/**
|
|
2147
2122
|
*/
|
|
2148
2123
|
get org_type() {
|
|
2149
|
-
|
|
2124
|
+
const ret = wasm.__wbg_get_org_org_type(this.ptr);
|
|
2150
2125
|
return takeObject(ret);
|
|
2151
2126
|
}
|
|
2152
2127
|
/**
|
|
@@ -2173,8 +2148,8 @@ export class Org {
|
|
|
2173
2148
|
* @param {string} arg0
|
|
2174
2149
|
*/
|
|
2175
2150
|
set sortie(arg0) {
|
|
2176
|
-
|
|
2177
|
-
|
|
2151
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2152
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2178
2153
|
wasm.__wbg_set_org_sortie(this.ptr, ptr0, len0);
|
|
2179
2154
|
}
|
|
2180
2155
|
/**
|
|
@@ -2234,7 +2209,7 @@ export class Org {
|
|
|
2234
2209
|
* @returns {number}
|
|
2235
2210
|
*/
|
|
2236
2211
|
fleet_len(role) {
|
|
2237
|
-
|
|
2212
|
+
const ret = wasm.org_fleet_len(this.ptr, addHeapObject(role));
|
|
2238
2213
|
return ret >>> 0;
|
|
2239
2214
|
}
|
|
2240
2215
|
/**
|
|
@@ -2245,8 +2220,8 @@ export class Org {
|
|
|
2245
2220
|
get_ship_entity_id(role, key) {
|
|
2246
2221
|
try {
|
|
2247
2222
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2248
|
-
|
|
2249
|
-
|
|
2223
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2224
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2250
2225
|
wasm.org_get_ship_entity_id(retptr, this.ptr, addHeapObject(role), ptr0, len0);
|
|
2251
2226
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2252
2227
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -2328,9 +2303,9 @@ export class Org {
|
|
|
2328
2303
|
* @returns {Fleet}
|
|
2329
2304
|
*/
|
|
2330
2305
|
clone_fleet(key) {
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2306
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2307
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2308
|
+
const ret = wasm.org_clone_fleet(this.ptr, ptr0, len0);
|
|
2334
2309
|
return Fleet.__wrap(ret);
|
|
2335
2310
|
}
|
|
2336
2311
|
/**
|
|
@@ -2339,9 +2314,9 @@ export class Org {
|
|
|
2339
2314
|
* @returns {Ship | undefined}
|
|
2340
2315
|
*/
|
|
2341
2316
|
get_ship(role, key) {
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2317
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2318
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2319
|
+
const ret = wasm.org_get_ship(this.ptr, addHeapObject(role), ptr0, len0);
|
|
2345
2320
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
2346
2321
|
}
|
|
2347
2322
|
/**
|
|
@@ -2349,9 +2324,9 @@ export class Org {
|
|
|
2349
2324
|
* @returns {Ship | undefined}
|
|
2350
2325
|
*/
|
|
2351
2326
|
get_ship_by_id(id) {
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2327
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2328
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2329
|
+
const ret = wasm.org_get_ship_by_id(this.ptr, ptr0, len0);
|
|
2355
2330
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
2356
2331
|
}
|
|
2357
2332
|
/**
|
|
@@ -2374,7 +2349,7 @@ export class Org {
|
|
|
2374
2349
|
* @returns {Comp}
|
|
2375
2350
|
*/
|
|
2376
2351
|
create_comp() {
|
|
2377
|
-
|
|
2352
|
+
const ret = wasm.org_create_comp(this.ptr);
|
|
2378
2353
|
return Comp.__wrap(ret);
|
|
2379
2354
|
}
|
|
2380
2355
|
/**
|
|
@@ -2382,9 +2357,9 @@ export class Org {
|
|
|
2382
2357
|
* @returns {Comp}
|
|
2383
2358
|
*/
|
|
2384
2359
|
create_comp_by_key(key) {
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2360
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2361
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2362
|
+
const ret = wasm.org_create_comp_by_key(this.ptr, ptr0, len0);
|
|
2388
2363
|
return Comp.__wrap(ret);
|
|
2389
2364
|
}
|
|
2390
2365
|
/**
|
|
@@ -2394,8 +2369,8 @@ export class Org {
|
|
|
2394
2369
|
get_air_squadron(key) {
|
|
2395
2370
|
try {
|
|
2396
2371
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2397
|
-
|
|
2398
|
-
|
|
2372
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2373
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2399
2374
|
wasm.org_get_air_squadron(retptr, this.ptr, ptr0, len0);
|
|
2400
2375
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2401
2376
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -2444,35 +2419,35 @@ export class Org {
|
|
|
2444
2419
|
* @returns {Side}
|
|
2445
2420
|
*/
|
|
2446
2421
|
side() {
|
|
2447
|
-
|
|
2422
|
+
const ret = wasm.org_side(this.ptr);
|
|
2448
2423
|
return takeObject(ret);
|
|
2449
2424
|
}
|
|
2450
2425
|
/**
|
|
2451
2426
|
* @returns {boolean}
|
|
2452
2427
|
*/
|
|
2453
2428
|
is_player() {
|
|
2454
|
-
|
|
2429
|
+
const ret = wasm.org_is_player(this.ptr);
|
|
2455
2430
|
return ret !== 0;
|
|
2456
2431
|
}
|
|
2457
2432
|
/**
|
|
2458
2433
|
* @returns {boolean}
|
|
2459
2434
|
*/
|
|
2460
2435
|
is_enemy() {
|
|
2461
|
-
|
|
2436
|
+
const ret = wasm.org_is_enemy(this.ptr);
|
|
2462
2437
|
return ret !== 0;
|
|
2463
2438
|
}
|
|
2464
2439
|
/**
|
|
2465
2440
|
* @returns {boolean}
|
|
2466
2441
|
*/
|
|
2467
2442
|
is_single() {
|
|
2468
|
-
|
|
2443
|
+
const ret = wasm.org_is_single(this.ptr);
|
|
2469
2444
|
return ret !== 0;
|
|
2470
2445
|
}
|
|
2471
2446
|
/**
|
|
2472
2447
|
* @returns {boolean}
|
|
2473
2448
|
*/
|
|
2474
2449
|
is_combined() {
|
|
2475
|
-
|
|
2450
|
+
const ret = wasm.org_is_combined(this.ptr);
|
|
2476
2451
|
return ret !== 0;
|
|
2477
2452
|
}
|
|
2478
2453
|
/**
|
|
@@ -2480,7 +2455,7 @@ export class Org {
|
|
|
2480
2455
|
* @returns {number}
|
|
2481
2456
|
*/
|
|
2482
2457
|
interception_power() {
|
|
2483
|
-
|
|
2458
|
+
const ret = wasm.org_interception_power(this.ptr);
|
|
2484
2459
|
return ret;
|
|
2485
2460
|
}
|
|
2486
2461
|
/**
|
|
@@ -2488,7 +2463,7 @@ export class Org {
|
|
|
2488
2463
|
* @returns {number}
|
|
2489
2464
|
*/
|
|
2490
2465
|
high_altitude_interception_power() {
|
|
2491
|
-
|
|
2466
|
+
const ret = wasm.org_high_altitude_interception_power(this.ptr);
|
|
2492
2467
|
return ret;
|
|
2493
2468
|
}
|
|
2494
2469
|
/**
|
|
@@ -2498,14 +2473,14 @@ export class Org {
|
|
|
2498
2473
|
*/
|
|
2499
2474
|
create_warfare_ship_environment(ship, formation) {
|
|
2500
2475
|
_assertClass(ship, Ship);
|
|
2501
|
-
|
|
2476
|
+
const ret = wasm.org_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
2502
2477
|
return takeObject(ret);
|
|
2503
2478
|
}
|
|
2504
2479
|
/**
|
|
2505
2480
|
* @returns {Org}
|
|
2506
2481
|
*/
|
|
2507
2482
|
static default() {
|
|
2508
|
-
|
|
2483
|
+
const ret = wasm.org_default();
|
|
2509
2484
|
return Org.__wrap(ret);
|
|
2510
2485
|
}
|
|
2511
2486
|
}
|
|
@@ -2551,8 +2526,8 @@ export class Ship {
|
|
|
2551
2526
|
* @param {string} arg0
|
|
2552
2527
|
*/
|
|
2553
2528
|
set id(arg0) {
|
|
2554
|
-
|
|
2555
|
-
|
|
2529
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2530
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2556
2531
|
wasm.__wbg_set_ship_id(this.ptr, ptr0, len0);
|
|
2557
2532
|
}
|
|
2558
2533
|
/**
|
|
@@ -2583,7 +2558,7 @@ export class Ship {
|
|
|
2583
2558
|
/**
|
|
2584
2559
|
*/
|
|
2585
2560
|
get ship_id() {
|
|
2586
|
-
|
|
2561
|
+
const ret = wasm.__wbg_get_ship_ship_id(this.ptr);
|
|
2587
2562
|
return ret;
|
|
2588
2563
|
}
|
|
2589
2564
|
/**
|
|
@@ -2595,7 +2570,7 @@ export class Ship {
|
|
|
2595
2570
|
/**
|
|
2596
2571
|
*/
|
|
2597
2572
|
get level() {
|
|
2598
|
-
|
|
2573
|
+
const ret = wasm.__wbg_get_ship_level(this.ptr);
|
|
2599
2574
|
return ret;
|
|
2600
2575
|
}
|
|
2601
2576
|
/**
|
|
@@ -2607,7 +2582,7 @@ export class Ship {
|
|
|
2607
2582
|
/**
|
|
2608
2583
|
*/
|
|
2609
2584
|
get current_hp() {
|
|
2610
|
-
|
|
2585
|
+
const ret = wasm.__wbg_get_ship_current_hp(this.ptr);
|
|
2611
2586
|
return ret;
|
|
2612
2587
|
}
|
|
2613
2588
|
/**
|
|
@@ -2619,7 +2594,7 @@ export class Ship {
|
|
|
2619
2594
|
/**
|
|
2620
2595
|
*/
|
|
2621
2596
|
get morale() {
|
|
2622
|
-
|
|
2597
|
+
const ret = wasm.__wbg_get_ship_morale(this.ptr);
|
|
2623
2598
|
return ret;
|
|
2624
2599
|
}
|
|
2625
2600
|
/**
|
|
@@ -2631,7 +2606,7 @@ export class Ship {
|
|
|
2631
2606
|
/**
|
|
2632
2607
|
*/
|
|
2633
2608
|
get ammo() {
|
|
2634
|
-
|
|
2609
|
+
const ret = wasm.__wbg_get_ship_ammo(this.ptr);
|
|
2635
2610
|
return ret;
|
|
2636
2611
|
}
|
|
2637
2612
|
/**
|
|
@@ -2643,7 +2618,7 @@ export class Ship {
|
|
|
2643
2618
|
/**
|
|
2644
2619
|
*/
|
|
2645
2620
|
get fuel() {
|
|
2646
|
-
|
|
2621
|
+
const ret = wasm.__wbg_get_ship_fuel(this.ptr);
|
|
2647
2622
|
return ret;
|
|
2648
2623
|
}
|
|
2649
2624
|
/**
|
|
@@ -2655,7 +2630,7 @@ export class Ship {
|
|
|
2655
2630
|
/**
|
|
2656
2631
|
*/
|
|
2657
2632
|
get ship_type() {
|
|
2658
|
-
|
|
2633
|
+
const ret = wasm.__wbg_get_ship_ship_type(this.ptr);
|
|
2659
2634
|
return takeObject(ret);
|
|
2660
2635
|
}
|
|
2661
2636
|
/**
|
|
@@ -2667,7 +2642,7 @@ export class Ship {
|
|
|
2667
2642
|
/**
|
|
2668
2643
|
*/
|
|
2669
2644
|
get ctype() {
|
|
2670
|
-
|
|
2645
|
+
const ret = wasm.__wbg_get_ship_ctype(this.ptr);
|
|
2671
2646
|
return ret;
|
|
2672
2647
|
}
|
|
2673
2648
|
/**
|
|
@@ -2677,108 +2652,120 @@ export class Ship {
|
|
|
2677
2652
|
wasm.__wbg_set_ship_ctype(this.ptr, arg0);
|
|
2678
2653
|
}
|
|
2679
2654
|
/**
|
|
2655
|
+
*/
|
|
2656
|
+
get slots() {
|
|
2657
|
+
const ret = wasm.__wbg_get_ship_slots(this.ptr);
|
|
2658
|
+
return takeObject(ret);
|
|
2659
|
+
}
|
|
2660
|
+
/**
|
|
2661
|
+
* @param {SlotSizeVec} arg0
|
|
2662
|
+
*/
|
|
2663
|
+
set slots(arg0) {
|
|
2664
|
+
wasm.__wbg_set_ship_slots(this.ptr, addHeapObject(arg0));
|
|
2665
|
+
}
|
|
2666
|
+
/**
|
|
2680
2667
|
* @returns {number | undefined}
|
|
2681
2668
|
*/
|
|
2682
2669
|
get naked_firepower() {
|
|
2683
|
-
|
|
2670
|
+
const ret = wasm.ship_naked_firepower(this.ptr);
|
|
2684
2671
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2685
2672
|
}
|
|
2686
2673
|
/**
|
|
2687
2674
|
* @returns {number | undefined}
|
|
2688
2675
|
*/
|
|
2689
2676
|
get naked_torpedo() {
|
|
2690
|
-
|
|
2677
|
+
const ret = wasm.ship_naked_torpedo(this.ptr);
|
|
2691
2678
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2692
2679
|
}
|
|
2693
2680
|
/**
|
|
2694
2681
|
* @returns {number | undefined}
|
|
2695
2682
|
*/
|
|
2696
2683
|
get naked_armor() {
|
|
2697
|
-
|
|
2684
|
+
const ret = wasm.ship_naked_armor(this.ptr);
|
|
2698
2685
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2699
2686
|
}
|
|
2700
2687
|
/**
|
|
2701
2688
|
* @returns {number | undefined}
|
|
2702
2689
|
*/
|
|
2703
2690
|
get naked_anti_air() {
|
|
2704
|
-
|
|
2691
|
+
const ret = wasm.ship_naked_anti_air(this.ptr);
|
|
2705
2692
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2706
2693
|
}
|
|
2707
2694
|
/**
|
|
2708
2695
|
* @returns {number | undefined}
|
|
2709
2696
|
*/
|
|
2710
2697
|
get naked_evasion() {
|
|
2711
|
-
|
|
2698
|
+
const ret = wasm.ship_naked_evasion(this.ptr);
|
|
2712
2699
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2713
2700
|
}
|
|
2714
2701
|
/**
|
|
2715
2702
|
* @returns {number | undefined}
|
|
2716
2703
|
*/
|
|
2717
2704
|
get naked_asw() {
|
|
2718
|
-
|
|
2705
|
+
const ret = wasm.ship_naked_asw(this.ptr);
|
|
2719
2706
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2720
2707
|
}
|
|
2721
2708
|
/**
|
|
2722
2709
|
* @returns {number | undefined}
|
|
2723
2710
|
*/
|
|
2724
2711
|
get naked_los() {
|
|
2725
|
-
|
|
2712
|
+
const ret = wasm.ship_naked_los(this.ptr);
|
|
2726
2713
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2727
2714
|
}
|
|
2728
2715
|
/**
|
|
2729
2716
|
* @returns {number | undefined}
|
|
2730
2717
|
*/
|
|
2731
2718
|
get firepower() {
|
|
2732
|
-
|
|
2719
|
+
const ret = wasm.ship_firepower(this.ptr);
|
|
2733
2720
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2734
2721
|
}
|
|
2735
2722
|
/**
|
|
2736
2723
|
* @returns {number | undefined}
|
|
2737
2724
|
*/
|
|
2738
2725
|
get torpedo() {
|
|
2739
|
-
|
|
2726
|
+
const ret = wasm.ship_torpedo(this.ptr);
|
|
2740
2727
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2741
2728
|
}
|
|
2742
2729
|
/**
|
|
2743
2730
|
* @returns {number | undefined}
|
|
2744
2731
|
*/
|
|
2745
2732
|
get armor() {
|
|
2746
|
-
|
|
2733
|
+
const ret = wasm.ship_armor(this.ptr);
|
|
2747
2734
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2748
2735
|
}
|
|
2749
2736
|
/**
|
|
2750
2737
|
* @returns {number | undefined}
|
|
2751
2738
|
*/
|
|
2752
2739
|
get anti_air() {
|
|
2753
|
-
|
|
2740
|
+
const ret = wasm.ship_anti_air(this.ptr);
|
|
2754
2741
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2755
2742
|
}
|
|
2756
2743
|
/**
|
|
2757
2744
|
* @returns {number | undefined}
|
|
2758
2745
|
*/
|
|
2759
2746
|
get evasion() {
|
|
2760
|
-
|
|
2747
|
+
const ret = wasm.ship_evasion(this.ptr);
|
|
2761
2748
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2762
2749
|
}
|
|
2763
2750
|
/**
|
|
2764
2751
|
* @returns {number | undefined}
|
|
2765
2752
|
*/
|
|
2766
2753
|
get asw() {
|
|
2767
|
-
|
|
2754
|
+
const ret = wasm.ship_asw(this.ptr);
|
|
2768
2755
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2769
2756
|
}
|
|
2770
2757
|
/**
|
|
2771
2758
|
* @returns {number | undefined}
|
|
2772
2759
|
*/
|
|
2773
2760
|
get los() {
|
|
2774
|
-
|
|
2761
|
+
const ret = wasm.ship_los(this.ptr);
|
|
2775
2762
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2776
2763
|
}
|
|
2777
2764
|
/**
|
|
2778
2765
|
* @returns {Ship}
|
|
2779
2766
|
*/
|
|
2780
2767
|
static default() {
|
|
2781
|
-
|
|
2768
|
+
const ret = wasm.ship_default();
|
|
2782
2769
|
return Ship.__wrap(ret);
|
|
2783
2770
|
}
|
|
2784
2771
|
/**
|
|
@@ -2786,23 +2773,23 @@ export class Ship {
|
|
|
2786
2773
|
* @returns {boolean}
|
|
2787
2774
|
*/
|
|
2788
2775
|
eq_id(id) {
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2776
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2777
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2778
|
+
const ret = wasm.ship_eq_id(this.ptr, ptr0, len0);
|
|
2792
2779
|
return ret !== 0;
|
|
2793
2780
|
}
|
|
2794
2781
|
/**
|
|
2795
2782
|
* @returns {ShipState}
|
|
2796
2783
|
*/
|
|
2797
2784
|
state() {
|
|
2798
|
-
|
|
2785
|
+
const ret = wasm.ship_state(this.ptr);
|
|
2799
2786
|
return takeObject(ret);
|
|
2800
2787
|
}
|
|
2801
2788
|
/**
|
|
2802
2789
|
* @returns {ShipMeta}
|
|
2803
2790
|
*/
|
|
2804
2791
|
meta() {
|
|
2805
|
-
|
|
2792
|
+
const ret = wasm.ship_meta(this.ptr);
|
|
2806
2793
|
return takeObject(ret);
|
|
2807
2794
|
}
|
|
2808
2795
|
/**
|
|
@@ -2839,63 +2826,63 @@ export class Ship {
|
|
|
2839
2826
|
* @returns {number}
|
|
2840
2827
|
*/
|
|
2841
2828
|
get stype() {
|
|
2842
|
-
|
|
2829
|
+
const ret = wasm.ship_stype(this.ptr);
|
|
2843
2830
|
return ret;
|
|
2844
2831
|
}
|
|
2845
2832
|
/**
|
|
2846
2833
|
* @returns {number}
|
|
2847
2834
|
*/
|
|
2848
2835
|
get sort_id() {
|
|
2849
|
-
|
|
2836
|
+
const ret = wasm.ship_sort_id(this.ptr);
|
|
2850
2837
|
return ret;
|
|
2851
2838
|
}
|
|
2852
2839
|
/**
|
|
2853
2840
|
* @returns {number}
|
|
2854
2841
|
*/
|
|
2855
2842
|
remodel_rank() {
|
|
2856
|
-
|
|
2843
|
+
const ret = wasm.ship_remodel_rank(this.ptr);
|
|
2857
2844
|
return ret;
|
|
2858
2845
|
}
|
|
2859
2846
|
/**
|
|
2860
2847
|
* @returns {number}
|
|
2861
2848
|
*/
|
|
2862
2849
|
get slotnum() {
|
|
2863
|
-
|
|
2850
|
+
const ret = wasm.ship_slotnum(this.ptr);
|
|
2864
2851
|
return ret >>> 0;
|
|
2865
2852
|
}
|
|
2866
2853
|
/**
|
|
2867
2854
|
* @returns {number}
|
|
2868
2855
|
*/
|
|
2869
2856
|
get next_id() {
|
|
2870
|
-
|
|
2857
|
+
const ret = wasm.ship_next_id(this.ptr);
|
|
2871
2858
|
return ret;
|
|
2872
2859
|
}
|
|
2873
2860
|
/**
|
|
2874
2861
|
* @returns {boolean}
|
|
2875
2862
|
*/
|
|
2876
2863
|
get useful() {
|
|
2877
|
-
|
|
2864
|
+
const ret = wasm.ship_useful(this.ptr);
|
|
2878
2865
|
return ret !== 0;
|
|
2879
2866
|
}
|
|
2880
2867
|
/**
|
|
2881
2868
|
* @returns {DamageState}
|
|
2882
2869
|
*/
|
|
2883
2870
|
damage_state() {
|
|
2884
|
-
|
|
2871
|
+
const ret = wasm.ship_damage_state(this.ptr);
|
|
2885
2872
|
return takeObject(ret);
|
|
2886
2873
|
}
|
|
2887
2874
|
/**
|
|
2888
2875
|
* @returns {MoraleState}
|
|
2889
2876
|
*/
|
|
2890
2877
|
morale_state() {
|
|
2891
|
-
|
|
2878
|
+
const ret = wasm.ship_morale_state(this.ptr);
|
|
2892
2879
|
return takeObject(ret);
|
|
2893
2880
|
}
|
|
2894
2881
|
/**
|
|
2895
2882
|
* @returns {ShipCategory}
|
|
2896
2883
|
*/
|
|
2897
2884
|
category() {
|
|
2898
|
-
|
|
2885
|
+
const ret = wasm.ship_category(this.ptr);
|
|
2899
2886
|
return takeObject(ret);
|
|
2900
2887
|
}
|
|
2901
2888
|
/**
|
|
@@ -2903,14 +2890,14 @@ export class Ship {
|
|
|
2903
2890
|
* @returns {boolean}
|
|
2904
2891
|
*/
|
|
2905
2892
|
has_attr(attr) {
|
|
2906
|
-
|
|
2893
|
+
const ret = wasm.ship_has_attr(this.ptr, addHeapObject(attr));
|
|
2907
2894
|
return ret !== 0;
|
|
2908
2895
|
}
|
|
2909
2896
|
/**
|
|
2910
2897
|
* @returns {any}
|
|
2911
2898
|
*/
|
|
2912
2899
|
gear_keys() {
|
|
2913
|
-
|
|
2900
|
+
const ret = wasm.ship_gear_keys(this.ptr);
|
|
2914
2901
|
return takeObject(ret);
|
|
2915
2902
|
}
|
|
2916
2903
|
/**
|
|
@@ -2918,9 +2905,9 @@ export class Ship {
|
|
|
2918
2905
|
* @returns {Gear | undefined}
|
|
2919
2906
|
*/
|
|
2920
2907
|
get_gear(key) {
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2908
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2909
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2910
|
+
const ret = wasm.ship_get_gear(this.ptr, ptr0, len0);
|
|
2924
2911
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
2925
2912
|
}
|
|
2926
2913
|
/**
|
|
@@ -2928,7 +2915,7 @@ export class Ship {
|
|
|
2928
2915
|
* @returns {number | undefined}
|
|
2929
2916
|
*/
|
|
2930
2917
|
get_damage_bound(state) {
|
|
2931
|
-
|
|
2918
|
+
const ret = wasm.ship_get_damage_bound(this.ptr, addHeapObject(state));
|
|
2932
2919
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2933
2920
|
}
|
|
2934
2921
|
/**
|
|
@@ -2937,7 +2924,7 @@ export class Ship {
|
|
|
2937
2924
|
* @returns {number}
|
|
2938
2925
|
*/
|
|
2939
2926
|
get_remaining_fuel(rate, ceil) {
|
|
2940
|
-
|
|
2927
|
+
const ret = wasm.ship_get_remaining_fuel(this.ptr, rate, ceil);
|
|
2941
2928
|
return ret;
|
|
2942
2929
|
}
|
|
2943
2930
|
/**
|
|
@@ -2946,7 +2933,7 @@ export class Ship {
|
|
|
2946
2933
|
* @returns {number}
|
|
2947
2934
|
*/
|
|
2948
2935
|
get_remaining_ammo(rate, ceil) {
|
|
2949
|
-
|
|
2936
|
+
const ret = wasm.ship_get_remaining_ammo(this.ptr, rate, ceil);
|
|
2950
2937
|
return ret;
|
|
2951
2938
|
}
|
|
2952
2939
|
/**
|
|
@@ -2954,9 +2941,9 @@ export class Ship {
|
|
|
2954
2941
|
* @returns {boolean}
|
|
2955
2942
|
*/
|
|
2956
2943
|
has_unknown_stat(key) {
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2944
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2945
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2946
|
+
const ret = wasm.ship_has_unknown_stat(this.ptr, ptr0, len0);
|
|
2960
2947
|
return ret !== 0;
|
|
2961
2948
|
}
|
|
2962
2949
|
/**
|
|
@@ -2964,9 +2951,9 @@ export class Ship {
|
|
|
2964
2951
|
* @returns {number | undefined}
|
|
2965
2952
|
*/
|
|
2966
2953
|
get_naked_stat(key) {
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2954
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2955
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2956
|
+
const ret = wasm.ship_get_naked_stat(this.ptr, ptr0, len0);
|
|
2970
2957
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2971
2958
|
}
|
|
2972
2959
|
/**
|
|
@@ -2974,9 +2961,9 @@ export class Ship {
|
|
|
2974
2961
|
* @returns {number | undefined}
|
|
2975
2962
|
*/
|
|
2976
2963
|
get_stat_interval_left(key) {
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2964
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2965
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2966
|
+
const ret = wasm.ship_get_stat_interval_left(this.ptr, ptr0, len0);
|
|
2980
2967
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2981
2968
|
}
|
|
2982
2969
|
/**
|
|
@@ -2984,9 +2971,9 @@ export class Ship {
|
|
|
2984
2971
|
* @returns {number | undefined}
|
|
2985
2972
|
*/
|
|
2986
2973
|
get_stat_interval_right(key) {
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2974
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2975
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2976
|
+
const ret = wasm.ship_get_stat_interval_right(this.ptr, ptr0, len0);
|
|
2990
2977
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2991
2978
|
}
|
|
2992
2979
|
/**
|
|
@@ -2994,9 +2981,9 @@ export class Ship {
|
|
|
2994
2981
|
* @returns {number}
|
|
2995
2982
|
*/
|
|
2996
2983
|
get_gear_stat(key) {
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
2984
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2985
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2986
|
+
const ret = wasm.ship_get_gear_stat(this.ptr, ptr0, len0);
|
|
3000
2987
|
return ret;
|
|
3001
2988
|
}
|
|
3002
2989
|
/**
|
|
@@ -3004,9 +2991,9 @@ export class Ship {
|
|
|
3004
2991
|
* @returns {number}
|
|
3005
2992
|
*/
|
|
3006
2993
|
get_ebonus(key) {
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
2994
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2995
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2996
|
+
const ret = wasm.ship_get_ebonus(this.ptr, ptr0, len0);
|
|
3010
2997
|
return ret;
|
|
3011
2998
|
}
|
|
3012
2999
|
/**
|
|
@@ -3014,23 +3001,23 @@ export class Ship {
|
|
|
3014
3001
|
* @returns {number | undefined}
|
|
3015
3002
|
*/
|
|
3016
3003
|
get_stat_mod(key) {
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3004
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3005
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3006
|
+
const ret = wasm.ship_get_stat_mod(this.ptr, ptr0, len0);
|
|
3020
3007
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3021
3008
|
}
|
|
3022
3009
|
/**
|
|
3023
3010
|
* @returns {boolean}
|
|
3024
3011
|
*/
|
|
3025
3012
|
is_abyssal() {
|
|
3026
|
-
|
|
3013
|
+
const ret = wasm.ship_is_abyssal(this.ptr);
|
|
3027
3014
|
return ret !== 0;
|
|
3028
3015
|
}
|
|
3029
3016
|
/**
|
|
3030
3017
|
* @returns {boolean}
|
|
3031
3018
|
*/
|
|
3032
3019
|
is_submarine() {
|
|
3033
|
-
|
|
3020
|
+
const ret = wasm.ship_is_submarine(this.ptr);
|
|
3034
3021
|
return ret !== 0;
|
|
3035
3022
|
}
|
|
3036
3023
|
/**
|
|
@@ -3040,79 +3027,79 @@ export class Ship {
|
|
|
3040
3027
|
*/
|
|
3041
3028
|
can_equip(gear, key) {
|
|
3042
3029
|
_assertClass(gear, Gear);
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3030
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3031
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3032
|
+
const ret = wasm.ship_can_equip(this.ptr, gear.ptr, ptr0, len0);
|
|
3046
3033
|
return ret !== 0;
|
|
3047
3034
|
}
|
|
3048
3035
|
/**
|
|
3049
3036
|
* @returns {number | undefined}
|
|
3050
3037
|
*/
|
|
3051
3038
|
get max_hp() {
|
|
3052
|
-
|
|
3039
|
+
const ret = wasm.ship_max_hp(this.ptr);
|
|
3053
3040
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3054
3041
|
}
|
|
3055
3042
|
/**
|
|
3056
3043
|
* @returns {number}
|
|
3057
3044
|
*/
|
|
3058
3045
|
get max_ammo() {
|
|
3059
|
-
|
|
3046
|
+
const ret = wasm.ship_max_ammo(this.ptr);
|
|
3060
3047
|
return ret;
|
|
3061
3048
|
}
|
|
3062
3049
|
/**
|
|
3063
3050
|
* @returns {number}
|
|
3064
3051
|
*/
|
|
3065
3052
|
get max_fuel() {
|
|
3066
|
-
|
|
3053
|
+
const ret = wasm.ship_max_fuel(this.ptr);
|
|
3067
3054
|
return ret;
|
|
3068
3055
|
}
|
|
3069
3056
|
/**
|
|
3070
3057
|
* @returns {number | undefined}
|
|
3071
3058
|
*/
|
|
3072
3059
|
get naked_range() {
|
|
3073
|
-
|
|
3060
|
+
const ret = wasm.ship_naked_range(this.ptr);
|
|
3074
3061
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3075
3062
|
}
|
|
3076
3063
|
/**
|
|
3077
3064
|
* @returns {number}
|
|
3078
3065
|
*/
|
|
3079
3066
|
get naked_speed() {
|
|
3080
|
-
|
|
3067
|
+
const ret = wasm.ship_naked_speed(this.ptr);
|
|
3081
3068
|
return ret;
|
|
3082
3069
|
}
|
|
3083
3070
|
/**
|
|
3084
3071
|
* @returns {number | undefined}
|
|
3085
3072
|
*/
|
|
3086
3073
|
get luck() {
|
|
3087
|
-
|
|
3074
|
+
const ret = wasm.ship_luck(this.ptr);
|
|
3088
3075
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3089
3076
|
}
|
|
3090
3077
|
/**
|
|
3091
3078
|
* @returns {number | undefined}
|
|
3092
3079
|
*/
|
|
3093
3080
|
get range() {
|
|
3094
|
-
|
|
3081
|
+
const ret = wasm.ship_range(this.ptr);
|
|
3095
3082
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3096
3083
|
}
|
|
3097
3084
|
/**
|
|
3098
3085
|
* @returns {number}
|
|
3099
3086
|
*/
|
|
3100
3087
|
get speed() {
|
|
3101
|
-
|
|
3088
|
+
const ret = wasm.ship_speed(this.ptr);
|
|
3102
3089
|
return ret;
|
|
3103
3090
|
}
|
|
3104
3091
|
/**
|
|
3105
3092
|
* @returns {number}
|
|
3106
3093
|
*/
|
|
3107
3094
|
get accuracy() {
|
|
3108
|
-
|
|
3095
|
+
const ret = wasm.ship_accuracy(this.ptr);
|
|
3109
3096
|
return ret;
|
|
3110
3097
|
}
|
|
3111
3098
|
/**
|
|
3112
3099
|
* @returns {boolean}
|
|
3113
3100
|
*/
|
|
3114
3101
|
is_installation() {
|
|
3115
|
-
|
|
3102
|
+
const ret = wasm.ship_is_installation(this.ptr);
|
|
3116
3103
|
return ret !== 0;
|
|
3117
3104
|
}
|
|
3118
3105
|
/**
|
|
@@ -3120,7 +3107,7 @@ export class Ship {
|
|
|
3120
3107
|
* @returns {number | undefined}
|
|
3121
3108
|
*/
|
|
3122
3109
|
get_slot_size(index) {
|
|
3123
|
-
|
|
3110
|
+
const ret = wasm.ship_get_slot_size(this.ptr, index);
|
|
3124
3111
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3125
3112
|
}
|
|
3126
3113
|
/**
|
|
@@ -3128,21 +3115,21 @@ export class Ship {
|
|
|
3128
3115
|
* @returns {number | undefined}
|
|
3129
3116
|
*/
|
|
3130
3117
|
get_max_slot_size(index) {
|
|
3131
|
-
|
|
3118
|
+
const ret = wasm.ship_get_max_slot_size(this.ptr, index);
|
|
3132
3119
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3133
3120
|
}
|
|
3134
3121
|
/**
|
|
3135
3122
|
* @returns {number}
|
|
3136
3123
|
*/
|
|
3137
3124
|
remaining_ammo_mod() {
|
|
3138
|
-
|
|
3125
|
+
const ret = wasm.ship_remaining_ammo_mod(this.ptr);
|
|
3139
3126
|
return ret;
|
|
3140
3127
|
}
|
|
3141
3128
|
/**
|
|
3142
3129
|
* @returns {number}
|
|
3143
3130
|
*/
|
|
3144
3131
|
remaining_fuel_mod() {
|
|
3145
|
-
|
|
3132
|
+
const ret = wasm.ship_remaining_fuel_mod(this.ptr);
|
|
3146
3133
|
return ret;
|
|
3147
3134
|
}
|
|
3148
3135
|
/**
|
|
@@ -3177,15 +3164,15 @@ export class Ship {
|
|
|
3177
3164
|
/**
|
|
3178
3165
|
* @returns {number}
|
|
3179
3166
|
*/
|
|
3180
|
-
|
|
3181
|
-
|
|
3167
|
+
fleet_anti_air_mod() {
|
|
3168
|
+
const ret = wasm.ship_fleet_anti_air_mod(this.ptr);
|
|
3182
3169
|
return ret;
|
|
3183
3170
|
}
|
|
3184
3171
|
/**
|
|
3185
3172
|
* @returns {number}
|
|
3186
3173
|
*/
|
|
3187
3174
|
cruiser_fit_bonus() {
|
|
3188
|
-
|
|
3175
|
+
const ret = wasm.ship_cruiser_fit_bonus(this.ptr);
|
|
3189
3176
|
return ret;
|
|
3190
3177
|
}
|
|
3191
3178
|
/**
|
|
@@ -3193,7 +3180,7 @@ export class Ship {
|
|
|
3193
3180
|
* @returns {number}
|
|
3194
3181
|
*/
|
|
3195
3182
|
fit_gun_bonus(is_night) {
|
|
3196
|
-
|
|
3183
|
+
const ret = wasm.ship_fit_gun_bonus(this.ptr, is_night);
|
|
3197
3184
|
return ret;
|
|
3198
3185
|
}
|
|
3199
3186
|
/**
|
|
@@ -3260,7 +3247,7 @@ export class Ship {
|
|
|
3260
3247
|
* @returns {number}
|
|
3261
3248
|
*/
|
|
3262
3249
|
transport_point() {
|
|
3263
|
-
|
|
3250
|
+
const ret = wasm.ship_transport_point(this.ptr);
|
|
3264
3251
|
return ret;
|
|
3265
3252
|
}
|
|
3266
3253
|
/**
|
|
@@ -3288,9 +3275,9 @@ export class Ship {
|
|
|
3288
3275
|
|
|
3289
3276
|
export function __wbindgen_json_serialize(arg0, arg1) {
|
|
3290
3277
|
const obj = getObject(arg1);
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3278
|
+
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
3279
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3280
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3294
3281
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3295
3282
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3296
3283
|
};
|
|
@@ -3300,28 +3287,28 @@ export function __wbindgen_object_drop_ref(arg0) {
|
|
|
3300
3287
|
};
|
|
3301
3288
|
|
|
3302
3289
|
export function __wbindgen_string_new(arg0, arg1) {
|
|
3303
|
-
|
|
3290
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3304
3291
|
return addHeapObject(ret);
|
|
3305
3292
|
};
|
|
3306
3293
|
|
|
3307
3294
|
export function __wbindgen_json_parse(arg0, arg1) {
|
|
3308
|
-
|
|
3295
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
3309
3296
|
return addHeapObject(ret);
|
|
3310
3297
|
};
|
|
3311
3298
|
|
|
3312
|
-
export function
|
|
3299
|
+
export function __wbg_error_8ff19d586a987aef(arg0) {
|
|
3313
3300
|
console.error(getObject(arg0));
|
|
3314
3301
|
};
|
|
3315
3302
|
|
|
3316
3303
|
export function __wbg_new_693216e109162396() {
|
|
3317
|
-
|
|
3304
|
+
const ret = new Error();
|
|
3318
3305
|
return addHeapObject(ret);
|
|
3319
3306
|
};
|
|
3320
3307
|
|
|
3321
3308
|
export function __wbg_stack_0ddaca5d1abfb52f(arg0, arg1) {
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3309
|
+
const ret = getObject(arg1).stack;
|
|
3310
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3311
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3325
3312
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3326
3313
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3327
3314
|
};
|
|
@@ -3334,138 +3321,138 @@ export function __wbg_error_09919627ac0992f5(arg0, arg1) {
|
|
|
3334
3321
|
}
|
|
3335
3322
|
};
|
|
3336
3323
|
|
|
3337
|
-
export function __wbg_getRandomValues_fb6b088efb6bead2() { return handleError(function (arg0, arg1) {
|
|
3338
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3339
|
-
}, arguments) };
|
|
3340
|
-
|
|
3341
3324
|
export function __wbg_randomFillSync_654a7797990fb8db() { return handleError(function (arg0, arg1, arg2) {
|
|
3342
3325
|
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
3343
3326
|
}, arguments) };
|
|
3344
3327
|
|
|
3328
|
+
export function __wbg_getRandomValues_fb6b088efb6bead2() { return handleError(function (arg0, arg1) {
|
|
3329
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3330
|
+
}, arguments) };
|
|
3331
|
+
|
|
3345
3332
|
export function __wbg_process_70251ed1291754d5(arg0) {
|
|
3346
|
-
|
|
3333
|
+
const ret = getObject(arg0).process;
|
|
3347
3334
|
return addHeapObject(ret);
|
|
3348
3335
|
};
|
|
3349
3336
|
|
|
3350
3337
|
export function __wbindgen_is_object(arg0) {
|
|
3351
3338
|
const val = getObject(arg0);
|
|
3352
|
-
|
|
3339
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
3353
3340
|
return ret;
|
|
3354
3341
|
};
|
|
3355
3342
|
|
|
3356
3343
|
export function __wbg_versions_b23f2588cdb2ddbb(arg0) {
|
|
3357
|
-
|
|
3344
|
+
const ret = getObject(arg0).versions;
|
|
3358
3345
|
return addHeapObject(ret);
|
|
3359
3346
|
};
|
|
3360
3347
|
|
|
3361
3348
|
export function __wbg_node_61b8c9a82499895d(arg0) {
|
|
3362
|
-
|
|
3349
|
+
const ret = getObject(arg0).node;
|
|
3363
3350
|
return addHeapObject(ret);
|
|
3364
3351
|
};
|
|
3365
3352
|
|
|
3366
3353
|
export function __wbindgen_is_string(arg0) {
|
|
3367
|
-
|
|
3354
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
3368
3355
|
return ret;
|
|
3369
3356
|
};
|
|
3370
3357
|
|
|
3371
3358
|
export function __wbg_static_accessor_NODE_MODULE_33b45247c55045b0() {
|
|
3372
|
-
|
|
3359
|
+
const ret = module;
|
|
3373
3360
|
return addHeapObject(ret);
|
|
3374
3361
|
};
|
|
3375
3362
|
|
|
3376
3363
|
export function __wbg_require_2a93bc09fee45aca() { return handleError(function (arg0, arg1, arg2) {
|
|
3377
|
-
|
|
3364
|
+
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
|
|
3378
3365
|
return addHeapObject(ret);
|
|
3379
3366
|
}, arguments) };
|
|
3380
3367
|
|
|
3381
3368
|
export function __wbg_crypto_2f56257a38275dbd(arg0) {
|
|
3382
|
-
|
|
3369
|
+
const ret = getObject(arg0).crypto;
|
|
3383
3370
|
return addHeapObject(ret);
|
|
3384
3371
|
};
|
|
3385
3372
|
|
|
3386
3373
|
export function __wbg_msCrypto_d07655bf62361f21(arg0) {
|
|
3387
|
-
|
|
3374
|
+
const ret = getObject(arg0).msCrypto;
|
|
3388
3375
|
return addHeapObject(ret);
|
|
3389
3376
|
};
|
|
3390
3377
|
|
|
3391
|
-
export function
|
|
3392
|
-
|
|
3378
|
+
export function __wbg_newnoargs_e23b458e372830de(arg0, arg1) {
|
|
3379
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3393
3380
|
return addHeapObject(ret);
|
|
3394
3381
|
};
|
|
3395
3382
|
|
|
3396
|
-
export function
|
|
3397
|
-
|
|
3383
|
+
export function __wbg_call_ae78342adc33730a() { return handleError(function (arg0, arg1) {
|
|
3384
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
3398
3385
|
return addHeapObject(ret);
|
|
3399
3386
|
}, arguments) };
|
|
3400
3387
|
|
|
3401
3388
|
export function __wbindgen_object_clone_ref(arg0) {
|
|
3402
|
-
|
|
3389
|
+
const ret = getObject(arg0);
|
|
3403
3390
|
return addHeapObject(ret);
|
|
3404
3391
|
};
|
|
3405
3392
|
|
|
3406
|
-
export function
|
|
3407
|
-
|
|
3393
|
+
export function __wbg_call_a19d3173f3e1d3c5() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3394
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
3408
3395
|
return addHeapObject(ret);
|
|
3409
3396
|
}, arguments) };
|
|
3410
3397
|
|
|
3411
|
-
export function
|
|
3412
|
-
|
|
3398
|
+
export function __wbg_self_99737b4dcdf6f0d8() { return handleError(function () {
|
|
3399
|
+
const ret = self.self;
|
|
3413
3400
|
return addHeapObject(ret);
|
|
3414
3401
|
}, arguments) };
|
|
3415
3402
|
|
|
3416
|
-
export function
|
|
3417
|
-
|
|
3403
|
+
export function __wbg_window_9b61fbbf3564c4fb() { return handleError(function () {
|
|
3404
|
+
const ret = window.window;
|
|
3418
3405
|
return addHeapObject(ret);
|
|
3419
3406
|
}, arguments) };
|
|
3420
3407
|
|
|
3421
|
-
export function
|
|
3422
|
-
|
|
3408
|
+
export function __wbg_globalThis_8e275ef40caea3a3() { return handleError(function () {
|
|
3409
|
+
const ret = globalThis.globalThis;
|
|
3423
3410
|
return addHeapObject(ret);
|
|
3424
3411
|
}, arguments) };
|
|
3425
3412
|
|
|
3426
|
-
export function
|
|
3427
|
-
|
|
3413
|
+
export function __wbg_global_5de1e0f82bddcd27() { return handleError(function () {
|
|
3414
|
+
const ret = global.global;
|
|
3428
3415
|
return addHeapObject(ret);
|
|
3429
3416
|
}, arguments) };
|
|
3430
3417
|
|
|
3431
3418
|
export function __wbindgen_is_undefined(arg0) {
|
|
3432
|
-
|
|
3419
|
+
const ret = getObject(arg0) === undefined;
|
|
3433
3420
|
return ret;
|
|
3434
3421
|
};
|
|
3435
3422
|
|
|
3436
|
-
export function
|
|
3437
|
-
|
|
3423
|
+
export function __wbg_buffer_7af23f65f6c64548(arg0) {
|
|
3424
|
+
const ret = getObject(arg0).buffer;
|
|
3438
3425
|
return addHeapObject(ret);
|
|
3439
3426
|
};
|
|
3440
3427
|
|
|
3441
|
-
export function
|
|
3442
|
-
|
|
3428
|
+
export function __wbg_new_cc9018bd6f283b6f(arg0) {
|
|
3429
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
3443
3430
|
return addHeapObject(ret);
|
|
3444
3431
|
};
|
|
3445
3432
|
|
|
3446
|
-
export function
|
|
3433
|
+
export function __wbg_set_f25e869e4565d2a2(arg0, arg1, arg2) {
|
|
3447
3434
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3448
3435
|
};
|
|
3449
3436
|
|
|
3450
|
-
export function
|
|
3451
|
-
|
|
3437
|
+
export function __wbg_length_0acb1cf9bbaf8519(arg0) {
|
|
3438
|
+
const ret = getObject(arg0).length;
|
|
3452
3439
|
return ret;
|
|
3453
3440
|
};
|
|
3454
3441
|
|
|
3455
|
-
export function
|
|
3456
|
-
|
|
3442
|
+
export function __wbg_newwithlength_8f0657faca9f1422(arg0) {
|
|
3443
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
3457
3444
|
return addHeapObject(ret);
|
|
3458
3445
|
};
|
|
3459
3446
|
|
|
3460
|
-
export function
|
|
3461
|
-
|
|
3447
|
+
export function __wbg_subarray_da527dbd24eafb6b(arg0, arg1, arg2) {
|
|
3448
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3462
3449
|
return addHeapObject(ret);
|
|
3463
3450
|
};
|
|
3464
3451
|
|
|
3465
3452
|
export function __wbindgen_debug_string(arg0, arg1) {
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3453
|
+
const ret = debugString(getObject(arg1));
|
|
3454
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3455
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3469
3456
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3470
3457
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3471
3458
|
};
|
|
@@ -3475,7 +3462,7 @@ export function __wbindgen_throw(arg0, arg1) {
|
|
|
3475
3462
|
};
|
|
3476
3463
|
|
|
3477
3464
|
export function __wbindgen_memory() {
|
|
3478
|
-
|
|
3465
|
+
const ret = wasm.memory;
|
|
3479
3466
|
return addHeapObject(ret);
|
|
3480
3467
|
};
|
|
3481
3468
|
|