fleethub-core 0.8.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bindings.d.ts +31 -26
- package/node/fleethub_core.d.ts +1116 -0
- package/node/fleethub_core.js +3494 -0
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +343 -0
- package/package.json +7 -2
- package/pkg/fleethub_core.d.ts +13 -17
- package/pkg/fleethub_core_bg.js +51 -53
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +35 -36
package/bindings.d.ts
CHANGED
|
@@ -348,15 +348,15 @@ export type DayCutin =
|
|
|
348
348
|
export type NightAttackType = "Normal" | "ArkRoyal" | "Carrier";
|
|
349
349
|
|
|
350
350
|
export type NightCutin =
|
|
351
|
+
| "MainTorpRadar"
|
|
352
|
+
| "TorpLookoutRadar"
|
|
353
|
+
| "TorpTsloTorp"
|
|
354
|
+
| "TorpTsloDrum"
|
|
351
355
|
| "DoubleAttack"
|
|
352
356
|
| "TorpTorpMain"
|
|
353
357
|
| "TorpTorpTorp"
|
|
354
358
|
| "MainMainSec"
|
|
355
359
|
| "MainMainMain"
|
|
356
|
-
| "MainTorpRadar"
|
|
357
|
-
| "TorpLookoutRadar"
|
|
358
|
-
| "TorpTsloTorp"
|
|
359
|
-
| "TorpTsloDrum"
|
|
360
360
|
| "SubTorpTorp"
|
|
361
361
|
| "SubRadarTorp"
|
|
362
362
|
| "Cvci1_25"
|
|
@@ -585,7 +585,7 @@ export interface MasterShip {
|
|
|
585
585
|
next_id?: number;
|
|
586
586
|
next_level?: number;
|
|
587
587
|
slotnum: number;
|
|
588
|
-
slots: Array
|
|
588
|
+
slots: Array<number | null>;
|
|
589
589
|
stock: Array<GearState>;
|
|
590
590
|
speed_group?: SpeedGroup;
|
|
591
591
|
useful?: boolean;
|
|
@@ -647,34 +647,39 @@ export interface MasterData {
|
|
|
647
647
|
config: BattleConfig;
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
-
export interface
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
650
|
+
export interface AttackPowerModifier {
|
|
651
|
+
a: number;
|
|
652
|
+
b: number;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
export interface SpecialEnemyModifiers {
|
|
656
|
+
precap_general_mod: AttackPowerModifier;
|
|
657
|
+
stype_mod: AttackPowerModifier;
|
|
658
|
+
landing_craft_synergy_mod: AttackPowerModifier;
|
|
659
|
+
toku_daihatsu_tank_mod: AttackPowerModifier;
|
|
660
|
+
m4a1dd_mod: AttackPowerModifier;
|
|
661
|
+
honi_mod: AttackPowerModifier;
|
|
662
|
+
postcap_general_mod: AttackPowerModifier;
|
|
663
|
+
pt_mod: AttackPowerModifier;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
export interface ExternalPowerModifiers {
|
|
667
|
+
precap_mod: AttackPowerModifier;
|
|
668
|
+
postcap_mod: AttackPowerModifier;
|
|
667
669
|
}
|
|
668
670
|
|
|
669
671
|
export interface AttackPowerParams {
|
|
670
672
|
basic: number;
|
|
671
673
|
cap: number;
|
|
672
|
-
|
|
674
|
+
precap_mod: AttackPowerModifier;
|
|
675
|
+
postcap_mod: AttackPowerModifier;
|
|
673
676
|
ap_shell_mod: number | null;
|
|
674
677
|
carrier_power: number | null;
|
|
675
678
|
proficiency_critical_mod: number | null;
|
|
676
679
|
armor_penetration: number;
|
|
677
680
|
remaining_ammo_mod: number;
|
|
681
|
+
special_enemy_mods: SpecialEnemyModifiers;
|
|
682
|
+
external_power_mods: ExternalPowerModifiers;
|
|
678
683
|
}
|
|
679
684
|
|
|
680
685
|
export interface AttackPower {
|
|
@@ -716,7 +721,7 @@ export interface WarfareContext {
|
|
|
716
721
|
target_env: WarfareShipEnvironment;
|
|
717
722
|
engagement: Engagement;
|
|
718
723
|
air_state: AirState;
|
|
719
|
-
external_power_mods:
|
|
724
|
+
external_power_mods: ExternalPowerModifiers;
|
|
720
725
|
}
|
|
721
726
|
|
|
722
727
|
export interface NightSituation {
|
|
@@ -856,7 +861,7 @@ export interface WarfareAnalyzerShipEnvironment {
|
|
|
856
861
|
formation: Formation;
|
|
857
862
|
fleet_los_mod: number | null;
|
|
858
863
|
night_situation: NightSituation;
|
|
859
|
-
external_power_mods:
|
|
864
|
+
external_power_mods: ExternalPowerModifiers;
|
|
860
865
|
}
|
|
861
866
|
|
|
862
867
|
export interface WarfareAnalyzerContext {
|
|
@@ -896,7 +901,7 @@ export interface ShellingSupportSimulatorParams {
|
|
|
896
901
|
attacker_formation: Formation;
|
|
897
902
|
target_formation: Formation;
|
|
898
903
|
engagement: Engagement;
|
|
899
|
-
external_power_mods:
|
|
904
|
+
external_power_mods: ExternalPowerModifiers;
|
|
900
905
|
}
|
|
901
906
|
|
|
902
907
|
export interface SimulatorResultItem {
|