fleethub-core 0.5.0 → 0.7.3
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/bindings.d.ts +4 -1
- package/node/fh_core.d.ts +72 -83
- package/node/fh_core.js +204 -211
- package/node/fh_core_bg.wasm +0 -0
- package/node/fh_core_bg.wasm.d.ts +33 -31
- package/package.json +1 -1
- package/pkg/fh_core.d.ts +72 -83
- package/pkg/fh_core_bg.js +203 -211
- package/pkg/fh_core_bg.wasm +0 -0
- package/pkg/fh_core_bg.wasm.d.ts +33 -31
package/pkg/fh_core_bg.js
CHANGED
|
@@ -6,20 +6,6 @@ heap.push(undefined, null, true, false);
|
|
|
6
6
|
|
|
7
7
|
function getObject(idx) { return heap[idx]; }
|
|
8
8
|
|
|
9
|
-
let heap_next = heap.length;
|
|
10
|
-
|
|
11
|
-
function dropObject(idx) {
|
|
12
|
-
if (idx < 36) return;
|
|
13
|
-
heap[idx] = heap_next;
|
|
14
|
-
heap_next = idx;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function takeObject(idx) {
|
|
18
|
-
const ret = getObject(idx);
|
|
19
|
-
dropObject(idx);
|
|
20
|
-
return ret;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
9
|
let WASM_VECTOR_LEN = 0;
|
|
24
10
|
|
|
25
11
|
let cachegetUint8Memory0 = null;
|
|
@@ -93,6 +79,20 @@ function getInt32Memory0() {
|
|
|
93
79
|
return cachegetInt32Memory0;
|
|
94
80
|
}
|
|
95
81
|
|
|
82
|
+
let heap_next = heap.length;
|
|
83
|
+
|
|
84
|
+
function dropObject(idx) {
|
|
85
|
+
if (idx < 36) return;
|
|
86
|
+
heap[idx] = heap_next;
|
|
87
|
+
heap_next = idx;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function takeObject(idx) {
|
|
91
|
+
const ret = getObject(idx);
|
|
92
|
+
dropObject(idx);
|
|
93
|
+
return ret;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
96
|
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
97
97
|
|
|
98
98
|
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
@@ -176,6 +176,11 @@ function debugString(val) {
|
|
|
176
176
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
177
177
|
return className;
|
|
178
178
|
}
|
|
179
|
+
/**
|
|
180
|
+
*/
|
|
181
|
+
export function set_panic_hook() {
|
|
182
|
+
wasm.set_panic_hook();
|
|
183
|
+
}
|
|
179
184
|
|
|
180
185
|
function _assertClass(instance, klass) {
|
|
181
186
|
if (!(instance instanceof klass)) {
|
|
@@ -222,11 +227,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
222
227
|
}
|
|
223
228
|
return result;
|
|
224
229
|
}
|
|
225
|
-
/**
|
|
226
|
-
*/
|
|
227
|
-
export function set_panic_hook() {
|
|
228
|
-
wasm.set_panic_hook();
|
|
229
|
-
}
|
|
230
230
|
|
|
231
231
|
let cachegetUint16Memory0 = null;
|
|
232
232
|
function getUint16Memory0() {
|
|
@@ -236,8 +236,11 @@ function getUint16Memory0() {
|
|
|
236
236
|
return cachegetUint16Memory0;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
function
|
|
240
|
-
|
|
239
|
+
function passArray16ToWasm0(arg, malloc) {
|
|
240
|
+
const ptr = malloc(arg.length * 2);
|
|
241
|
+
getUint16Memory0().set(arg, ptr / 2);
|
|
242
|
+
WASM_VECTOR_LEN = arg.length;
|
|
243
|
+
return ptr;
|
|
241
244
|
}
|
|
242
245
|
/**
|
|
243
246
|
* @param {bindings.OrgType} org_type
|
|
@@ -275,15 +278,12 @@ export function org_type_side(org_type) {
|
|
|
275
278
|
return takeObject(ret);
|
|
276
279
|
}
|
|
277
280
|
|
|
278
|
-
function
|
|
279
|
-
return
|
|
281
|
+
function getArrayU16FromWasm0(ptr, len) {
|
|
282
|
+
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
280
283
|
}
|
|
281
284
|
|
|
282
|
-
function
|
|
283
|
-
|
|
284
|
-
getUint16Memory0().set(arg, ptr / 2);
|
|
285
|
-
WASM_VECTOR_LEN = arg.length;
|
|
286
|
-
return ptr;
|
|
285
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
286
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
function handleError(f, args) {
|
|
@@ -425,6 +425,95 @@ export class AirSquadron {
|
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
|
|
428
|
+
const AnalyzerFinalization = new FinalizationRegistry(ptr => wasm.__wbg_analyzer_free(ptr));
|
|
429
|
+
/**
|
|
430
|
+
*/
|
|
431
|
+
export class Analyzer {
|
|
432
|
+
|
|
433
|
+
static __wrap(ptr) {
|
|
434
|
+
const obj = Object.create(Analyzer.prototype);
|
|
435
|
+
obj.ptr = ptr;
|
|
436
|
+
AnalyzerFinalization.register(obj, obj.ptr, obj);
|
|
437
|
+
return obj;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
__destroy_into_raw() {
|
|
441
|
+
const ptr = this.ptr;
|
|
442
|
+
this.ptr = 0;
|
|
443
|
+
AnalyzerFinalization.unregister(this);
|
|
444
|
+
return ptr;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
free() {
|
|
448
|
+
const ptr = this.__destroy_into_raw();
|
|
449
|
+
wasm.__wbg_analyzer_free(ptr);
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* @param {Comp} comp
|
|
453
|
+
* @param {bindings.Formation} formation
|
|
454
|
+
* @param {number | undefined} adjusted_anti_air_resist
|
|
455
|
+
* @param {number | undefined} fleet_anti_air_resist
|
|
456
|
+
* @param {number | undefined} aaci
|
|
457
|
+
* @returns {bindings.CompAntiAirInfo}
|
|
458
|
+
*/
|
|
459
|
+
analyze_anti_air(comp, formation, adjusted_anti_air_resist, fleet_anti_air_resist, aaci) {
|
|
460
|
+
_assertClass(comp, Comp);
|
|
461
|
+
var ret = wasm.analyzer_analyze_anti_air(this.ptr, comp.ptr, addHeapObject(formation), !isLikeNone(adjusted_anti_air_resist), isLikeNone(adjusted_anti_air_resist) ? 0 : adjusted_anti_air_resist, !isLikeNone(fleet_anti_air_resist), isLikeNone(fleet_anti_air_resist) ? 0 : fleet_anti_air_resist, isLikeNone(aaci) ? 0xFFFFFF : aaci);
|
|
462
|
+
return takeObject(ret);
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* @param {Comp} comp
|
|
466
|
+
* @returns {bindings.CompDayCutinRateInfo}
|
|
467
|
+
*/
|
|
468
|
+
analyze_day_cutin(comp) {
|
|
469
|
+
_assertClass(comp, Comp);
|
|
470
|
+
var ret = wasm.analyzer_analyze_day_cutin(this.ptr, comp.ptr);
|
|
471
|
+
return takeObject(ret);
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* @param {Comp} comp
|
|
475
|
+
* @param {bindings.NightSituation} attacker_situation
|
|
476
|
+
* @param {bindings.NightSituation} target_situation
|
|
477
|
+
* @returns {bindings.FleetNightCutinRateInfo}
|
|
478
|
+
*/
|
|
479
|
+
analyze_night_cutin(comp, attacker_situation, target_situation) {
|
|
480
|
+
_assertClass(comp, Comp);
|
|
481
|
+
var ret = wasm.analyzer_analyze_night_cutin(this.ptr, comp.ptr, addHeapObject(attacker_situation), addHeapObject(target_situation));
|
|
482
|
+
return takeObject(ret);
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* @param {Comp} comp
|
|
486
|
+
* @returns {bindings.CompContactChanceInfo}
|
|
487
|
+
*/
|
|
488
|
+
analyze_contact_chance(comp) {
|
|
489
|
+
_assertClass(comp, Comp);
|
|
490
|
+
var ret = wasm.analyzer_analyze_contact_chance(this.ptr, comp.ptr);
|
|
491
|
+
return takeObject(ret);
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* @param {bindings.WarfareAnalyzerContext} params
|
|
495
|
+
* @param {Ship} attacker
|
|
496
|
+
* @param {Ship} target
|
|
497
|
+
* @returns {bindings.WarfareInfo}
|
|
498
|
+
*/
|
|
499
|
+
analyze_warfare(params, attacker, target) {
|
|
500
|
+
_assertClass(attacker, Ship);
|
|
501
|
+
_assertClass(target, Ship);
|
|
502
|
+
var ret = wasm.analyzer_analyze_warfare(this.ptr, addHeapObject(params), attacker.ptr, target.ptr);
|
|
503
|
+
return takeObject(ret);
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* @param {Comp} comp
|
|
507
|
+
* @param {bindings.Engagement} engagement
|
|
508
|
+
* @returns {bindings.FleetCutinAnalysis}
|
|
509
|
+
*/
|
|
510
|
+
analyze_fleet_cutin(comp, engagement) {
|
|
511
|
+
_assertClass(comp, Comp);
|
|
512
|
+
var ret = wasm.analyzer_analyze_fleet_cutin(this.ptr, comp.ptr, addHeapObject(engagement));
|
|
513
|
+
return takeObject(ret);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
428
517
|
const CompFinalization = new FinalizationRegistry(ptr => wasm.__wbg_comp_free(ptr));
|
|
429
518
|
/**
|
|
430
519
|
*/
|
|
@@ -462,6 +551,18 @@ export class Comp {
|
|
|
462
551
|
}
|
|
463
552
|
/**
|
|
464
553
|
*/
|
|
554
|
+
get hq_level() {
|
|
555
|
+
var ret = wasm.__wbg_get_comp_hq_level(this.ptr);
|
|
556
|
+
return ret;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* @param {number} arg0
|
|
560
|
+
*/
|
|
561
|
+
set hq_level(arg0) {
|
|
562
|
+
wasm.__wbg_set_comp_hq_level(this.ptr, arg0);
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
*/
|
|
465
566
|
get main() {
|
|
466
567
|
var ret = wasm.__wbg_get_comp_main(this.ptr);
|
|
467
568
|
return Fleet.__wrap(ret);
|
|
@@ -530,6 +631,13 @@ export class Comp {
|
|
|
530
631
|
wasm.__wbg_set_comp_boss_sup(this.ptr, ptr0);
|
|
531
632
|
}
|
|
532
633
|
/**
|
|
634
|
+
* @returns {bindings.Side}
|
|
635
|
+
*/
|
|
636
|
+
side() {
|
|
637
|
+
var ret = wasm.comp_side(this.ptr);
|
|
638
|
+
return takeObject(ret);
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
533
641
|
* @returns {boolean}
|
|
534
642
|
*/
|
|
535
643
|
is_combined() {
|
|
@@ -649,14 +757,13 @@ export class Comp {
|
|
|
649
757
|
}
|
|
650
758
|
/**
|
|
651
759
|
* マップ索敵
|
|
652
|
-
* @param {number} hq_level
|
|
653
760
|
* @param {number} node_divaricated_factor
|
|
654
761
|
* @returns {number | undefined}
|
|
655
762
|
*/
|
|
656
|
-
elos(
|
|
763
|
+
elos(node_divaricated_factor) {
|
|
657
764
|
try {
|
|
658
765
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
659
|
-
wasm.comp_elos(retptr, this.ptr,
|
|
766
|
+
wasm.comp_elos(retptr, this.ptr, node_divaricated_factor);
|
|
660
767
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
661
768
|
var r1 = getFloat64Memory0()[retptr / 8 + 1];
|
|
662
769
|
return r0 === 0 ? undefined : r1;
|
|
@@ -756,13 +863,15 @@ export class FhCore {
|
|
|
756
863
|
/**
|
|
757
864
|
* @param {Uint16Array} main
|
|
758
865
|
* @param {Uint16Array | undefined} escort
|
|
866
|
+
* @returns {Comp}
|
|
759
867
|
*/
|
|
760
868
|
create_comp_by_map_enemy(main, escort) {
|
|
761
869
|
var ptr0 = passArray16ToWasm0(main, wasm.__wbindgen_malloc);
|
|
762
870
|
var len0 = WASM_VECTOR_LEN;
|
|
763
871
|
var ptr1 = isLikeNone(escort) ? 0 : passArray16ToWasm0(escort, wasm.__wbindgen_malloc);
|
|
764
872
|
var len1 = WASM_VECTOR_LEN;
|
|
765
|
-
wasm.fhcore_create_comp_by_map_enemy(this.ptr, ptr0, len0, ptr1, len1);
|
|
873
|
+
var ret = wasm.fhcore_create_comp_by_map_enemy(this.ptr, ptr0, len0, ptr1, len1);
|
|
874
|
+
return Comp.__wrap(ret);
|
|
766
875
|
}
|
|
767
876
|
/**
|
|
768
877
|
* @returns {Ship}
|
|
@@ -772,67 +881,11 @@ export class FhCore {
|
|
|
772
881
|
return Ship.__wrap(ret);
|
|
773
882
|
}
|
|
774
883
|
/**
|
|
775
|
-
* @
|
|
776
|
-
* @param {bindings.Formation} formation
|
|
777
|
-
* @param {number | undefined} adjusted_anti_air_resist
|
|
778
|
-
* @param {number | undefined} fleet_anti_air_resist
|
|
779
|
-
* @returns {bindings.CompAntiAirInfo}
|
|
884
|
+
* @returns {Analyzer}
|
|
780
885
|
*/
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
return takeObject(ret);
|
|
785
|
-
}
|
|
786
|
-
/**
|
|
787
|
-
* @param {Comp} comp
|
|
788
|
-
* @returns {bindings.CompDayCutinRateInfo}
|
|
789
|
-
*/
|
|
790
|
-
analyze_day_cutin(comp) {
|
|
791
|
-
_assertClass(comp, Comp);
|
|
792
|
-
var ret = wasm.fhcore_analyze_day_cutin(this.ptr, comp.ptr);
|
|
793
|
-
return takeObject(ret);
|
|
794
|
-
}
|
|
795
|
-
/**
|
|
796
|
-
* @param {Comp} comp
|
|
797
|
-
* @param {bindings.NightSituation} attacker_situation
|
|
798
|
-
* @param {bindings.NightSituation} target_situation
|
|
799
|
-
* @returns {bindings.FleetNightCutinRateInfo}
|
|
800
|
-
*/
|
|
801
|
-
analyze_night_cutin(comp, attacker_situation, target_situation) {
|
|
802
|
-
_assertClass(comp, Comp);
|
|
803
|
-
var ret = wasm.fhcore_analyze_night_cutin(this.ptr, comp.ptr, addHeapObject(attacker_situation), addHeapObject(target_situation));
|
|
804
|
-
return takeObject(ret);
|
|
805
|
-
}
|
|
806
|
-
/**
|
|
807
|
-
* @param {Comp} comp
|
|
808
|
-
* @returns {bindings.CompContactChanceInfo}
|
|
809
|
-
*/
|
|
810
|
-
analyze_contact_chance(comp) {
|
|
811
|
-
_assertClass(comp, Comp);
|
|
812
|
-
var ret = wasm.fhcore_analyze_contact_chance(this.ptr, comp.ptr);
|
|
813
|
-
return takeObject(ret);
|
|
814
|
-
}
|
|
815
|
-
/**
|
|
816
|
-
* @param {bindings.WarfareAnalyzerContext} params
|
|
817
|
-
* @param {Ship} attacker
|
|
818
|
-
* @param {Ship} target
|
|
819
|
-
* @returns {bindings.WarfareInfo}
|
|
820
|
-
*/
|
|
821
|
-
analyze_warfare(params, attacker, target) {
|
|
822
|
-
_assertClass(attacker, Ship);
|
|
823
|
-
_assertClass(target, Ship);
|
|
824
|
-
var ret = wasm.fhcore_analyze_warfare(this.ptr, addHeapObject(params), attacker.ptr, target.ptr);
|
|
825
|
-
return takeObject(ret);
|
|
826
|
-
}
|
|
827
|
-
/**
|
|
828
|
-
* @param {Comp} comp
|
|
829
|
-
* @param {bindings.Engagement} engagement
|
|
830
|
-
* @returns {bindings.FleetCutinAnalysis}
|
|
831
|
-
*/
|
|
832
|
-
analyze_fleet_cutin(comp, engagement) {
|
|
833
|
-
_assertClass(comp, Comp);
|
|
834
|
-
var ret = wasm.fhcore_analyze_fleet_cutin(this.ptr, comp.ptr, addHeapObject(engagement));
|
|
835
|
-
return takeObject(ret);
|
|
886
|
+
create_analyzer() {
|
|
887
|
+
var ret = wasm.fhcore_create_analyzer(this.ptr);
|
|
888
|
+
return Analyzer.__wrap(ret);
|
|
836
889
|
}
|
|
837
890
|
/**
|
|
838
891
|
* @param {Comp} player
|
|
@@ -1640,11 +1693,11 @@ export class Gear {
|
|
|
1640
1693
|
return ret !== 0;
|
|
1641
1694
|
}
|
|
1642
1695
|
/**
|
|
1643
|
-
* @param {
|
|
1696
|
+
* @param {bindings.AirStateRank} rank
|
|
1644
1697
|
* @returns {number}
|
|
1645
1698
|
*/
|
|
1646
|
-
contact_selection_rate(
|
|
1647
|
-
var ret = wasm.gear_contact_selection_rate(this.ptr,
|
|
1699
|
+
contact_selection_rate(rank) {
|
|
1700
|
+
var ret = wasm.gear_contact_selection_rate(this.ptr, addHeapObject(rank));
|
|
1648
1701
|
return ret;
|
|
1649
1702
|
}
|
|
1650
1703
|
/**
|
|
@@ -1681,6 +1734,13 @@ export class Gear {
|
|
|
1681
1734
|
/**
|
|
1682
1735
|
* @returns {boolean}
|
|
1683
1736
|
*/
|
|
1737
|
+
is_abyssal() {
|
|
1738
|
+
var ret = wasm.gear_is_abyssal(this.ptr);
|
|
1739
|
+
return ret !== 0;
|
|
1740
|
+
}
|
|
1741
|
+
/**
|
|
1742
|
+
* @returns {boolean}
|
|
1743
|
+
*/
|
|
1684
1744
|
is_abyssal_cuttlefish_torpedo() {
|
|
1685
1745
|
var ret = wasm.gear_is_abyssal_cuttlefish_torpedo(this.ptr);
|
|
1686
1746
|
return ret !== 0;
|
|
@@ -1982,6 +2042,28 @@ export class Org {
|
|
|
1982
2042
|
}
|
|
1983
2043
|
/**
|
|
1984
2044
|
*/
|
|
2045
|
+
get sortie() {
|
|
2046
|
+
try {
|
|
2047
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2048
|
+
wasm.__wbg_get_org_sortie(retptr, this.ptr);
|
|
2049
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2050
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2051
|
+
return getStringFromWasm0(r0, r1);
|
|
2052
|
+
} finally {
|
|
2053
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2054
|
+
wasm.__wbindgen_free(r0, r1);
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
/**
|
|
2058
|
+
* @param {string} arg0
|
|
2059
|
+
*/
|
|
2060
|
+
set sortie(arg0) {
|
|
2061
|
+
var ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2062
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2063
|
+
wasm.__wbg_set_org_sortie(this.ptr, ptr0, len0);
|
|
2064
|
+
}
|
|
2065
|
+
/**
|
|
2066
|
+
*/
|
|
1985
2067
|
get route_sup() {
|
|
1986
2068
|
try {
|
|
1987
2069
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -2096,43 +2178,6 @@ export class Org {
|
|
|
2096
2178
|
}
|
|
2097
2179
|
/**
|
|
2098
2180
|
* @param {bindings.Role} role
|
|
2099
|
-
* @returns {(string)[]}
|
|
2100
|
-
*/
|
|
2101
|
-
ship_keys(role) {
|
|
2102
|
-
try {
|
|
2103
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2104
|
-
wasm.org_ship_keys(retptr, this.ptr, addHeapObject(role));
|
|
2105
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2106
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2107
|
-
var v0 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
2108
|
-
wasm.__wbindgen_free(r0, r1 * 4);
|
|
2109
|
-
return v0;
|
|
2110
|
-
} finally {
|
|
2111
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
/**
|
|
2115
|
-
* @param {bindings.Role} role
|
|
2116
|
-
* @returns {(string)[] | undefined}
|
|
2117
|
-
*/
|
|
2118
|
-
sortie_ship_keys(role) {
|
|
2119
|
-
try {
|
|
2120
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2121
|
-
wasm.org_sortie_ship_keys(retptr, this.ptr, addHeapObject(role));
|
|
2122
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2123
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2124
|
-
let v0;
|
|
2125
|
-
if (r0 !== 0) {
|
|
2126
|
-
v0 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
2127
|
-
wasm.__wbindgen_free(r0, r1 * 4);
|
|
2128
|
-
}
|
|
2129
|
-
return v0;
|
|
2130
|
-
} finally {
|
|
2131
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2132
|
-
}
|
|
2133
|
-
}
|
|
2134
|
-
/**
|
|
2135
|
-
* @param {bindings.Role} role
|
|
2136
2181
|
* @returns {number | undefined}
|
|
2137
2182
|
*/
|
|
2138
2183
|
fleet_los_mod(role) {
|
|
@@ -2226,6 +2271,13 @@ export class Org {
|
|
|
2226
2271
|
}
|
|
2227
2272
|
}
|
|
2228
2273
|
/**
|
|
2274
|
+
* @returns {Comp}
|
|
2275
|
+
*/
|
|
2276
|
+
create_comp() {
|
|
2277
|
+
var ret = wasm.org_create_comp(this.ptr);
|
|
2278
|
+
return Comp.__wrap(ret);
|
|
2279
|
+
}
|
|
2280
|
+
/**
|
|
2229
2281
|
* @param {string} key
|
|
2230
2282
|
* @returns {Comp}
|
|
2231
2283
|
*/
|
|
@@ -2306,55 +2358,6 @@ export class Org {
|
|
|
2306
2358
|
return ret !== 0;
|
|
2307
2359
|
}
|
|
2308
2360
|
/**
|
|
2309
|
-
* @returns {bindings.Formation}
|
|
2310
|
-
*/
|
|
2311
|
-
default_formation() {
|
|
2312
|
-
var ret = wasm.org_default_formation(this.ptr);
|
|
2313
|
-
return takeObject(ret);
|
|
2314
|
-
}
|
|
2315
|
-
/**
|
|
2316
|
-
* 艦隊対空値
|
|
2317
|
-
* @param {number} formation_mod
|
|
2318
|
-
* @returns {number}
|
|
2319
|
-
*/
|
|
2320
|
-
fleet_anti_air(formation_mod) {
|
|
2321
|
-
var ret = wasm.org_fleet_anti_air(this.ptr, formation_mod);
|
|
2322
|
-
return ret;
|
|
2323
|
-
}
|
|
2324
|
-
/**
|
|
2325
|
-
* 制空値
|
|
2326
|
-
* @param {boolean} anti_combined
|
|
2327
|
-
* @param {boolean} anti_lbas
|
|
2328
|
-
* @returns {number | undefined}
|
|
2329
|
-
*/
|
|
2330
|
-
fighter_power(anti_combined, anti_lbas) {
|
|
2331
|
-
try {
|
|
2332
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2333
|
-
wasm.org_fighter_power(retptr, this.ptr, anti_combined, anti_lbas);
|
|
2334
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2335
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2336
|
-
return r0 === 0 ? undefined : r1;
|
|
2337
|
-
} finally {
|
|
2338
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2339
|
-
}
|
|
2340
|
-
}
|
|
2341
|
-
/**
|
|
2342
|
-
* マップ索敵
|
|
2343
|
-
* @param {number} node_divaricated_factor
|
|
2344
|
-
* @returns {number | undefined}
|
|
2345
|
-
*/
|
|
2346
|
-
elos(node_divaricated_factor) {
|
|
2347
|
-
try {
|
|
2348
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2349
|
-
wasm.org_elos(retptr, this.ptr, node_divaricated_factor);
|
|
2350
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2351
|
-
var r1 = getFloat64Memory0()[retptr / 8 + 1];
|
|
2352
|
-
return r0 === 0 ? undefined : r1;
|
|
2353
|
-
} finally {
|
|
2354
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2355
|
-
}
|
|
2356
|
-
}
|
|
2357
|
-
/**
|
|
2358
2361
|
* 防空時の基地制空値
|
|
2359
2362
|
* @returns {number}
|
|
2360
2363
|
*/
|
|
@@ -2371,17 +2374,6 @@ export class Org {
|
|
|
2371
2374
|
return ret;
|
|
2372
2375
|
}
|
|
2373
2376
|
/**
|
|
2374
|
-
* 輸送物資量(TP)
|
|
2375
|
-
* @param {string} key
|
|
2376
|
-
* @returns {number}
|
|
2377
|
-
*/
|
|
2378
|
-
transport_point(key) {
|
|
2379
|
-
var ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2380
|
-
var len0 = WASM_VECTOR_LEN;
|
|
2381
|
-
var ret = wasm.org_transport_point(this.ptr, ptr0, len0);
|
|
2382
|
-
return ret;
|
|
2383
|
-
}
|
|
2384
|
-
/**
|
|
2385
2377
|
* @param {Ship} ship
|
|
2386
2378
|
* @param {bindings.Formation} formation
|
|
2387
2379
|
* @returns {bindings.WarfareShipEnvironment}
|
|
@@ -2662,7 +2654,7 @@ export class Ship {
|
|
|
2662
2654
|
get xxh3() {
|
|
2663
2655
|
try {
|
|
2664
2656
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2665
|
-
wasm.
|
|
2657
|
+
wasm.org_xxh3(retptr, this.ptr);
|
|
2666
2658
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2667
2659
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2668
2660
|
return getStringFromWasm0(r0, r1);
|
|
@@ -3181,10 +3173,6 @@ export class Ship {
|
|
|
3181
3173
|
}
|
|
3182
3174
|
}
|
|
3183
3175
|
|
|
3184
|
-
export function __wbindgen_object_drop_ref(arg0) {
|
|
3185
|
-
takeObject(arg0);
|
|
3186
|
-
};
|
|
3187
|
-
|
|
3188
3176
|
export function __wbindgen_json_serialize(arg0, arg1) {
|
|
3189
3177
|
const obj = getObject(arg1);
|
|
3190
3178
|
var ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -3194,6 +3182,10 @@ export function __wbindgen_json_serialize(arg0, arg1) {
|
|
|
3194
3182
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3195
3183
|
};
|
|
3196
3184
|
|
|
3185
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
|
3186
|
+
takeObject(arg0);
|
|
3187
|
+
};
|
|
3188
|
+
|
|
3197
3189
|
export function __wbindgen_string_new(arg0, arg1) {
|
|
3198
3190
|
var ret = getStringFromWasm0(arg0, arg1);
|
|
3199
3191
|
return addHeapObject(ret);
|
|
@@ -3204,6 +3196,10 @@ export function __wbindgen_json_parse(arg0, arg1) {
|
|
|
3204
3196
|
return addHeapObject(ret);
|
|
3205
3197
|
};
|
|
3206
3198
|
|
|
3199
|
+
export function __wbg_error_cc38ce2b4b661e1d(arg0) {
|
|
3200
|
+
console.error(getObject(arg0));
|
|
3201
|
+
};
|
|
3202
|
+
|
|
3207
3203
|
export function __wbg_new_693216e109162396() {
|
|
3208
3204
|
var ret = new Error();
|
|
3209
3205
|
return addHeapObject(ret);
|
|
@@ -3225,19 +3221,15 @@ export function __wbg_error_09919627ac0992f5(arg0, arg1) {
|
|
|
3225
3221
|
}
|
|
3226
3222
|
};
|
|
3227
3223
|
|
|
3228
|
-
export function
|
|
3229
|
-
|
|
3230
|
-
};
|
|
3231
|
-
|
|
3232
|
-
export function __wbg_getRandomValues_98117e9a7e993920() { return handleError(function (arg0, arg1) {
|
|
3233
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3224
|
+
export function __wbg_randomFillSync_59fcc2add91fe7b3() { return handleError(function (arg0, arg1, arg2) {
|
|
3225
|
+
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
3234
3226
|
}, arguments) };
|
|
3235
3227
|
|
|
3236
|
-
export function
|
|
3237
|
-
getObject(arg0).
|
|
3228
|
+
export function __wbg_getRandomValues_3e46aa268da0fed1() { return handleError(function (arg0, arg1) {
|
|
3229
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3238
3230
|
}, arguments) };
|
|
3239
3231
|
|
|
3240
|
-
export function
|
|
3232
|
+
export function __wbg_process_f2b73829dbd321da(arg0) {
|
|
3241
3233
|
var ret = getObject(arg0).process;
|
|
3242
3234
|
return addHeapObject(ret);
|
|
3243
3235
|
};
|
|
@@ -3248,12 +3240,12 @@ export function __wbindgen_is_object(arg0) {
|
|
|
3248
3240
|
return ret;
|
|
3249
3241
|
};
|
|
3250
3242
|
|
|
3251
|
-
export function
|
|
3243
|
+
export function __wbg_versions_cd82f79c98672a9f(arg0) {
|
|
3252
3244
|
var ret = getObject(arg0).versions;
|
|
3253
3245
|
return addHeapObject(ret);
|
|
3254
3246
|
};
|
|
3255
3247
|
|
|
3256
|
-
export function
|
|
3248
|
+
export function __wbg_node_ee3f6da4130bd35f(arg0) {
|
|
3257
3249
|
var ret = getObject(arg0).node;
|
|
3258
3250
|
return addHeapObject(ret);
|
|
3259
3251
|
};
|
|
@@ -3263,17 +3255,17 @@ export function __wbindgen_is_string(arg0) {
|
|
|
3263
3255
|
return ret;
|
|
3264
3256
|
};
|
|
3265
3257
|
|
|
3266
|
-
export function
|
|
3258
|
+
export function __wbg_modulerequire_0a83c0c31d12d2c7() { return handleError(function (arg0, arg1) {
|
|
3267
3259
|
var ret = module.require(getStringFromWasm0(arg0, arg1));
|
|
3268
3260
|
return addHeapObject(ret);
|
|
3269
3261
|
}, arguments) };
|
|
3270
3262
|
|
|
3271
|
-
export function
|
|
3263
|
+
export function __wbg_crypto_9e3521ed42436d35(arg0) {
|
|
3272
3264
|
var ret = getObject(arg0).crypto;
|
|
3273
3265
|
return addHeapObject(ret);
|
|
3274
3266
|
};
|
|
3275
3267
|
|
|
3276
|
-
export function
|
|
3268
|
+
export function __wbg_msCrypto_c429c3f8f7a70bb5(arg0) {
|
|
3277
3269
|
var ret = getObject(arg0).msCrypto;
|
|
3278
3270
|
return addHeapObject(ret);
|
|
3279
3271
|
};
|
package/pkg/fh_core_bg.wasm
CHANGED
|
Binary file
|