fleethub-core 1.11.19 → 1.11.20
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 +63 -64
- package/node/fleethub_core.js +6 -6
- package/node/fleethub_core_bg.wasm +0 -0
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +63 -64
- package/pkg/fleethub_core_bg.js +6 -6
- package/pkg/fleethub_core_bg.wasm +0 -0
package/node/fleethub_core.d.ts
CHANGED
|
@@ -406,24 +406,33 @@ export interface EquipStype {
|
|
|
406
406
|
equip_type: number[];
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
-
export interface
|
|
410
|
-
|
|
411
|
-
|
|
409
|
+
export interface AttackReport<T> {
|
|
410
|
+
style: T;
|
|
411
|
+
proc_rate: number | null;
|
|
412
|
+
attack_power: AttackPower | null;
|
|
413
|
+
attack_power_params: AttackPowerParams | null;
|
|
414
|
+
hits: number;
|
|
415
|
+
hit_rate: HitRate | null;
|
|
416
|
+
hit_rate_params: HitRateParams | null;
|
|
417
|
+
damage: DamageReport | null;
|
|
412
418
|
}
|
|
413
419
|
|
|
414
|
-
export interface
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
left?: NodeAttackAnalyzerShipConfig;
|
|
419
|
-
right?: NodeAttackAnalyzerShipConfig;
|
|
420
|
+
export interface CompAntiAirAnalysis {
|
|
421
|
+
fleet_adjusted_anti_air: number;
|
|
422
|
+
ships: AntiAirReport[];
|
|
423
|
+
anti_air_cutin_chance: [number, number][];
|
|
420
424
|
}
|
|
421
425
|
|
|
422
|
-
export interface
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
426
|
+
export interface AntiAirReport {
|
|
427
|
+
ship_id: number;
|
|
428
|
+
role: Role;
|
|
429
|
+
index: number;
|
|
430
|
+
adjusted_anti_air: number | null;
|
|
431
|
+
proportional_shotdown_rate: number | null;
|
|
432
|
+
fixed_shotdown_number: number | null;
|
|
433
|
+
guaranteed: number | null;
|
|
434
|
+
anti_air_cutin_chance: [number, number][];
|
|
435
|
+
anti_air_propellant_barrage_chance: number | null;
|
|
427
436
|
}
|
|
428
437
|
|
|
429
438
|
export interface FormationCombatModifiersDef {
|
|
@@ -508,31 +517,7 @@ export interface ShipPosition {
|
|
|
508
517
|
index?: number;
|
|
509
518
|
}
|
|
510
519
|
|
|
511
|
-
export
|
|
512
|
-
items: SimulatorResultItem[];
|
|
513
|
-
sunk_vec: [number, number, number][];
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
export interface SimulatorResultItem {
|
|
517
|
-
id: string;
|
|
518
|
-
fleet_type: FleetType;
|
|
519
|
-
index: number;
|
|
520
|
-
damage_state_map: Record<DamageState, number>;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
export interface ContactAnalysis {
|
|
524
|
-
single: DayContactChance[] | null;
|
|
525
|
-
combined: DayContactChance[] | null;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
export interface DayContactChance {
|
|
529
|
-
air_state: AirState;
|
|
530
|
-
trigger_rate: number;
|
|
531
|
-
rank3: number;
|
|
532
|
-
rank2: number;
|
|
533
|
-
rank1: number;
|
|
534
|
-
total: number;
|
|
535
|
-
}
|
|
520
|
+
export type Histogram<K extends keyof any, V> = Partial<Record<K, V>>;
|
|
536
521
|
|
|
537
522
|
export type NodeId = string;
|
|
538
523
|
|
|
@@ -549,10 +534,20 @@ export type Side = "Player" | "Enemy";
|
|
|
549
534
|
|
|
550
535
|
export type Align = "Left" | "Right";
|
|
551
536
|
|
|
552
|
-
export type Histogram<K extends keyof any, V> = Partial<Record<K, V>>;
|
|
553
|
-
|
|
554
537
|
export type CompiledEvaler = string;
|
|
555
538
|
|
|
539
|
+
export interface SimulatorResult {
|
|
540
|
+
items: SimulatorResultItem[];
|
|
541
|
+
sunk_vec: [number, number, number][];
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
export interface SimulatorResultItem {
|
|
545
|
+
id: string;
|
|
546
|
+
fleet_type: FleetType;
|
|
547
|
+
index: number;
|
|
548
|
+
damage_state_map: Record<DamageState, number>;
|
|
549
|
+
}
|
|
550
|
+
|
|
556
551
|
export interface HitRate {
|
|
557
552
|
normal: number;
|
|
558
553
|
critical: number;
|
|
@@ -575,33 +570,37 @@ export interface ShipAnalyzerConfig {
|
|
|
575
570
|
right?: AttackAnalyzerShipConfig;
|
|
576
571
|
}
|
|
577
572
|
|
|
578
|
-
export interface
|
|
579
|
-
|
|
580
|
-
proc_rate: number | null;
|
|
581
|
-
attack_power: AttackPower | null;
|
|
582
|
-
attack_power_params: AttackPowerParams | null;
|
|
583
|
-
hits: number;
|
|
584
|
-
hit_rate: HitRate | null;
|
|
585
|
-
hit_rate_params: HitRateParams | null;
|
|
586
|
-
damage: DamageReport | null;
|
|
573
|
+
export interface NodeAttackAnalyzerShipConfig extends NightFleetConditions {
|
|
574
|
+
formation?: Formation;
|
|
587
575
|
}
|
|
588
576
|
|
|
589
|
-
export interface
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
577
|
+
export interface NodeAttackAnalyzerConfig {
|
|
578
|
+
air_state?: AirState;
|
|
579
|
+
engagement?: Engagement;
|
|
580
|
+
node_state?: NodeState;
|
|
581
|
+
left?: NodeAttackAnalyzerShipConfig;
|
|
582
|
+
right?: NodeAttackAnalyzerShipConfig;
|
|
593
583
|
}
|
|
594
584
|
|
|
595
|
-
export interface
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
585
|
+
export interface NodeAttackAnalysis {
|
|
586
|
+
left: AttackAnalysis;
|
|
587
|
+
right: AttackAnalysis;
|
|
588
|
+
shelling_fleet_cutin: FleetCutinReport<ShellingStyle>[];
|
|
589
|
+
night_fleet_cutin: FleetCutinReport<NightAttackStyle>[];
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export interface ContactAnalysis {
|
|
593
|
+
single: DayContactChance[] | null;
|
|
594
|
+
combined: DayContactChance[] | null;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
export interface DayContactChance {
|
|
598
|
+
air_state: AirState;
|
|
599
|
+
trigger_rate: number;
|
|
600
|
+
rank3: number;
|
|
601
|
+
rank2: number;
|
|
602
|
+
rank1: number;
|
|
603
|
+
total: number;
|
|
605
604
|
}
|
|
606
605
|
|
|
607
606
|
export type AirWaveType = "Jet" | "LandBase" | "Carrier";
|
package/node/fleethub_core.js
CHANGED
|
@@ -2961,17 +2961,17 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
2961
2961
|
return addHeapObject(ret);
|
|
2962
2962
|
};
|
|
2963
2963
|
|
|
2964
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2965
|
-
const ret = getObject(arg0) === undefined;
|
|
2966
|
-
return ret;
|
|
2967
|
-
};
|
|
2968
|
-
|
|
2969
2964
|
module.exports.__wbg_ship_new = function(arg0) {
|
|
2970
2965
|
const ret = Ship.__wrap(arg0);
|
|
2971
2966
|
return addHeapObject(ret);
|
|
2972
2967
|
};
|
|
2973
2968
|
|
|
2974
|
-
module.exports.
|
|
2969
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2970
|
+
const ret = getObject(arg0) === undefined;
|
|
2971
|
+
return ret;
|
|
2972
|
+
};
|
|
2973
|
+
|
|
2974
|
+
module.exports.__wbg_createEquipmentBonuses_144c688a77d7a9b3 = function(arg0, arg1) {
|
|
2975
2975
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2976
2976
|
return addHeapObject(ret);
|
|
2977
2977
|
};
|
|
Binary file
|
package/package.json
CHANGED
package/pkg/fleethub_core.d.ts
CHANGED
|
@@ -406,24 +406,33 @@ export interface EquipStype {
|
|
|
406
406
|
equip_type: number[];
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
-
export interface
|
|
410
|
-
|
|
411
|
-
|
|
409
|
+
export interface AttackReport<T> {
|
|
410
|
+
style: T;
|
|
411
|
+
proc_rate: number | null;
|
|
412
|
+
attack_power: AttackPower | null;
|
|
413
|
+
attack_power_params: AttackPowerParams | null;
|
|
414
|
+
hits: number;
|
|
415
|
+
hit_rate: HitRate | null;
|
|
416
|
+
hit_rate_params: HitRateParams | null;
|
|
417
|
+
damage: DamageReport | null;
|
|
412
418
|
}
|
|
413
419
|
|
|
414
|
-
export interface
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
left?: NodeAttackAnalyzerShipConfig;
|
|
419
|
-
right?: NodeAttackAnalyzerShipConfig;
|
|
420
|
+
export interface CompAntiAirAnalysis {
|
|
421
|
+
fleet_adjusted_anti_air: number;
|
|
422
|
+
ships: AntiAirReport[];
|
|
423
|
+
anti_air_cutin_chance: [number, number][];
|
|
420
424
|
}
|
|
421
425
|
|
|
422
|
-
export interface
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
426
|
+
export interface AntiAirReport {
|
|
427
|
+
ship_id: number;
|
|
428
|
+
role: Role;
|
|
429
|
+
index: number;
|
|
430
|
+
adjusted_anti_air: number | null;
|
|
431
|
+
proportional_shotdown_rate: number | null;
|
|
432
|
+
fixed_shotdown_number: number | null;
|
|
433
|
+
guaranteed: number | null;
|
|
434
|
+
anti_air_cutin_chance: [number, number][];
|
|
435
|
+
anti_air_propellant_barrage_chance: number | null;
|
|
427
436
|
}
|
|
428
437
|
|
|
429
438
|
export interface FormationCombatModifiersDef {
|
|
@@ -508,31 +517,7 @@ export interface ShipPosition {
|
|
|
508
517
|
index?: number;
|
|
509
518
|
}
|
|
510
519
|
|
|
511
|
-
export
|
|
512
|
-
items: SimulatorResultItem[];
|
|
513
|
-
sunk_vec: [number, number, number][];
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
export interface SimulatorResultItem {
|
|
517
|
-
id: string;
|
|
518
|
-
fleet_type: FleetType;
|
|
519
|
-
index: number;
|
|
520
|
-
damage_state_map: Record<DamageState, number>;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
export interface ContactAnalysis {
|
|
524
|
-
single: DayContactChance[] | null;
|
|
525
|
-
combined: DayContactChance[] | null;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
export interface DayContactChance {
|
|
529
|
-
air_state: AirState;
|
|
530
|
-
trigger_rate: number;
|
|
531
|
-
rank3: number;
|
|
532
|
-
rank2: number;
|
|
533
|
-
rank1: number;
|
|
534
|
-
total: number;
|
|
535
|
-
}
|
|
520
|
+
export type Histogram<K extends keyof any, V> = Partial<Record<K, V>>;
|
|
536
521
|
|
|
537
522
|
export type NodeId = string;
|
|
538
523
|
|
|
@@ -549,10 +534,20 @@ export type Side = "Player" | "Enemy";
|
|
|
549
534
|
|
|
550
535
|
export type Align = "Left" | "Right";
|
|
551
536
|
|
|
552
|
-
export type Histogram<K extends keyof any, V> = Partial<Record<K, V>>;
|
|
553
|
-
|
|
554
537
|
export type CompiledEvaler = string;
|
|
555
538
|
|
|
539
|
+
export interface SimulatorResult {
|
|
540
|
+
items: SimulatorResultItem[];
|
|
541
|
+
sunk_vec: [number, number, number][];
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
export interface SimulatorResultItem {
|
|
545
|
+
id: string;
|
|
546
|
+
fleet_type: FleetType;
|
|
547
|
+
index: number;
|
|
548
|
+
damage_state_map: Record<DamageState, number>;
|
|
549
|
+
}
|
|
550
|
+
|
|
556
551
|
export interface HitRate {
|
|
557
552
|
normal: number;
|
|
558
553
|
critical: number;
|
|
@@ -575,33 +570,37 @@ export interface ShipAnalyzerConfig {
|
|
|
575
570
|
right?: AttackAnalyzerShipConfig;
|
|
576
571
|
}
|
|
577
572
|
|
|
578
|
-
export interface
|
|
579
|
-
|
|
580
|
-
proc_rate: number | null;
|
|
581
|
-
attack_power: AttackPower | null;
|
|
582
|
-
attack_power_params: AttackPowerParams | null;
|
|
583
|
-
hits: number;
|
|
584
|
-
hit_rate: HitRate | null;
|
|
585
|
-
hit_rate_params: HitRateParams | null;
|
|
586
|
-
damage: DamageReport | null;
|
|
573
|
+
export interface NodeAttackAnalyzerShipConfig extends NightFleetConditions {
|
|
574
|
+
formation?: Formation;
|
|
587
575
|
}
|
|
588
576
|
|
|
589
|
-
export interface
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
577
|
+
export interface NodeAttackAnalyzerConfig {
|
|
578
|
+
air_state?: AirState;
|
|
579
|
+
engagement?: Engagement;
|
|
580
|
+
node_state?: NodeState;
|
|
581
|
+
left?: NodeAttackAnalyzerShipConfig;
|
|
582
|
+
right?: NodeAttackAnalyzerShipConfig;
|
|
593
583
|
}
|
|
594
584
|
|
|
595
|
-
export interface
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
585
|
+
export interface NodeAttackAnalysis {
|
|
586
|
+
left: AttackAnalysis;
|
|
587
|
+
right: AttackAnalysis;
|
|
588
|
+
shelling_fleet_cutin: FleetCutinReport<ShellingStyle>[];
|
|
589
|
+
night_fleet_cutin: FleetCutinReport<NightAttackStyle>[];
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export interface ContactAnalysis {
|
|
593
|
+
single: DayContactChance[] | null;
|
|
594
|
+
combined: DayContactChance[] | null;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
export interface DayContactChance {
|
|
598
|
+
air_state: AirState;
|
|
599
|
+
trigger_rate: number;
|
|
600
|
+
rank3: number;
|
|
601
|
+
rank2: number;
|
|
602
|
+
rank1: number;
|
|
603
|
+
total: number;
|
|
605
604
|
}
|
|
606
605
|
|
|
607
606
|
export type AirWaveType = "Jet" | "LandBase" | "Carrier";
|
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -2959,17 +2959,17 @@ export function __wbindgen_string_new(arg0, arg1) {
|
|
|
2959
2959
|
return addHeapObject(ret);
|
|
2960
2960
|
};
|
|
2961
2961
|
|
|
2962
|
-
export function __wbindgen_is_undefined(arg0) {
|
|
2963
|
-
const ret = getObject(arg0) === undefined;
|
|
2964
|
-
return ret;
|
|
2965
|
-
};
|
|
2966
|
-
|
|
2967
2962
|
export function __wbg_ship_new(arg0) {
|
|
2968
2963
|
const ret = Ship.__wrap(arg0);
|
|
2969
2964
|
return addHeapObject(ret);
|
|
2970
2965
|
};
|
|
2971
2966
|
|
|
2972
|
-
export function
|
|
2967
|
+
export function __wbindgen_is_undefined(arg0) {
|
|
2968
|
+
const ret = getObject(arg0) === undefined;
|
|
2969
|
+
return ret;
|
|
2970
|
+
};
|
|
2971
|
+
|
|
2972
|
+
export function __wbg_createEquipmentBonuses_144c688a77d7a9b3(arg0, arg1) {
|
|
2973
2973
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2974
2974
|
return addHeapObject(ret);
|
|
2975
2975
|
};
|
|
Binary file
|