fleethub-core 1.10.2 → 1.10.4
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 +50 -49
- package/node/fleethub_core.js +1 -1
- package/node/fleethub_core_bg.wasm +0 -0
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +50 -49
- package/pkg/fleethub_core_bg.js +1 -1
- package/pkg/fleethub_core_bg.wasm +0 -0
package/node/fleethub_core.d.ts
CHANGED
|
@@ -203,6 +203,8 @@ export type ShipCategory =
|
|
|
203
203
|
| "Submarine"
|
|
204
204
|
| "AuxiliaryShip";
|
|
205
205
|
|
|
206
|
+
export type Role = "Main" | "Escort";
|
|
207
|
+
|
|
206
208
|
export interface NodeAttackAnalyzerShipConfig extends NightFleetConditions {
|
|
207
209
|
formation?: Formation;
|
|
208
210
|
}
|
|
@@ -275,8 +277,6 @@ export interface MoveShipPayload {
|
|
|
275
277
|
target: [string | null, string, ShipKey];
|
|
276
278
|
}
|
|
277
279
|
|
|
278
|
-
export type Role = "Main" | "Escort";
|
|
279
|
-
|
|
280
280
|
export type MoraleState = "Sparkle" | "Normal" | "Orange" | "Red";
|
|
281
281
|
|
|
282
282
|
export type NightCutinLike = NightCutin | FleetCutin;
|
|
@@ -532,21 +532,6 @@ export interface MasterAttrRule<T> {
|
|
|
532
532
|
expr: CompiledEvaler;
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
-
export interface CompMeta {
|
|
536
|
-
fleets: Record<FleetType, FleetMeta>;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
export interface FleetMeta {
|
|
540
|
-
id: string;
|
|
541
|
-
len: number;
|
|
542
|
-
ships: [string, ShipMeta | null][];
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
export interface ShipMeta {
|
|
546
|
-
id: string;
|
|
547
|
-
ship_id: number;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
535
|
export type TorpedoAttackType = null;
|
|
551
536
|
|
|
552
537
|
export type NightPhaseAttackType =
|
|
@@ -590,6 +575,21 @@ export interface ShipPosition {
|
|
|
590
575
|
index?: number;
|
|
591
576
|
}
|
|
592
577
|
|
|
578
|
+
export interface CompMeta {
|
|
579
|
+
fleets: Record<FleetType, FleetMeta>;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
export interface FleetMeta {
|
|
583
|
+
id: string;
|
|
584
|
+
len: number;
|
|
585
|
+
ships: [string, ShipMeta | null][];
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
export interface ShipMeta {
|
|
589
|
+
id: string;
|
|
590
|
+
ship_id: number;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
593
|
export type Engagement = "GreenT" | "Parallel" | "HeadOn" | "RedT";
|
|
594
594
|
|
|
595
595
|
export interface CustomPowerModifiers {
|
|
@@ -751,6 +751,16 @@ export interface AntiAirReport {
|
|
|
751
751
|
anti_air_propellant_barrage_chance: number | null;
|
|
752
752
|
}
|
|
753
753
|
|
|
754
|
+
export interface NodeState {
|
|
755
|
+
map?: number;
|
|
756
|
+
node?: NodeId;
|
|
757
|
+
phase?: number;
|
|
758
|
+
debuff?: boolean;
|
|
759
|
+
disable_historical_mod?: boolean;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
export type NodeId = string;
|
|
763
|
+
|
|
754
764
|
export type GearAttr =
|
|
755
765
|
| "Unknown"
|
|
756
766
|
| "Abyssal"
|
|
@@ -783,8 +793,6 @@ export type GearAttr =
|
|
|
783
793
|
| "SemiNightPlane"
|
|
784
794
|
| "HighAltitudeInterceptor";
|
|
785
795
|
|
|
786
|
-
export type FleetType = "Main" | "Escort" | "RouteSup" | "BossSup";
|
|
787
|
-
|
|
788
796
|
export interface SupportShellingStyle {
|
|
789
797
|
tag: "SupportShellingStyle";
|
|
790
798
|
attack_type: SupportShellingType;
|
|
@@ -848,6 +856,8 @@ export interface DamageReport {
|
|
|
848
856
|
damage_state_density: Histogram<DamageState, number>;
|
|
849
857
|
}
|
|
850
858
|
|
|
859
|
+
export type Histogram<K, V> = Partial<Record<K, V>>;
|
|
860
|
+
|
|
851
861
|
export type Formation = SingleFormation | CombinedFormation;
|
|
852
862
|
|
|
853
863
|
export type CombinedFormation =
|
|
@@ -864,25 +874,7 @@ export type SingleFormation =
|
|
|
864
874
|
| "LineAbreast"
|
|
865
875
|
| "Vanguard";
|
|
866
876
|
|
|
867
|
-
export
|
|
868
|
-
rank3_air_state: AirState;
|
|
869
|
-
rank2_air_state: AirState;
|
|
870
|
-
main_fleet_los_mod: number | null;
|
|
871
|
-
escort_fleet_los_mod: number | null;
|
|
872
|
-
ships: ShipDayCutinAnalysis[];
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
export interface ShipDayCutinAnalysis {
|
|
876
|
-
ship_id: number;
|
|
877
|
-
role: Role;
|
|
878
|
-
index: number;
|
|
879
|
-
rank3: DayCutinReport;
|
|
880
|
-
rank2: DayCutinReport;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
export interface DayCutinReport extends ActionReport<DayPhaseAttackStyle> {
|
|
884
|
-
observation_term: number | null;
|
|
885
|
-
}
|
|
877
|
+
export type FleetType = "Main" | "Escort" | "RouteSup" | "BossSup";
|
|
886
878
|
|
|
887
879
|
export interface AttackAnalysis {
|
|
888
880
|
attacker_is_player: boolean;
|
|
@@ -895,8 +887,6 @@ export interface AttackAnalysis {
|
|
|
895
887
|
support_shelling: ActionReport<SupportShellingStyle>;
|
|
896
888
|
}
|
|
897
889
|
|
|
898
|
-
export type Histogram<K, V> = Partial<Record<K, V>>;
|
|
899
|
-
|
|
900
890
|
export type SpecialEnemyType =
|
|
901
891
|
| "None"
|
|
902
892
|
| "SoftSkinned"
|
|
@@ -909,15 +899,6 @@ export type SpecialEnemyType =
|
|
|
909
899
|
| "BattleshipSummerPrincess"
|
|
910
900
|
| "HeavyCruiserSummerPrincess";
|
|
911
901
|
|
|
912
|
-
export interface NodeState {
|
|
913
|
-
map?: number;
|
|
914
|
-
node?: NodeId;
|
|
915
|
-
phase?: number;
|
|
916
|
-
debuff?: boolean;
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
export type NodeId = string;
|
|
920
|
-
|
|
921
902
|
export interface MasterShip {
|
|
922
903
|
ship_id: number;
|
|
923
904
|
name: string;
|
|
@@ -997,6 +978,26 @@ export interface HitRateParams {
|
|
|
997
978
|
hit_percentage_bonus: number;
|
|
998
979
|
}
|
|
999
980
|
|
|
981
|
+
export interface CompDayCutinAnalysis {
|
|
982
|
+
rank3_air_state: AirState;
|
|
983
|
+
rank2_air_state: AirState;
|
|
984
|
+
main_fleet_los_mod: number | null;
|
|
985
|
+
escort_fleet_los_mod: number | null;
|
|
986
|
+
ships: ShipDayCutinAnalysis[];
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
export interface ShipDayCutinAnalysis {
|
|
990
|
+
ship_id: number;
|
|
991
|
+
role: Role;
|
|
992
|
+
index: number;
|
|
993
|
+
rank3: DayCutinReport;
|
|
994
|
+
rank2: DayCutinReport;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
export interface DayCutinReport extends ActionReport<DayPhaseAttackStyle> {
|
|
998
|
+
observation_term: number | null;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1000
1001
|
export interface ContactAnalysis {
|
|
1001
1002
|
single: DayContactChance[] | null;
|
|
1002
1003
|
combined: DayContactChance[] | null;
|
package/node/fleethub_core.js
CHANGED
|
@@ -2883,7 +2883,7 @@ module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
|
2883
2883
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
2884
2884
|
};
|
|
2885
2885
|
|
|
2886
|
-
module.exports.
|
|
2886
|
+
module.exports.__wbg_createEquipmentBonuses_bfb6061bf74b1305 = function(arg0, arg1) {
|
|
2887
2887
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2888
2888
|
return addHeapObject(ret);
|
|
2889
2889
|
};
|
|
Binary file
|
package/package.json
CHANGED
package/pkg/fleethub_core.d.ts
CHANGED
|
@@ -203,6 +203,8 @@ export type ShipCategory =
|
|
|
203
203
|
| "Submarine"
|
|
204
204
|
| "AuxiliaryShip";
|
|
205
205
|
|
|
206
|
+
export type Role = "Main" | "Escort";
|
|
207
|
+
|
|
206
208
|
export interface NodeAttackAnalyzerShipConfig extends NightFleetConditions {
|
|
207
209
|
formation?: Formation;
|
|
208
210
|
}
|
|
@@ -275,8 +277,6 @@ export interface MoveShipPayload {
|
|
|
275
277
|
target: [string | null, string, ShipKey];
|
|
276
278
|
}
|
|
277
279
|
|
|
278
|
-
export type Role = "Main" | "Escort";
|
|
279
|
-
|
|
280
280
|
export type MoraleState = "Sparkle" | "Normal" | "Orange" | "Red";
|
|
281
281
|
|
|
282
282
|
export type NightCutinLike = NightCutin | FleetCutin;
|
|
@@ -532,21 +532,6 @@ export interface MasterAttrRule<T> {
|
|
|
532
532
|
expr: CompiledEvaler;
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
-
export interface CompMeta {
|
|
536
|
-
fleets: Record<FleetType, FleetMeta>;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
export interface FleetMeta {
|
|
540
|
-
id: string;
|
|
541
|
-
len: number;
|
|
542
|
-
ships: [string, ShipMeta | null][];
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
export interface ShipMeta {
|
|
546
|
-
id: string;
|
|
547
|
-
ship_id: number;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
535
|
export type TorpedoAttackType = null;
|
|
551
536
|
|
|
552
537
|
export type NightPhaseAttackType =
|
|
@@ -590,6 +575,21 @@ export interface ShipPosition {
|
|
|
590
575
|
index?: number;
|
|
591
576
|
}
|
|
592
577
|
|
|
578
|
+
export interface CompMeta {
|
|
579
|
+
fleets: Record<FleetType, FleetMeta>;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
export interface FleetMeta {
|
|
583
|
+
id: string;
|
|
584
|
+
len: number;
|
|
585
|
+
ships: [string, ShipMeta | null][];
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
export interface ShipMeta {
|
|
589
|
+
id: string;
|
|
590
|
+
ship_id: number;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
593
|
export type Engagement = "GreenT" | "Parallel" | "HeadOn" | "RedT";
|
|
594
594
|
|
|
595
595
|
export interface CustomPowerModifiers {
|
|
@@ -751,6 +751,16 @@ export interface AntiAirReport {
|
|
|
751
751
|
anti_air_propellant_barrage_chance: number | null;
|
|
752
752
|
}
|
|
753
753
|
|
|
754
|
+
export interface NodeState {
|
|
755
|
+
map?: number;
|
|
756
|
+
node?: NodeId;
|
|
757
|
+
phase?: number;
|
|
758
|
+
debuff?: boolean;
|
|
759
|
+
disable_historical_mod?: boolean;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
export type NodeId = string;
|
|
763
|
+
|
|
754
764
|
export type GearAttr =
|
|
755
765
|
| "Unknown"
|
|
756
766
|
| "Abyssal"
|
|
@@ -783,8 +793,6 @@ export type GearAttr =
|
|
|
783
793
|
| "SemiNightPlane"
|
|
784
794
|
| "HighAltitudeInterceptor";
|
|
785
795
|
|
|
786
|
-
export type FleetType = "Main" | "Escort" | "RouteSup" | "BossSup";
|
|
787
|
-
|
|
788
796
|
export interface SupportShellingStyle {
|
|
789
797
|
tag: "SupportShellingStyle";
|
|
790
798
|
attack_type: SupportShellingType;
|
|
@@ -848,6 +856,8 @@ export interface DamageReport {
|
|
|
848
856
|
damage_state_density: Histogram<DamageState, number>;
|
|
849
857
|
}
|
|
850
858
|
|
|
859
|
+
export type Histogram<K, V> = Partial<Record<K, V>>;
|
|
860
|
+
|
|
851
861
|
export type Formation = SingleFormation | CombinedFormation;
|
|
852
862
|
|
|
853
863
|
export type CombinedFormation =
|
|
@@ -864,25 +874,7 @@ export type SingleFormation =
|
|
|
864
874
|
| "LineAbreast"
|
|
865
875
|
| "Vanguard";
|
|
866
876
|
|
|
867
|
-
export
|
|
868
|
-
rank3_air_state: AirState;
|
|
869
|
-
rank2_air_state: AirState;
|
|
870
|
-
main_fleet_los_mod: number | null;
|
|
871
|
-
escort_fleet_los_mod: number | null;
|
|
872
|
-
ships: ShipDayCutinAnalysis[];
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
export interface ShipDayCutinAnalysis {
|
|
876
|
-
ship_id: number;
|
|
877
|
-
role: Role;
|
|
878
|
-
index: number;
|
|
879
|
-
rank3: DayCutinReport;
|
|
880
|
-
rank2: DayCutinReport;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
export interface DayCutinReport extends ActionReport<DayPhaseAttackStyle> {
|
|
884
|
-
observation_term: number | null;
|
|
885
|
-
}
|
|
877
|
+
export type FleetType = "Main" | "Escort" | "RouteSup" | "BossSup";
|
|
886
878
|
|
|
887
879
|
export interface AttackAnalysis {
|
|
888
880
|
attacker_is_player: boolean;
|
|
@@ -895,8 +887,6 @@ export interface AttackAnalysis {
|
|
|
895
887
|
support_shelling: ActionReport<SupportShellingStyle>;
|
|
896
888
|
}
|
|
897
889
|
|
|
898
|
-
export type Histogram<K, V> = Partial<Record<K, V>>;
|
|
899
|
-
|
|
900
890
|
export type SpecialEnemyType =
|
|
901
891
|
| "None"
|
|
902
892
|
| "SoftSkinned"
|
|
@@ -909,15 +899,6 @@ export type SpecialEnemyType =
|
|
|
909
899
|
| "BattleshipSummerPrincess"
|
|
910
900
|
| "HeavyCruiserSummerPrincess";
|
|
911
901
|
|
|
912
|
-
export interface NodeState {
|
|
913
|
-
map?: number;
|
|
914
|
-
node?: NodeId;
|
|
915
|
-
phase?: number;
|
|
916
|
-
debuff?: boolean;
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
export type NodeId = string;
|
|
920
|
-
|
|
921
902
|
export interface MasterShip {
|
|
922
903
|
ship_id: number;
|
|
923
904
|
name: string;
|
|
@@ -997,6 +978,26 @@ export interface HitRateParams {
|
|
|
997
978
|
hit_percentage_bonus: number;
|
|
998
979
|
}
|
|
999
980
|
|
|
981
|
+
export interface CompDayCutinAnalysis {
|
|
982
|
+
rank3_air_state: AirState;
|
|
983
|
+
rank2_air_state: AirState;
|
|
984
|
+
main_fleet_los_mod: number | null;
|
|
985
|
+
escort_fleet_los_mod: number | null;
|
|
986
|
+
ships: ShipDayCutinAnalysis[];
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
export interface ShipDayCutinAnalysis {
|
|
990
|
+
ship_id: number;
|
|
991
|
+
role: Role;
|
|
992
|
+
index: number;
|
|
993
|
+
rank3: DayCutinReport;
|
|
994
|
+
rank2: DayCutinReport;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
export interface DayCutinReport extends ActionReport<DayPhaseAttackStyle> {
|
|
998
|
+
observation_term: number | null;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1000
1001
|
export interface ContactAnalysis {
|
|
1001
1002
|
single: DayContactChance[] | null;
|
|
1002
1003
|
combined: DayContactChance[] | null;
|
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -2876,7 +2876,7 @@ export function __wbindgen_json_serialize(arg0, arg1) {
|
|
|
2876
2876
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
2877
2877
|
};
|
|
2878
2878
|
|
|
2879
|
-
export function
|
|
2879
|
+
export function __wbg_createEquipmentBonuses_bfb6061bf74b1305(arg0, arg1) {
|
|
2880
2880
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2881
2881
|
return addHeapObject(ret);
|
|
2882
2882
|
};
|
|
Binary file
|