fleethub-core 1.11.3 → 1.11.5
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 +73 -73
- package/node/fleethub_core.js +471 -419
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +13 -13
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +73 -73
- package/pkg/fleethub_core_bg.js +471 -419
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +13 -13
package/node/fleethub_core.d.ts
CHANGED
|
@@ -128,44 +128,6 @@ export type GearAttr =
|
|
|
128
128
|
| "SemiNightPlane"
|
|
129
129
|
| "HighAltitudeInterceptor";
|
|
130
130
|
|
|
131
|
-
export interface OrgState {
|
|
132
|
-
id?: string;
|
|
133
|
-
f1?: FleetState;
|
|
134
|
-
f2?: FleetState;
|
|
135
|
-
f3?: FleetState;
|
|
136
|
-
f4?: FleetState;
|
|
137
|
-
a1?: AirSquadronState;
|
|
138
|
-
a2?: AirSquadronState;
|
|
139
|
-
a3?: AirSquadronState;
|
|
140
|
-
hq_level?: number;
|
|
141
|
-
org_type?: OrgType;
|
|
142
|
-
sortie?: FleetKey;
|
|
143
|
-
route_sup?: FleetKey;
|
|
144
|
-
boss_sup?: FleetKey;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export type FleetKey = "f1" | "f2" | "f3" | "f4";
|
|
148
|
-
|
|
149
|
-
export interface CompDayCutinAnalysis {
|
|
150
|
-
rank3_air_state: AirState;
|
|
151
|
-
rank2_air_state: AirState;
|
|
152
|
-
main_fleet_los_mod: number | null;
|
|
153
|
-
escort_fleet_los_mod: number | null;
|
|
154
|
-
ships: ShipDayCutinAnalysis[];
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export interface ShipDayCutinAnalysis {
|
|
158
|
-
ship_id: number;
|
|
159
|
-
role: Role;
|
|
160
|
-
index: number;
|
|
161
|
-
rank3: DayCutinReport;
|
|
162
|
-
rank2: DayCutinReport;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export interface DayCutinReport extends ActionReport<DayPhaseAttackStyle> {
|
|
166
|
-
observation_term: number | null;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
131
|
export type GearType =
|
|
170
132
|
| "Unknown"
|
|
171
133
|
| "SmallMainGun"
|
|
@@ -242,6 +204,44 @@ export type GearCategory =
|
|
|
242
204
|
| "LandBased"
|
|
243
205
|
| "Misc";
|
|
244
206
|
|
|
207
|
+
export interface OrgState {
|
|
208
|
+
id?: string;
|
|
209
|
+
f1?: FleetState;
|
|
210
|
+
f2?: FleetState;
|
|
211
|
+
f3?: FleetState;
|
|
212
|
+
f4?: FleetState;
|
|
213
|
+
a1?: AirSquadronState;
|
|
214
|
+
a2?: AirSquadronState;
|
|
215
|
+
a3?: AirSquadronState;
|
|
216
|
+
hq_level?: number;
|
|
217
|
+
org_type?: OrgType;
|
|
218
|
+
sortie?: FleetKey;
|
|
219
|
+
route_sup?: FleetKey;
|
|
220
|
+
boss_sup?: FleetKey;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export type FleetKey = "f1" | "f2" | "f3" | "f4";
|
|
224
|
+
|
|
225
|
+
export interface CompDayCutinAnalysis {
|
|
226
|
+
rank3_air_state: AirState;
|
|
227
|
+
rank2_air_state: AirState;
|
|
228
|
+
main_fleet_los_mod: number | null;
|
|
229
|
+
escort_fleet_los_mod: number | null;
|
|
230
|
+
ships: ShipDayCutinAnalysis[];
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export interface ShipDayCutinAnalysis {
|
|
234
|
+
ship_id: number;
|
|
235
|
+
role: Role;
|
|
236
|
+
index: number;
|
|
237
|
+
rank3: DayCutinReport;
|
|
238
|
+
rank2: DayCutinReport;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export interface DayCutinReport extends ActionReport<DayPhaseAttackStyle> {
|
|
242
|
+
observation_term: number | null;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
245
|
export interface ShipMeta {
|
|
246
246
|
id: string;
|
|
247
247
|
ship_id: number;
|
|
@@ -275,6 +275,8 @@ export type OrgType =
|
|
|
275
275
|
| "EnemySingle"
|
|
276
276
|
| "EnemyCombined";
|
|
277
277
|
|
|
278
|
+
export type SlotSizeVec = (number | null)[];
|
|
279
|
+
|
|
278
280
|
export type SpecialEnemyType =
|
|
279
281
|
| "None"
|
|
280
282
|
| "SoftSkinned"
|
|
@@ -353,8 +355,6 @@ export type CombinedFormation =
|
|
|
353
355
|
|
|
354
356
|
export type Formation = SingleFormation | CombinedFormation;
|
|
355
357
|
|
|
356
|
-
export type SlotSizeVec = (number | null)[];
|
|
357
|
-
|
|
358
358
|
export type GearVecInput = GearInput[];
|
|
359
359
|
|
|
360
360
|
export interface GearInput {
|
|
@@ -518,8 +518,6 @@ export type DayCutinLike = DayCutin | FleetCutin;
|
|
|
518
518
|
|
|
519
519
|
export type NightCutinLike = NightCutin | FleetCutin;
|
|
520
520
|
|
|
521
|
-
export type SpeedGroup = "A" | "B1" | "B2" | "C";
|
|
522
|
-
|
|
523
521
|
export interface MoveShipPayload {
|
|
524
522
|
current: [string, string, ShipKey];
|
|
525
523
|
target: [string | null, string, ShipKey];
|
|
@@ -656,6 +654,8 @@ export interface ShipState extends GearVecState, SlotSizeVecState {
|
|
|
656
654
|
|
|
657
655
|
export type ShipKey = "s1" | "s2" | "s3" | "s4" | "s5" | "s6" | "s7";
|
|
658
656
|
|
|
657
|
+
export type SpeedGroup = "A" | "B1" | "B2" | "C";
|
|
658
|
+
|
|
659
659
|
export type Histogram<K extends keyof any, V> = Partial<Record<K, V>>;
|
|
660
660
|
|
|
661
661
|
export interface HitRate {
|
|
@@ -782,6 +782,19 @@ export type ShipType =
|
|
|
782
782
|
|
|
783
783
|
export type GearTypeIdArray = [number, number, number, number, number];
|
|
784
784
|
|
|
785
|
+
export interface SupportShellingSimulatorParams {
|
|
786
|
+
attacker_formation?: Formation;
|
|
787
|
+
target_formation?: Formation;
|
|
788
|
+
engagement: Engagement;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
export interface ShipAnalyzerConfig {
|
|
792
|
+
air_state?: AirState;
|
|
793
|
+
engagement?: Engagement;
|
|
794
|
+
left?: AttackAnalyzerShipConfig;
|
|
795
|
+
right?: AttackAnalyzerShipConfig;
|
|
796
|
+
}
|
|
797
|
+
|
|
785
798
|
export interface ActionReport<T> {
|
|
786
799
|
data: Record<string, AttackReport<T>>;
|
|
787
800
|
damage_state_density: Histogram<DamageState, number> | null;
|
|
@@ -822,15 +835,13 @@ export type NightPhaseAttackType =
|
|
|
822
835
|
|
|
823
836
|
export type TorpedoAttackType = null;
|
|
824
837
|
|
|
838
|
+
export type Role = "Main" | "Escort";
|
|
839
|
+
|
|
825
840
|
export type Side = "Player" | "Enemy";
|
|
826
841
|
|
|
827
842
|
export type Align = "Left" | "Right";
|
|
828
843
|
|
|
829
|
-
export
|
|
830
|
-
attacker_formation?: Formation;
|
|
831
|
-
target_formation?: Formation;
|
|
832
|
-
engagement: Engagement;
|
|
833
|
-
}
|
|
844
|
+
export type CompiledEvaler = string;
|
|
834
845
|
|
|
835
846
|
export interface SimulatorResult {
|
|
836
847
|
items: SimulatorResultItem[];
|
|
@@ -865,11 +876,12 @@ export interface MasterAttrRule<T> {
|
|
|
865
876
|
expr: CompiledEvaler;
|
|
866
877
|
}
|
|
867
878
|
|
|
868
|
-
export interface
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
879
|
+
export interface MasterBattleDefinitions {
|
|
880
|
+
formation: NestedFormationDef[];
|
|
881
|
+
anti_air_cutin: AntiAirCutinDef[];
|
|
882
|
+
day_cutin: DayCutinDef[];
|
|
883
|
+
night_cutin: NightCutinDef[];
|
|
884
|
+
historical_bonuses?: HistoricalBonusDef[];
|
|
873
885
|
}
|
|
874
886
|
|
|
875
887
|
export interface NightContactChance {
|
|
@@ -895,9 +907,16 @@ export interface NightCutinActionReport
|
|
|
895
907
|
cutin_term: number | null;
|
|
896
908
|
}
|
|
897
909
|
|
|
898
|
-
export type
|
|
910
|
+
export type AirState =
|
|
911
|
+
| "AirSupremacy"
|
|
912
|
+
| "AirSuperiority"
|
|
913
|
+
| "AirParity"
|
|
914
|
+
| "AirDenial"
|
|
915
|
+
| "AirIncapability";
|
|
899
916
|
|
|
900
|
-
export type
|
|
917
|
+
export type AirStateRank = "Rank0" | "Rank1" | "Rank2" | "Rank3";
|
|
918
|
+
|
|
919
|
+
export type DamageState = "Normal" | "Shouha" | "Chuuha" | "Taiha" | "Sunk";
|
|
901
920
|
|
|
902
921
|
export type ShipAttr =
|
|
903
922
|
| "Unknown"
|
|
@@ -924,8 +943,6 @@ export interface ShipConditions extends ShipPosition {
|
|
|
924
943
|
amagiri_index?: number | null;
|
|
925
944
|
}
|
|
926
945
|
|
|
927
|
-
export type CompiledEvaler = string;
|
|
928
|
-
|
|
929
946
|
export type FhResult<T> = { Ok: T } | { Err: string };
|
|
930
947
|
|
|
931
948
|
export interface MasterIBonuses {
|
|
@@ -953,14 +970,6 @@ export interface MasterIBonusRule {
|
|
|
953
970
|
formula: CompiledEvaler;
|
|
954
971
|
}
|
|
955
972
|
|
|
956
|
-
export interface MasterBattleDefinitions {
|
|
957
|
-
formation: NestedFormationDef[];
|
|
958
|
-
anti_air_cutin: AntiAirCutinDef[];
|
|
959
|
-
day_cutin: DayCutinDef[];
|
|
960
|
-
night_cutin: NightCutinDef[];
|
|
961
|
-
historical_bonuses?: HistoricalBonusDef[];
|
|
962
|
-
}
|
|
963
|
-
|
|
964
973
|
export interface CompAnalyzerConfig {
|
|
965
974
|
engagement: Engagement;
|
|
966
975
|
formation: Formation;
|
|
@@ -988,15 +997,6 @@ export interface CompAnalysis {
|
|
|
988
997
|
anti_air: CompAntiAirAnalysis;
|
|
989
998
|
}
|
|
990
999
|
|
|
991
|
-
export type AirState =
|
|
992
|
-
| "AirSupremacy"
|
|
993
|
-
| "AirSuperiority"
|
|
994
|
-
| "AirParity"
|
|
995
|
-
| "AirDenial"
|
|
996
|
-
| "AirIncapability";
|
|
997
|
-
|
|
998
|
-
export type AirStateRank = "Rank0" | "Rank1" | "Rank2" | "Rank3";
|
|
999
|
-
|
|
1000
1000
|
export interface AttackPowerModifier {
|
|
1001
1001
|
a?: number;
|
|
1002
1002
|
b?: number;
|