fleethub-core 1.8.1 → 1.8.2
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 +139 -149
- package/node/fleethub_core.js +3 -3
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +1 -1
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +139 -149
- package/pkg/fleethub_core_bg.js +3 -3
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +1 -1
package/node/fleethub_core.d.ts
CHANGED
|
@@ -8,13 +8,6 @@ export function parse_ship_conditions(value: ShipConditions): ShipConditions;
|
|
|
8
8
|
/**
|
|
9
9
|
*/
|
|
10
10
|
export function set_panic_hook(): void;
|
|
11
|
-
declare namespace Side {
|
|
12
|
-
export type Player = "Player";
|
|
13
|
-
export type Enemy = "Enemy";
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type Side = Side.Player | Side.Enemy;
|
|
17
|
-
|
|
18
11
|
export interface ShipConditions extends ShipPosition {
|
|
19
12
|
formation?: Formation;
|
|
20
13
|
}
|
|
@@ -80,6 +73,12 @@ export interface FormationCombatModifiersDef {
|
|
|
80
73
|
evasion_mod?: number;
|
|
81
74
|
}
|
|
82
75
|
|
|
76
|
+
export interface SupportShellingSimulatorParams {
|
|
77
|
+
attacker_formation?: Formation;
|
|
78
|
+
target_formation?: Formation;
|
|
79
|
+
engagement: Engagement;
|
|
80
|
+
}
|
|
81
|
+
|
|
83
82
|
export interface ShipAnalyzerConfig {
|
|
84
83
|
air_state?: AirState;
|
|
85
84
|
engagement?: Engagement;
|
|
@@ -236,7 +235,7 @@ export interface SimulatorResult {
|
|
|
236
235
|
|
|
237
236
|
export interface SimulatorResultItem {
|
|
238
237
|
id: string;
|
|
239
|
-
|
|
238
|
+
fleet_type: FleetType;
|
|
240
239
|
index: number;
|
|
241
240
|
damage_state_map: Record<DamageState, number>;
|
|
242
241
|
}
|
|
@@ -256,13 +255,6 @@ export type DamageState =
|
|
|
256
255
|
| DamageState.Taiha
|
|
257
256
|
| DamageState.Sunk;
|
|
258
257
|
|
|
259
|
-
export interface ShipPosition {
|
|
260
|
-
org_type?: OrgType;
|
|
261
|
-
role?: Role;
|
|
262
|
-
fleet_len?: number;
|
|
263
|
-
index?: number;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
258
|
declare namespace GearCategory {
|
|
267
259
|
export type Fighter = "Fighter";
|
|
268
260
|
export type Bomber = "Bomber";
|
|
@@ -417,33 +409,53 @@ export type GearType =
|
|
|
417
409
|
| GearType.CbRecon2
|
|
418
410
|
| GearType.SecondaryGun2;
|
|
419
411
|
|
|
420
|
-
declare namespace
|
|
421
|
-
export type
|
|
422
|
-
export type
|
|
423
|
-
export type
|
|
424
|
-
export type
|
|
412
|
+
declare namespace AirStateRank {
|
|
413
|
+
export type Rank0 = "Rank0";
|
|
414
|
+
export type Rank1 = "Rank1";
|
|
415
|
+
export type Rank2 = "Rank2";
|
|
416
|
+
export type Rank3 = "Rank3";
|
|
425
417
|
}
|
|
426
418
|
|
|
427
|
-
export type
|
|
428
|
-
|
|
|
429
|
-
|
|
|
430
|
-
|
|
|
431
|
-
|
|
|
419
|
+
export type AirStateRank =
|
|
420
|
+
| AirStateRank.Rank0
|
|
421
|
+
| AirStateRank.Rank1
|
|
422
|
+
| AirStateRank.Rank2
|
|
423
|
+
| AirStateRank.Rank3;
|
|
432
424
|
|
|
433
|
-
|
|
434
|
-
|
|
425
|
+
declare namespace AirState {
|
|
426
|
+
export type AirSupremacy = "AirSupremacy";
|
|
427
|
+
export type AirSuperiority = "AirSuperiority";
|
|
428
|
+
export type AirParity = "AirParity";
|
|
429
|
+
export type AirDenial = "AirDenial";
|
|
430
|
+
export type AirIncapability = "AirIncapability";
|
|
435
431
|
}
|
|
436
432
|
|
|
437
|
-
export
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
433
|
+
export type AirState =
|
|
434
|
+
| AirState.AirSupremacy
|
|
435
|
+
| AirState.AirSuperiority
|
|
436
|
+
| AirState.AirParity
|
|
437
|
+
| AirState.AirDenial
|
|
438
|
+
| AirState.AirIncapability;
|
|
439
|
+
|
|
440
|
+
declare namespace Side {
|
|
441
|
+
export type Player = "Player";
|
|
442
|
+
export type Enemy = "Enemy";
|
|
442
443
|
}
|
|
443
444
|
|
|
444
|
-
export
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
export type Side = Side.Player | Side.Enemy;
|
|
446
|
+
|
|
447
|
+
declare namespace Role {
|
|
448
|
+
export type Main = "Main";
|
|
449
|
+
export type Escort = "Escort";
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export type Role = Role.Main | Role.Escort;
|
|
453
|
+
|
|
454
|
+
export interface ShipPosition {
|
|
455
|
+
org_type?: OrgType;
|
|
456
|
+
fleet_type?: FleetType;
|
|
457
|
+
fleet_len?: number;
|
|
458
|
+
index?: number;
|
|
447
459
|
}
|
|
448
460
|
|
|
449
461
|
export interface CompMeta {
|
|
@@ -547,34 +559,6 @@ declare namespace AswAttackType {
|
|
|
547
559
|
|
|
548
560
|
export type AswAttackType = AswAttackType.DepthCharge | AswAttackType.Aircraft;
|
|
549
561
|
|
|
550
|
-
declare namespace AirStateRank {
|
|
551
|
-
export type Rank0 = "Rank0";
|
|
552
|
-
export type Rank1 = "Rank1";
|
|
553
|
-
export type Rank2 = "Rank2";
|
|
554
|
-
export type Rank3 = "Rank3";
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
export type AirStateRank =
|
|
558
|
-
| AirStateRank.Rank0
|
|
559
|
-
| AirStateRank.Rank1
|
|
560
|
-
| AirStateRank.Rank2
|
|
561
|
-
| AirStateRank.Rank3;
|
|
562
|
-
|
|
563
|
-
declare namespace AirState {
|
|
564
|
-
export type AirSupremacy = "AirSupremacy";
|
|
565
|
-
export type AirSuperiority = "AirSuperiority";
|
|
566
|
-
export type AirParity = "AirParity";
|
|
567
|
-
export type AirDenial = "AirDenial";
|
|
568
|
-
export type AirIncapability = "AirIncapability";
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
export type AirState =
|
|
572
|
-
| AirState.AirSupremacy
|
|
573
|
-
| AirState.AirSuperiority
|
|
574
|
-
| AirState.AirParity
|
|
575
|
-
| AirState.AirDenial
|
|
576
|
-
| AirState.AirIncapability;
|
|
577
|
-
|
|
578
562
|
export interface MasterData {
|
|
579
563
|
gears: MasterGear[];
|
|
580
564
|
gear_attrs: MasterAttrRule<GearAttr>[];
|
|
@@ -601,6 +585,22 @@ export interface MasterAttrRule<T> {
|
|
|
601
585
|
expr: string;
|
|
602
586
|
}
|
|
603
587
|
|
|
588
|
+
export interface NodeAttackAnalyzerShipConfig extends NightFleetConditions {
|
|
589
|
+
formation?: Formation;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export interface NodeAttackAnalyzerConfig {
|
|
593
|
+
air_state?: AirState;
|
|
594
|
+
engagement?: Engagement;
|
|
595
|
+
left?: NodeAttackAnalyzerShipConfig;
|
|
596
|
+
right?: NodeAttackAnalyzerShipConfig;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
export interface NodeAttackAnalysis {
|
|
600
|
+
left: AttackAnalysis;
|
|
601
|
+
right: AttackAnalysis;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
604
|
export interface AttackAnalyzerConfig {
|
|
605
605
|
air_state?: AirState;
|
|
606
606
|
engagement?: Engagement;
|
|
@@ -614,6 +614,46 @@ export interface AttackAnalyzerShipConfig
|
|
|
614
614
|
fleet_los_mod?: number | null;
|
|
615
615
|
}
|
|
616
616
|
|
|
617
|
+
export interface EBonuses {
|
|
618
|
+
firepower: number;
|
|
619
|
+
torpedo: number;
|
|
620
|
+
anti_air: number;
|
|
621
|
+
armor: number;
|
|
622
|
+
evasion: number;
|
|
623
|
+
asw: number;
|
|
624
|
+
los: number;
|
|
625
|
+
bombing: number;
|
|
626
|
+
accuracy: number;
|
|
627
|
+
range: number;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
export interface ShipInput {
|
|
631
|
+
ship_id: number;
|
|
632
|
+
ctype: number;
|
|
633
|
+
stype: number;
|
|
634
|
+
yomi: string;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
export interface GearInput {
|
|
638
|
+
gear_id: number;
|
|
639
|
+
types: GearTypeIdArray;
|
|
640
|
+
firepower: number;
|
|
641
|
+
torpedo: number;
|
|
642
|
+
anti_air: number;
|
|
643
|
+
armor: number;
|
|
644
|
+
evasion: number;
|
|
645
|
+
asw: number;
|
|
646
|
+
los: number;
|
|
647
|
+
bombing: number;
|
|
648
|
+
accuracy: number;
|
|
649
|
+
range: number;
|
|
650
|
+
radius: number;
|
|
651
|
+
stars: number;
|
|
652
|
+
ace: number;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
export type GearVecInput = GearInput[];
|
|
656
|
+
|
|
617
657
|
declare namespace ShipAttr {
|
|
618
658
|
export type Unknown = "Unknown";
|
|
619
659
|
export type Abyssal = "Abyssal";
|
|
@@ -664,91 +704,6 @@ export type OrgType =
|
|
|
664
704
|
| OrgType.EnemySingle
|
|
665
705
|
| OrgType.EnemyCombined;
|
|
666
706
|
|
|
667
|
-
export interface ShipEnvironment {
|
|
668
|
-
org_type?: OrgType;
|
|
669
|
-
role?: Role;
|
|
670
|
-
index?: number;
|
|
671
|
-
fleet_len?: number;
|
|
672
|
-
formation?: Formation;
|
|
673
|
-
fleet_los_mod?: number | null;
|
|
674
|
-
night_conditions?: NightFleetConditions;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
export interface NightFleetConditions {
|
|
678
|
-
night_contact_rank?: ContactRank | null;
|
|
679
|
-
starshell_index?: number | null;
|
|
680
|
-
searchlight_index?: number | null;
|
|
681
|
-
activates_large_searchlight?: boolean;
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
export interface NightConditions {
|
|
685
|
-
player?: NightFleetConditions;
|
|
686
|
-
enemy?: NightFleetConditions;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
export interface BattleConditions {
|
|
690
|
-
org_type: OrgType;
|
|
691
|
-
role: Role;
|
|
692
|
-
ship_index: number;
|
|
693
|
-
fleet_len: number;
|
|
694
|
-
formation: Formation;
|
|
695
|
-
fleet_los_mod: number | null;
|
|
696
|
-
night_conditions: NightFleetConditions;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
export interface SupportShellingSimulatorParams {
|
|
700
|
-
attacker_formation?: Formation;
|
|
701
|
-
target_formation?: Formation;
|
|
702
|
-
engagement: Engagement;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
export interface EBonuses {
|
|
706
|
-
firepower: number;
|
|
707
|
-
torpedo: number;
|
|
708
|
-
anti_air: number;
|
|
709
|
-
armor: number;
|
|
710
|
-
evasion: number;
|
|
711
|
-
asw: number;
|
|
712
|
-
los: number;
|
|
713
|
-
bombing: number;
|
|
714
|
-
accuracy: number;
|
|
715
|
-
range: number;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
export interface ShipInput {
|
|
719
|
-
ship_id: number;
|
|
720
|
-
ctype: number;
|
|
721
|
-
stype: number;
|
|
722
|
-
yomi: string;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
export interface GearInput {
|
|
726
|
-
gear_id: number;
|
|
727
|
-
types: GearTypeIdArray;
|
|
728
|
-
firepower: number;
|
|
729
|
-
torpedo: number;
|
|
730
|
-
anti_air: number;
|
|
731
|
-
armor: number;
|
|
732
|
-
evasion: number;
|
|
733
|
-
asw: number;
|
|
734
|
-
los: number;
|
|
735
|
-
bombing: number;
|
|
736
|
-
accuracy: number;
|
|
737
|
-
range: number;
|
|
738
|
-
radius: number;
|
|
739
|
-
stars: number;
|
|
740
|
-
ace: number;
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
export type GearVecInput = GearInput[];
|
|
744
|
-
|
|
745
|
-
declare namespace Role {
|
|
746
|
-
export type Main = "Main";
|
|
747
|
-
export type Escort = "Escort";
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
export type Role = Role.Main | Role.Escort;
|
|
751
|
-
|
|
752
707
|
declare namespace GearAttr {
|
|
753
708
|
export type Unknown = "Unknown";
|
|
754
709
|
export type Abyssal = "Abyssal";
|
|
@@ -988,6 +943,19 @@ export type SingleFormation =
|
|
|
988
943
|
| SingleFormation.LineAbreast
|
|
989
944
|
| SingleFormation.Vanguard;
|
|
990
945
|
|
|
946
|
+
declare namespace FleetType {
|
|
947
|
+
export type Main = "Main";
|
|
948
|
+
export type Escort = "Escort";
|
|
949
|
+
export type RouteSup = "RouteSup";
|
|
950
|
+
export type BossSup = "BossSup";
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export type FleetType =
|
|
954
|
+
| FleetType.Main
|
|
955
|
+
| FleetType.Escort
|
|
956
|
+
| FleetType.RouteSup
|
|
957
|
+
| FleetType.BossSup;
|
|
958
|
+
|
|
991
959
|
export interface CustomPowerModifiers {
|
|
992
960
|
precap_mod?: AttackPowerModifier;
|
|
993
961
|
postcap_mod?: AttackPowerModifier;
|
|
@@ -1322,6 +1290,28 @@ export type SpeedGroup =
|
|
|
1322
1290
|
|
|
1323
1291
|
export type SlotSizeVec = (number | null)[];
|
|
1324
1292
|
|
|
1293
|
+
export interface NightFleetConditions {
|
|
1294
|
+
night_contact_rank?: ContactRank | null;
|
|
1295
|
+
starshell_index?: number | null;
|
|
1296
|
+
searchlight_index?: number | null;
|
|
1297
|
+
activates_large_searchlight?: boolean;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
export interface NightConditions {
|
|
1301
|
+
player?: NightFleetConditions;
|
|
1302
|
+
enemy?: NightFleetConditions;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
export interface BattleConditions {
|
|
1306
|
+
org_type: OrgType;
|
|
1307
|
+
role: Role;
|
|
1308
|
+
ship_index: number;
|
|
1309
|
+
fleet_len: number;
|
|
1310
|
+
formation: Formation;
|
|
1311
|
+
fleet_los_mod: number | null;
|
|
1312
|
+
night_conditions: NightFleetConditions;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1325
1315
|
export interface MasterGear {
|
|
1326
1316
|
gear_id: number;
|
|
1327
1317
|
name: string;
|
|
@@ -2028,7 +2018,7 @@ export class Gear {
|
|
|
2028
2018
|
readonly ship_anti_air_resist: number;
|
|
2029
2019
|
/**
|
|
2030
2020
|
*/
|
|
2031
|
-
readonly
|
|
2021
|
+
readonly special_type: number;
|
|
2032
2022
|
/**
|
|
2033
2023
|
*/
|
|
2034
2024
|
readonly speed: number;
|
package/node/fleethub_core.js
CHANGED
|
@@ -1455,8 +1455,8 @@ class Gear {
|
|
|
1455
1455
|
/**
|
|
1456
1456
|
* @returns {number}
|
|
1457
1457
|
*/
|
|
1458
|
-
get
|
|
1459
|
-
const ret = wasm.
|
|
1458
|
+
get special_type() {
|
|
1459
|
+
const ret = wasm.gear_special_type(this.ptr);
|
|
1460
1460
|
return ret;
|
|
1461
1461
|
}
|
|
1462
1462
|
/**
|
|
@@ -3149,7 +3149,7 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
3149
3149
|
return addHeapObject(ret);
|
|
3150
3150
|
};
|
|
3151
3151
|
|
|
3152
|
-
module.exports.
|
|
3152
|
+
module.exports.__wbg_createEquipmentBonuses_4dfd93761a82c393 = function(arg0, arg1) {
|
|
3153
3153
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
3154
3154
|
return addHeapObject(ret);
|
|
3155
3155
|
};
|
|
Binary file
|
|
@@ -161,7 +161,7 @@ export function __wbg_get_gear_ship_anti_air_resist(a: number): number;
|
|
|
161
161
|
export function __wbg_get_gear_fleet_anti_air_resist(a: number): number;
|
|
162
162
|
export function gear_default(): number;
|
|
163
163
|
export function gear_gear_type_id(a: number): number;
|
|
164
|
-
export function
|
|
164
|
+
export function gear_special_type(a: number): number;
|
|
165
165
|
export function gear_icon_id(a: number): number;
|
|
166
166
|
export function gear_has_attr(a: number, b: number): number;
|
|
167
167
|
export function gear_category(a: number): number;
|
package/package.json
CHANGED
package/pkg/fleethub_core.d.ts
CHANGED
|
@@ -8,13 +8,6 @@ export function parse_ship_conditions(value: ShipConditions): ShipConditions;
|
|
|
8
8
|
/**
|
|
9
9
|
*/
|
|
10
10
|
export function set_panic_hook(): void;
|
|
11
|
-
declare namespace Side {
|
|
12
|
-
export type Player = "Player";
|
|
13
|
-
export type Enemy = "Enemy";
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type Side = Side.Player | Side.Enemy;
|
|
17
|
-
|
|
18
11
|
export interface ShipConditions extends ShipPosition {
|
|
19
12
|
formation?: Formation;
|
|
20
13
|
}
|
|
@@ -80,6 +73,12 @@ export interface FormationCombatModifiersDef {
|
|
|
80
73
|
evasion_mod?: number;
|
|
81
74
|
}
|
|
82
75
|
|
|
76
|
+
export interface SupportShellingSimulatorParams {
|
|
77
|
+
attacker_formation?: Formation;
|
|
78
|
+
target_formation?: Formation;
|
|
79
|
+
engagement: Engagement;
|
|
80
|
+
}
|
|
81
|
+
|
|
83
82
|
export interface ShipAnalyzerConfig {
|
|
84
83
|
air_state?: AirState;
|
|
85
84
|
engagement?: Engagement;
|
|
@@ -236,7 +235,7 @@ export interface SimulatorResult {
|
|
|
236
235
|
|
|
237
236
|
export interface SimulatorResultItem {
|
|
238
237
|
id: string;
|
|
239
|
-
|
|
238
|
+
fleet_type: FleetType;
|
|
240
239
|
index: number;
|
|
241
240
|
damage_state_map: Record<DamageState, number>;
|
|
242
241
|
}
|
|
@@ -256,13 +255,6 @@ export type DamageState =
|
|
|
256
255
|
| DamageState.Taiha
|
|
257
256
|
| DamageState.Sunk;
|
|
258
257
|
|
|
259
|
-
export interface ShipPosition {
|
|
260
|
-
org_type?: OrgType;
|
|
261
|
-
role?: Role;
|
|
262
|
-
fleet_len?: number;
|
|
263
|
-
index?: number;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
258
|
declare namespace GearCategory {
|
|
267
259
|
export type Fighter = "Fighter";
|
|
268
260
|
export type Bomber = "Bomber";
|
|
@@ -417,33 +409,53 @@ export type GearType =
|
|
|
417
409
|
| GearType.CbRecon2
|
|
418
410
|
| GearType.SecondaryGun2;
|
|
419
411
|
|
|
420
|
-
declare namespace
|
|
421
|
-
export type
|
|
422
|
-
export type
|
|
423
|
-
export type
|
|
424
|
-
export type
|
|
412
|
+
declare namespace AirStateRank {
|
|
413
|
+
export type Rank0 = "Rank0";
|
|
414
|
+
export type Rank1 = "Rank1";
|
|
415
|
+
export type Rank2 = "Rank2";
|
|
416
|
+
export type Rank3 = "Rank3";
|
|
425
417
|
}
|
|
426
418
|
|
|
427
|
-
export type
|
|
428
|
-
|
|
|
429
|
-
|
|
|
430
|
-
|
|
|
431
|
-
|
|
|
419
|
+
export type AirStateRank =
|
|
420
|
+
| AirStateRank.Rank0
|
|
421
|
+
| AirStateRank.Rank1
|
|
422
|
+
| AirStateRank.Rank2
|
|
423
|
+
| AirStateRank.Rank3;
|
|
432
424
|
|
|
433
|
-
|
|
434
|
-
|
|
425
|
+
declare namespace AirState {
|
|
426
|
+
export type AirSupremacy = "AirSupremacy";
|
|
427
|
+
export type AirSuperiority = "AirSuperiority";
|
|
428
|
+
export type AirParity = "AirParity";
|
|
429
|
+
export type AirDenial = "AirDenial";
|
|
430
|
+
export type AirIncapability = "AirIncapability";
|
|
435
431
|
}
|
|
436
432
|
|
|
437
|
-
export
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
433
|
+
export type AirState =
|
|
434
|
+
| AirState.AirSupremacy
|
|
435
|
+
| AirState.AirSuperiority
|
|
436
|
+
| AirState.AirParity
|
|
437
|
+
| AirState.AirDenial
|
|
438
|
+
| AirState.AirIncapability;
|
|
439
|
+
|
|
440
|
+
declare namespace Side {
|
|
441
|
+
export type Player = "Player";
|
|
442
|
+
export type Enemy = "Enemy";
|
|
442
443
|
}
|
|
443
444
|
|
|
444
|
-
export
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
export type Side = Side.Player | Side.Enemy;
|
|
446
|
+
|
|
447
|
+
declare namespace Role {
|
|
448
|
+
export type Main = "Main";
|
|
449
|
+
export type Escort = "Escort";
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export type Role = Role.Main | Role.Escort;
|
|
453
|
+
|
|
454
|
+
export interface ShipPosition {
|
|
455
|
+
org_type?: OrgType;
|
|
456
|
+
fleet_type?: FleetType;
|
|
457
|
+
fleet_len?: number;
|
|
458
|
+
index?: number;
|
|
447
459
|
}
|
|
448
460
|
|
|
449
461
|
export interface CompMeta {
|
|
@@ -547,34 +559,6 @@ declare namespace AswAttackType {
|
|
|
547
559
|
|
|
548
560
|
export type AswAttackType = AswAttackType.DepthCharge | AswAttackType.Aircraft;
|
|
549
561
|
|
|
550
|
-
declare namespace AirStateRank {
|
|
551
|
-
export type Rank0 = "Rank0";
|
|
552
|
-
export type Rank1 = "Rank1";
|
|
553
|
-
export type Rank2 = "Rank2";
|
|
554
|
-
export type Rank3 = "Rank3";
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
export type AirStateRank =
|
|
558
|
-
| AirStateRank.Rank0
|
|
559
|
-
| AirStateRank.Rank1
|
|
560
|
-
| AirStateRank.Rank2
|
|
561
|
-
| AirStateRank.Rank3;
|
|
562
|
-
|
|
563
|
-
declare namespace AirState {
|
|
564
|
-
export type AirSupremacy = "AirSupremacy";
|
|
565
|
-
export type AirSuperiority = "AirSuperiority";
|
|
566
|
-
export type AirParity = "AirParity";
|
|
567
|
-
export type AirDenial = "AirDenial";
|
|
568
|
-
export type AirIncapability = "AirIncapability";
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
export type AirState =
|
|
572
|
-
| AirState.AirSupremacy
|
|
573
|
-
| AirState.AirSuperiority
|
|
574
|
-
| AirState.AirParity
|
|
575
|
-
| AirState.AirDenial
|
|
576
|
-
| AirState.AirIncapability;
|
|
577
|
-
|
|
578
562
|
export interface MasterData {
|
|
579
563
|
gears: MasterGear[];
|
|
580
564
|
gear_attrs: MasterAttrRule<GearAttr>[];
|
|
@@ -601,6 +585,22 @@ export interface MasterAttrRule<T> {
|
|
|
601
585
|
expr: string;
|
|
602
586
|
}
|
|
603
587
|
|
|
588
|
+
export interface NodeAttackAnalyzerShipConfig extends NightFleetConditions {
|
|
589
|
+
formation?: Formation;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export interface NodeAttackAnalyzerConfig {
|
|
593
|
+
air_state?: AirState;
|
|
594
|
+
engagement?: Engagement;
|
|
595
|
+
left?: NodeAttackAnalyzerShipConfig;
|
|
596
|
+
right?: NodeAttackAnalyzerShipConfig;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
export interface NodeAttackAnalysis {
|
|
600
|
+
left: AttackAnalysis;
|
|
601
|
+
right: AttackAnalysis;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
604
|
export interface AttackAnalyzerConfig {
|
|
605
605
|
air_state?: AirState;
|
|
606
606
|
engagement?: Engagement;
|
|
@@ -614,6 +614,46 @@ export interface AttackAnalyzerShipConfig
|
|
|
614
614
|
fleet_los_mod?: number | null;
|
|
615
615
|
}
|
|
616
616
|
|
|
617
|
+
export interface EBonuses {
|
|
618
|
+
firepower: number;
|
|
619
|
+
torpedo: number;
|
|
620
|
+
anti_air: number;
|
|
621
|
+
armor: number;
|
|
622
|
+
evasion: number;
|
|
623
|
+
asw: number;
|
|
624
|
+
los: number;
|
|
625
|
+
bombing: number;
|
|
626
|
+
accuracy: number;
|
|
627
|
+
range: number;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
export interface ShipInput {
|
|
631
|
+
ship_id: number;
|
|
632
|
+
ctype: number;
|
|
633
|
+
stype: number;
|
|
634
|
+
yomi: string;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
export interface GearInput {
|
|
638
|
+
gear_id: number;
|
|
639
|
+
types: GearTypeIdArray;
|
|
640
|
+
firepower: number;
|
|
641
|
+
torpedo: number;
|
|
642
|
+
anti_air: number;
|
|
643
|
+
armor: number;
|
|
644
|
+
evasion: number;
|
|
645
|
+
asw: number;
|
|
646
|
+
los: number;
|
|
647
|
+
bombing: number;
|
|
648
|
+
accuracy: number;
|
|
649
|
+
range: number;
|
|
650
|
+
radius: number;
|
|
651
|
+
stars: number;
|
|
652
|
+
ace: number;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
export type GearVecInput = GearInput[];
|
|
656
|
+
|
|
617
657
|
declare namespace ShipAttr {
|
|
618
658
|
export type Unknown = "Unknown";
|
|
619
659
|
export type Abyssal = "Abyssal";
|
|
@@ -664,91 +704,6 @@ export type OrgType =
|
|
|
664
704
|
| OrgType.EnemySingle
|
|
665
705
|
| OrgType.EnemyCombined;
|
|
666
706
|
|
|
667
|
-
export interface ShipEnvironment {
|
|
668
|
-
org_type?: OrgType;
|
|
669
|
-
role?: Role;
|
|
670
|
-
index?: number;
|
|
671
|
-
fleet_len?: number;
|
|
672
|
-
formation?: Formation;
|
|
673
|
-
fleet_los_mod?: number | null;
|
|
674
|
-
night_conditions?: NightFleetConditions;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
export interface NightFleetConditions {
|
|
678
|
-
night_contact_rank?: ContactRank | null;
|
|
679
|
-
starshell_index?: number | null;
|
|
680
|
-
searchlight_index?: number | null;
|
|
681
|
-
activates_large_searchlight?: boolean;
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
export interface NightConditions {
|
|
685
|
-
player?: NightFleetConditions;
|
|
686
|
-
enemy?: NightFleetConditions;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
export interface BattleConditions {
|
|
690
|
-
org_type: OrgType;
|
|
691
|
-
role: Role;
|
|
692
|
-
ship_index: number;
|
|
693
|
-
fleet_len: number;
|
|
694
|
-
formation: Formation;
|
|
695
|
-
fleet_los_mod: number | null;
|
|
696
|
-
night_conditions: NightFleetConditions;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
export interface SupportShellingSimulatorParams {
|
|
700
|
-
attacker_formation?: Formation;
|
|
701
|
-
target_formation?: Formation;
|
|
702
|
-
engagement: Engagement;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
export interface EBonuses {
|
|
706
|
-
firepower: number;
|
|
707
|
-
torpedo: number;
|
|
708
|
-
anti_air: number;
|
|
709
|
-
armor: number;
|
|
710
|
-
evasion: number;
|
|
711
|
-
asw: number;
|
|
712
|
-
los: number;
|
|
713
|
-
bombing: number;
|
|
714
|
-
accuracy: number;
|
|
715
|
-
range: number;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
export interface ShipInput {
|
|
719
|
-
ship_id: number;
|
|
720
|
-
ctype: number;
|
|
721
|
-
stype: number;
|
|
722
|
-
yomi: string;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
export interface GearInput {
|
|
726
|
-
gear_id: number;
|
|
727
|
-
types: GearTypeIdArray;
|
|
728
|
-
firepower: number;
|
|
729
|
-
torpedo: number;
|
|
730
|
-
anti_air: number;
|
|
731
|
-
armor: number;
|
|
732
|
-
evasion: number;
|
|
733
|
-
asw: number;
|
|
734
|
-
los: number;
|
|
735
|
-
bombing: number;
|
|
736
|
-
accuracy: number;
|
|
737
|
-
range: number;
|
|
738
|
-
radius: number;
|
|
739
|
-
stars: number;
|
|
740
|
-
ace: number;
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
export type GearVecInput = GearInput[];
|
|
744
|
-
|
|
745
|
-
declare namespace Role {
|
|
746
|
-
export type Main = "Main";
|
|
747
|
-
export type Escort = "Escort";
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
export type Role = Role.Main | Role.Escort;
|
|
751
|
-
|
|
752
707
|
declare namespace GearAttr {
|
|
753
708
|
export type Unknown = "Unknown";
|
|
754
709
|
export type Abyssal = "Abyssal";
|
|
@@ -988,6 +943,19 @@ export type SingleFormation =
|
|
|
988
943
|
| SingleFormation.LineAbreast
|
|
989
944
|
| SingleFormation.Vanguard;
|
|
990
945
|
|
|
946
|
+
declare namespace FleetType {
|
|
947
|
+
export type Main = "Main";
|
|
948
|
+
export type Escort = "Escort";
|
|
949
|
+
export type RouteSup = "RouteSup";
|
|
950
|
+
export type BossSup = "BossSup";
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export type FleetType =
|
|
954
|
+
| FleetType.Main
|
|
955
|
+
| FleetType.Escort
|
|
956
|
+
| FleetType.RouteSup
|
|
957
|
+
| FleetType.BossSup;
|
|
958
|
+
|
|
991
959
|
export interface CustomPowerModifiers {
|
|
992
960
|
precap_mod?: AttackPowerModifier;
|
|
993
961
|
postcap_mod?: AttackPowerModifier;
|
|
@@ -1322,6 +1290,28 @@ export type SpeedGroup =
|
|
|
1322
1290
|
|
|
1323
1291
|
export type SlotSizeVec = (number | null)[];
|
|
1324
1292
|
|
|
1293
|
+
export interface NightFleetConditions {
|
|
1294
|
+
night_contact_rank?: ContactRank | null;
|
|
1295
|
+
starshell_index?: number | null;
|
|
1296
|
+
searchlight_index?: number | null;
|
|
1297
|
+
activates_large_searchlight?: boolean;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
export interface NightConditions {
|
|
1301
|
+
player?: NightFleetConditions;
|
|
1302
|
+
enemy?: NightFleetConditions;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
export interface BattleConditions {
|
|
1306
|
+
org_type: OrgType;
|
|
1307
|
+
role: Role;
|
|
1308
|
+
ship_index: number;
|
|
1309
|
+
fleet_len: number;
|
|
1310
|
+
formation: Formation;
|
|
1311
|
+
fleet_los_mod: number | null;
|
|
1312
|
+
night_conditions: NightFleetConditions;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1325
1315
|
export interface MasterGear {
|
|
1326
1316
|
gear_id: number;
|
|
1327
1317
|
name: string;
|
|
@@ -2028,7 +2018,7 @@ export class Gear {
|
|
|
2028
2018
|
readonly ship_anti_air_resist: number;
|
|
2029
2019
|
/**
|
|
2030
2020
|
*/
|
|
2031
|
-
readonly
|
|
2021
|
+
readonly special_type: number;
|
|
2032
2022
|
/**
|
|
2033
2023
|
*/
|
|
2034
2024
|
readonly speed: number;
|
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -1451,8 +1451,8 @@ export class Gear {
|
|
|
1451
1451
|
/**
|
|
1452
1452
|
* @returns {number}
|
|
1453
1453
|
*/
|
|
1454
|
-
get
|
|
1455
|
-
const ret = wasm.
|
|
1454
|
+
get special_type() {
|
|
1455
|
+
const ret = wasm.gear_special_type(this.ptr);
|
|
1456
1456
|
return ret;
|
|
1457
1457
|
}
|
|
1458
1458
|
/**
|
|
@@ -3141,7 +3141,7 @@ export function __wbindgen_string_new(arg0, arg1) {
|
|
|
3141
3141
|
return addHeapObject(ret);
|
|
3142
3142
|
};
|
|
3143
3143
|
|
|
3144
|
-
export function
|
|
3144
|
+
export function __wbg_createEquipmentBonuses_4dfd93761a82c393(arg0, arg1) {
|
|
3145
3145
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
3146
3146
|
return addHeapObject(ret);
|
|
3147
3147
|
};
|
|
Binary file
|
|
@@ -161,7 +161,7 @@ export function __wbg_get_gear_ship_anti_air_resist(a: number): number;
|
|
|
161
161
|
export function __wbg_get_gear_fleet_anti_air_resist(a: number): number;
|
|
162
162
|
export function gear_default(): number;
|
|
163
163
|
export function gear_gear_type_id(a: number): number;
|
|
164
|
-
export function
|
|
164
|
+
export function gear_special_type(a: number): number;
|
|
165
165
|
export function gear_icon_id(a: number): number;
|
|
166
166
|
export function gear_has_attr(a: number, b: number): number;
|
|
167
167
|
export function gear_category(a: number): number;
|