fleethub-core 1.7.5 → 1.7.6

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.
@@ -3,58 +3,122 @@
3
3
  /**
4
4
  */
5
5
  export function set_panic_hook(): void;
6
+ declare namespace ShipType {
7
+ export type Unknown = "Unknown";
8
+ export type DE = "DE";
9
+ export type DD = "DD";
10
+ export type CL = "CL";
11
+ export type CLT = "CLT";
12
+ export type CA = "CA";
13
+ export type CAV = "CAV";
14
+ export type CVL = "CVL";
15
+ export type FBB = "FBB";
16
+ export type BB = "BB";
17
+ export type BBV = "BBV";
18
+ export type CV = "CV";
19
+ export type XBB = "XBB";
20
+ export type SS = "SS";
21
+ export type SSV = "SSV";
22
+ export type AP = "AP";
23
+ export type AV = "AV";
24
+ export type LHA = "LHA";
25
+ export type CVB = "CVB";
26
+ export type AR = "AR";
27
+ export type AS = "AS";
28
+ export type CT = "CT";
29
+ export type AO = "AO";
30
+ }
31
+
6
32
  export type ShipType =
7
- | "Unknown"
8
- | "DE"
9
- | "DD"
10
- | "CL"
11
- | "CLT"
12
- | "CA"
13
- | "CAV"
14
- | "CVL"
15
- | "FBB"
16
- | "BB"
17
- | "BBV"
18
- | "CV"
19
- | "XBB"
20
- | "SS"
21
- | "SSV"
22
- | "AP"
23
- | "AV"
24
- | "LHA"
25
- | "CVB"
26
- | "AR"
27
- | "AS"
28
- | "CT"
29
- | "AO";
33
+ | ShipType.Unknown
34
+ | ShipType.DE
35
+ | ShipType.DD
36
+ | ShipType.CL
37
+ | ShipType.CLT
38
+ | ShipType.CA
39
+ | ShipType.CAV
40
+ | ShipType.CVL
41
+ | ShipType.FBB
42
+ | ShipType.BB
43
+ | ShipType.BBV
44
+ | ShipType.CV
45
+ | ShipType.XBB
46
+ | ShipType.SS
47
+ | ShipType.SSV
48
+ | ShipType.AP
49
+ | ShipType.AV
50
+ | ShipType.LHA
51
+ | ShipType.CVB
52
+ | ShipType.AR
53
+ | ShipType.AS
54
+ | ShipType.CT
55
+ | ShipType.AO;
56
+
57
+ declare namespace ShipCategory {
58
+ export type Battleship = "Battleship";
59
+ export type AircraftCarrier = "AircraftCarrier";
60
+ export type HeavyCruiser = "HeavyCruiser";
61
+ export type LightCruiser = "LightCruiser";
62
+ export type Destroyer = "Destroyer";
63
+ export type CoastalDefenseShip = "CoastalDefenseShip";
64
+ export type Submarine = "Submarine";
65
+ export type AuxiliaryShip = "AuxiliaryShip";
66
+ }
30
67
 
31
68
  export type ShipCategory =
32
- | "Battleship"
33
- | "AircraftCarrier"
34
- | "HeavyCruiser"
35
- | "LightCruiser"
36
- | "Destroyer"
37
- | "CoastalDefenseShip"
38
- | "Submarine"
39
- | "AuxiliaryShip";
69
+ | ShipCategory.Battleship
70
+ | ShipCategory.AircraftCarrier
71
+ | ShipCategory.HeavyCruiser
72
+ | ShipCategory.LightCruiser
73
+ | ShipCategory.Destroyer
74
+ | ShipCategory.CoastalDefenseShip
75
+ | ShipCategory.Submarine
76
+ | ShipCategory.AuxiliaryShip;
77
+
78
+ type __ShellingSpecialAttackDayCutin = DayCutin;
79
+ type __ShellingSpecialAttackFleetCutin = FleetCutin;
80
+ declare namespace ShellingSpecialAttack {
81
+ export type DayCutin = { DayCutin: __ShellingSpecialAttackDayCutin };
82
+ export type FleetCutin = { FleetCutin: __ShellingSpecialAttackFleetCutin };
83
+ }
40
84
 
41
85
  export type ShellingSpecialAttack =
42
- | { DayCutin: DayCutin }
43
- | { FleetCutin: FleetCutin };
86
+ | ShellingSpecialAttack.DayCutin
87
+ | ShellingSpecialAttack.FleetCutin;
88
+
89
+ declare namespace DayCutin {
90
+ export type MainMain = "MainMain";
91
+ export type MainAp = "MainAp";
92
+ export type MainRadar = "MainRadar";
93
+ export type MainSec = "MainSec";
94
+ export type DoubleAttack = "DoubleAttack";
95
+ export type FBA = "FBA";
96
+ export type BBA = "BBA";
97
+ export type BA = "BA";
98
+ export type Zuiun = "Zuiun";
99
+ export type AirSea = "AirSea";
100
+ }
44
101
 
45
102
  export type DayCutin =
46
- | "MainMain"
47
- | "MainAp"
48
- | "MainRadar"
49
- | "MainSec"
50
- | "DoubleAttack"
51
- | "FBA"
52
- | "BBA"
53
- | "BA"
54
- | "Zuiun"
55
- | "AirSea";
56
-
57
- export type ShellingAttackType = "Normal" | "Carrier";
103
+ | DayCutin.MainMain
104
+ | DayCutin.MainAp
105
+ | DayCutin.MainRadar
106
+ | DayCutin.MainSec
107
+ | DayCutin.DoubleAttack
108
+ | DayCutin.FBA
109
+ | DayCutin.BBA
110
+ | DayCutin.BA
111
+ | DayCutin.Zuiun
112
+ | DayCutin.AirSea;
113
+
114
+ declare namespace ShellingAttackType {
115
+ export type Normal = "Normal";
116
+ export type Carrier = "Carrier";
117
+ }
118
+
119
+ export type ShellingAttackType =
120
+ | ShellingAttackType.Normal
121
+ | ShellingAttackType.Carrier;
58
122
 
59
123
  export interface FleetCutinAnalysis {
60
124
  shelling: FleetCutinInfo[];
@@ -75,46 +139,130 @@ export interface FleetCutinInfoItem {
75
139
  stats: AttackStats;
76
140
  }
77
141
 
78
- export type SpecialEnemyType =
79
- | "None"
80
- | "SoftSkinned"
81
- | "Pillbox"
82
- | "IsolatedIsland"
83
- | "SupplyDepot"
84
- | "HarbourSummerPrincess"
85
- | "PtImp"
86
- | "BattleshipSummerPrincess"
87
- | "HeavyCruiserSummerPrincess";
88
-
89
- export type MoraleState = "Sparkle" | "Normal" | "Orange" | "Red";
90
-
91
- export type DamageState = "Normal" | "Shouha" | "Chuuha" | "Taiha" | "Sunk";
92
-
93
- export type SpeedGroup = "A" | "B1" | "B2" | "C";
142
+ declare namespace SpecialEnemyType {
143
+ export type None = "None";
144
+ export type SoftSkinned = "SoftSkinned";
145
+ export type Pillbox = "Pillbox";
146
+ export type IsolatedIsland = "IsolatedIsland";
147
+ export type SupplyDepot = "SupplyDepot";
148
+ export type HarbourSummerPrincess = "HarbourSummerPrincess";
149
+ export type PtImp = "PtImp";
150
+ export type BattleshipSummerPrincess = "BattleshipSummerPrincess";
151
+ export type HeavyCruiserSummerPrincess = "HeavyCruiserSummerPrincess";
152
+ }
94
153
 
95
- export type AswAttackType = "DepthCharge" | "Aircraft";
154
+ export type SpecialEnemyType =
155
+ | SpecialEnemyType.None
156
+ | SpecialEnemyType.SoftSkinned
157
+ | SpecialEnemyType.Pillbox
158
+ | SpecialEnemyType.IsolatedIsland
159
+ | SpecialEnemyType.SupplyDepot
160
+ | SpecialEnemyType.HarbourSummerPrincess
161
+ | SpecialEnemyType.PtImp
162
+ | SpecialEnemyType.BattleshipSummerPrincess
163
+ | SpecialEnemyType.HeavyCruiserSummerPrincess;
164
+
165
+ declare namespace MoraleState {
166
+ export type Sparkle = "Sparkle";
167
+ export type Normal = "Normal";
168
+ export type Orange = "Orange";
169
+ export type Red = "Red";
170
+ }
171
+
172
+ export type MoraleState =
173
+ | MoraleState.Sparkle
174
+ | MoraleState.Normal
175
+ | MoraleState.Orange
176
+ | MoraleState.Red;
177
+
178
+ declare namespace DamageState {
179
+ export type Normal = "Normal";
180
+ export type Shouha = "Shouha";
181
+ export type Chuuha = "Chuuha";
182
+ export type Taiha = "Taiha";
183
+ export type Sunk = "Sunk";
184
+ }
185
+
186
+ export type DamageState =
187
+ | DamageState.Normal
188
+ | DamageState.Shouha
189
+ | DamageState.Chuuha
190
+ | DamageState.Taiha
191
+ | DamageState.Sunk;
192
+
193
+ declare namespace SpeedGroup {
194
+ export type A = "A";
195
+ export type B1 = "B1";
196
+ export type B2 = "B2";
197
+ export type C = "C";
198
+ }
199
+
200
+ export type SpeedGroup =
201
+ | SpeedGroup.A
202
+ | SpeedGroup.B1
203
+ | SpeedGroup.B2
204
+ | SpeedGroup.C;
205
+
206
+ declare namespace AswAttackType {
207
+ export type DepthCharge = "DepthCharge";
208
+ export type Aircraft = "Aircraft";
209
+ }
210
+
211
+ export type AswAttackType = AswAttackType.DepthCharge | AswAttackType.Aircraft;
212
+
213
+ declare namespace OrgType {
214
+ export type Single = "Single";
215
+ export type CarrierTaskForce = "CarrierTaskForce";
216
+ export type SurfaceTaskForce = "SurfaceTaskForce";
217
+ export type TransportEscort = "TransportEscort";
218
+ export type EnemySingle = "EnemySingle";
219
+ export type EnemyCombined = "EnemyCombined";
220
+ }
96
221
 
97
222
  export type OrgType =
98
- | "Single"
99
- | "CarrierTaskForce"
100
- | "SurfaceTaskForce"
101
- | "TransportEscort"
102
- | "EnemySingle"
103
- | "EnemyCombined";
223
+ | OrgType.Single
224
+ | OrgType.CarrierTaskForce
225
+ | OrgType.SurfaceTaskForce
226
+ | OrgType.TransportEscort
227
+ | OrgType.EnemySingle
228
+ | OrgType.EnemyCombined;
229
+
230
+ declare namespace FleetCutin {
231
+ export type NelsonTouch = "NelsonTouch";
232
+ export type NagatoCutin = "NagatoCutin";
233
+ export type ColoradoCutin = "ColoradoCutin";
234
+ export type KongouCutin = "KongouCutin";
235
+ export type Yamato2ShipCutin = "Yamato2ShipCutin";
236
+ export type Yamato3ShipCutin = "Yamato3ShipCutin";
237
+ }
104
238
 
105
239
  export type FleetCutin =
106
- | "NelsonTouch"
107
- | "NagatoCutin"
108
- | "ColoradoCutin"
109
- | "KongouCutin"
110
- | "Yamato2ShipCutin"
111
- | "Yamato3ShipCutin";
240
+ | FleetCutin.NelsonTouch
241
+ | FleetCutin.NagatoCutin
242
+ | FleetCutin.ColoradoCutin
243
+ | FleetCutin.KongouCutin
244
+ | FleetCutin.Yamato2ShipCutin
245
+ | FleetCutin.Yamato3ShipCutin;
246
+
247
+ declare namespace AirWaveType {
248
+ export type Jet = "Jet";
249
+ export type LandBase = "LandBase";
250
+ export type Carrier = "Carrier";
251
+ }
112
252
 
113
- export type AirWaveType = "Jet" | "LandBase" | "Carrier";
253
+ export type AirWaveType =
254
+ | AirWaveType.Jet
255
+ | AirWaveType.LandBase
256
+ | AirWaveType.Carrier;
114
257
 
115
258
  export type NumMap<K, V> = Partial<Record<K, V>>;
116
259
 
117
- export type Role = "Main" | "Escort";
260
+ declare namespace Role {
261
+ export type Main = "Main";
262
+ export type Escort = "Escort";
263
+ }
264
+
265
+ export type Role = Role.Main | Role.Escort;
118
266
 
119
267
  export interface CompMeta {
120
268
  fleets: Record<FleetType, FleetMeta>;
@@ -195,82 +343,170 @@ export interface DayCutinRateInfo {
195
343
  total_cutin_rate: number | null;
196
344
  }
197
345
 
346
+ declare namespace GearCategory {
347
+ export type Fighter = "Fighter";
348
+ export type Bomber = "Bomber";
349
+ export type Recon = "Recon";
350
+ export type MainGun = "MainGun";
351
+ export type Secondary = "Secondary";
352
+ export type Torpedo = "Torpedo";
353
+ export type AntiSub = "AntiSub";
354
+ export type Radar = "Radar";
355
+ export type Landing = "Landing";
356
+ export type Ration = "Ration";
357
+ export type LandBased = "LandBased";
358
+ export type Misc = "Misc";
359
+ }
360
+
198
361
  export type GearCategory =
199
- | "Fighter"
200
- | "Bomber"
201
- | "Recon"
202
- | "MainGun"
203
- | "Secondary"
204
- | "Torpedo"
205
- | "AntiSub"
206
- | "Radar"
207
- | "Landing"
208
- | "Ration"
209
- | "LandBased"
210
- | "Misc";
362
+ | GearCategory.Fighter
363
+ | GearCategory.Bomber
364
+ | GearCategory.Recon
365
+ | GearCategory.MainGun
366
+ | GearCategory.Secondary
367
+ | GearCategory.Torpedo
368
+ | GearCategory.AntiSub
369
+ | GearCategory.Radar
370
+ | GearCategory.Landing
371
+ | GearCategory.Ration
372
+ | GearCategory.LandBased
373
+ | GearCategory.Misc;
374
+
375
+ declare namespace GearType {
376
+ export type Unknown = "Unknown";
377
+ export type SmallMainGun = "SmallMainGun";
378
+ export type MediumMainGun = "MediumMainGun";
379
+ export type LargeMainGun = "LargeMainGun";
380
+ export type SecondaryGun = "SecondaryGun";
381
+ export type Torpedo = "Torpedo";
382
+ export type CbFighter = "CbFighter";
383
+ export type CbDiveBomber = "CbDiveBomber";
384
+ export type CbTorpedoBomber = "CbTorpedoBomber";
385
+ export type CbRecon = "CbRecon";
386
+ export type ReconSeaplane = "ReconSeaplane";
387
+ export type SeaplaneBomber = "SeaplaneBomber";
388
+ export type SmallRadar = "SmallRadar";
389
+ export type LargeRadar = "LargeRadar";
390
+ export type Sonar = "Sonar";
391
+ export type DepthCharge = "DepthCharge";
392
+ export type ExtraArmor = "ExtraArmor";
393
+ export type Engine = "Engine";
394
+ export type AntiAirShell = "AntiAirShell";
395
+ export type ApShell = "ApShell";
396
+ export type VtFuze = "VtFuze";
397
+ export type AntiAirGun = "AntiAirGun";
398
+ export type MidgetSubmarine = "MidgetSubmarine";
399
+ export type EmergencyRepair = "EmergencyRepair";
400
+ export type LandingCraft = "LandingCraft";
401
+ export type Rotorcraft = "Rotorcraft";
402
+ export type AntiSubPatrolAircraft = "AntiSubPatrolAircraft";
403
+ export type MediumArmor = "MediumArmor";
404
+ export type LargeArmor = "LargeArmor";
405
+ export type Searchlight = "Searchlight";
406
+ export type SupplyContainer = "SupplyContainer";
407
+ export type ShipRepairFacility = "ShipRepairFacility";
408
+ export type SubmarineTorpedo = "SubmarineTorpedo";
409
+ export type Starshell = "Starshell";
410
+ export type CommandFacility = "CommandFacility";
411
+ export type AviationPersonnel = "AviationPersonnel";
412
+ export type AntiAirFireDirector = "AntiAirFireDirector";
413
+ export type AntiGroundEquipment = "AntiGroundEquipment";
414
+ export type LargeMainGun2 = "LargeMainGun2";
415
+ export type ShipPersonnel = "ShipPersonnel";
416
+ export type LargeSonar = "LargeSonar";
417
+ export type LargeFlyingBoat = "LargeFlyingBoat";
418
+ export type LargeSearchlight = "LargeSearchlight";
419
+ export type CombatRation = "CombatRation";
420
+ export type Supplies = "Supplies";
421
+ export type SeaplaneFighter = "SeaplaneFighter";
422
+ export type AmphibiousTank = "AmphibiousTank";
423
+ export type LbAttacker = "LbAttacker";
424
+ export type LbFighter = "LbFighter";
425
+ export type LbRecon = "LbRecon";
426
+ export type TransportationMaterial = "TransportationMaterial";
427
+ export type SubmarineEquipment = "SubmarineEquipment";
428
+ export type LargeLbAircraft = "LargeLbAircraft";
429
+ export type JetFighter = "JetFighter";
430
+ export type JetFighterBomber = "JetFighterBomber";
431
+ export type JetTorpedoBomber = "JetTorpedoBomber";
432
+ export type JetRecon = "JetRecon";
433
+ export type LargeRadar2 = "LargeRadar2";
434
+ export type CbRecon2 = "CbRecon2";
435
+ }
211
436
 
212
437
  export type GearType =
213
- | "Unknown"
214
- | "SmallMainGun"
215
- | "MediumMainGun"
216
- | "LargeMainGun"
217
- | "SecondaryGun"
218
- | "Torpedo"
219
- | "CbFighter"
220
- | "CbDiveBomber"
221
- | "CbTorpedoBomber"
222
- | "CbRecon"
223
- | "ReconSeaplane"
224
- | "SeaplaneBomber"
225
- | "SmallRadar"
226
- | "LargeRadar"
227
- | "Sonar"
228
- | "DepthCharge"
229
- | "ExtraArmor"
230
- | "Engine"
231
- | "AntiAirShell"
232
- | "ApShell"
233
- | "VtFuze"
234
- | "AntiAirGun"
235
- | "MidgetSubmarine"
236
- | "EmergencyRepair"
237
- | "LandingCraft"
238
- | "Rotorcraft"
239
- | "AntiSubPatrolAircraft"
240
- | "MediumArmor"
241
- | "LargeArmor"
242
- | "Searchlight"
243
- | "SupplyContainer"
244
- | "ShipRepairFacility"
245
- | "SubmarineTorpedo"
246
- | "Starshell"
247
- | "CommandFacility"
248
- | "AviationPersonnel"
249
- | "AntiAirFireDirector"
250
- | "AntiGroundEquipment"
251
- | "LargeMainGun2"
252
- | "ShipPersonnel"
253
- | "LargeSonar"
254
- | "LargeFlyingBoat"
255
- | "LargeSearchlight"
256
- | "CombatRation"
257
- | "Supplies"
258
- | "SeaplaneFighter"
259
- | "AmphibiousTank"
260
- | "LbAttacker"
261
- | "LbFighter"
262
- | "LbRecon"
263
- | "TransportationMaterial"
264
- | "SubmarineEquipment"
265
- | "LargeLbAircraft"
266
- | "JetFighter"
267
- | "JetFighterBomber"
268
- | "JetTorpedoBomber"
269
- | "JetRecon"
270
- | "LargeRadar2"
271
- | "CbRecon2";
272
-
273
- export type Engagement = "GreenT" | "Parallel" | "HeadOn" | "RedT";
438
+ | GearType.Unknown
439
+ | GearType.SmallMainGun
440
+ | GearType.MediumMainGun
441
+ | GearType.LargeMainGun
442
+ | GearType.SecondaryGun
443
+ | GearType.Torpedo
444
+ | GearType.CbFighter
445
+ | GearType.CbDiveBomber
446
+ | GearType.CbTorpedoBomber
447
+ | GearType.CbRecon
448
+ | GearType.ReconSeaplane
449
+ | GearType.SeaplaneBomber
450
+ | GearType.SmallRadar
451
+ | GearType.LargeRadar
452
+ | GearType.Sonar
453
+ | GearType.DepthCharge
454
+ | GearType.ExtraArmor
455
+ | GearType.Engine
456
+ | GearType.AntiAirShell
457
+ | GearType.ApShell
458
+ | GearType.VtFuze
459
+ | GearType.AntiAirGun
460
+ | GearType.MidgetSubmarine
461
+ | GearType.EmergencyRepair
462
+ | GearType.LandingCraft
463
+ | GearType.Rotorcraft
464
+ | GearType.AntiSubPatrolAircraft
465
+ | GearType.MediumArmor
466
+ | GearType.LargeArmor
467
+ | GearType.Searchlight
468
+ | GearType.SupplyContainer
469
+ | GearType.ShipRepairFacility
470
+ | GearType.SubmarineTorpedo
471
+ | GearType.Starshell
472
+ | GearType.CommandFacility
473
+ | GearType.AviationPersonnel
474
+ | GearType.AntiAirFireDirector
475
+ | GearType.AntiGroundEquipment
476
+ | GearType.LargeMainGun2
477
+ | GearType.ShipPersonnel
478
+ | GearType.LargeSonar
479
+ | GearType.LargeFlyingBoat
480
+ | GearType.LargeSearchlight
481
+ | GearType.CombatRation
482
+ | GearType.Supplies
483
+ | GearType.SeaplaneFighter
484
+ | GearType.AmphibiousTank
485
+ | GearType.LbAttacker
486
+ | GearType.LbFighter
487
+ | GearType.LbRecon
488
+ | GearType.TransportationMaterial
489
+ | GearType.SubmarineEquipment
490
+ | GearType.LargeLbAircraft
491
+ | GearType.JetFighter
492
+ | GearType.JetFighterBomber
493
+ | GearType.JetTorpedoBomber
494
+ | GearType.JetRecon
495
+ | GearType.LargeRadar2
496
+ | GearType.CbRecon2;
497
+
498
+ declare namespace Engagement {
499
+ export type GreenT = "GreenT";
500
+ export type Parallel = "Parallel";
501
+ export type HeadOn = "HeadOn";
502
+ export type RedT = "RedT";
503
+ }
504
+
505
+ export type Engagement =
506
+ | Engagement.GreenT
507
+ | Engagement.Parallel
508
+ | Engagement.HeadOn
509
+ | Engagement.RedT;
274
510
 
275
511
  export interface EBonuses {
276
512
  firepower: number;
@@ -312,14 +548,33 @@ export interface GearInput {
312
548
 
313
549
  export type GearVecInput = GearInput[];
314
550
 
315
- export type AirStateRank = "Rank0" | "Rank1" | "Rank2" | "Rank3";
551
+ declare namespace AirStateRank {
552
+ export type Rank0 = "Rank0";
553
+ export type Rank1 = "Rank1";
554
+ export type Rank2 = "Rank2";
555
+ export type Rank3 = "Rank3";
556
+ }
557
+
558
+ export type AirStateRank =
559
+ | AirStateRank.Rank0
560
+ | AirStateRank.Rank1
561
+ | AirStateRank.Rank2
562
+ | AirStateRank.Rank3;
563
+
564
+ declare namespace AirState {
565
+ export type AirSupremacy = "AirSupremacy";
566
+ export type AirSuperiority = "AirSuperiority";
567
+ export type AirParity = "AirParity";
568
+ export type AirDenial = "AirDenial";
569
+ export type AirIncapability = "AirIncapability";
570
+ }
316
571
 
317
572
  export type AirState =
318
- | "AirSupremacy"
319
- | "AirSuperiority"
320
- | "AirParity"
321
- | "AirDenial"
322
- | "AirIncapability";
573
+ | AirState.AirSupremacy
574
+ | AirState.AirSuperiority
575
+ | AirState.AirParity
576
+ | AirState.AirDenial
577
+ | AirState.AirIncapability;
323
578
 
324
579
  export interface ShellingSupportSimulatorParams {
325
580
  attacker_formation: Formation;
@@ -370,37 +625,77 @@ export interface DamageInfo {
370
625
  damage_state_map: NumMap<DamageState, number>;
371
626
  }
372
627
 
628
+ declare namespace ShipAttr {
629
+ export type Unknown = "Unknown";
630
+ export type Abyssal = "Abyssal";
631
+ export type NightCarrier = "NightCarrier";
632
+ export type Installation = "Installation";
633
+ export type RoyalNavy = "RoyalNavy";
634
+ export type Kai2 = "Kai2";
635
+ export type TurbineSpeedBonus = "TurbineSpeedBonus";
636
+ export type Pillbox = "Pillbox";
637
+ export type IsolatedIsland = "IsolatedIsland";
638
+ export type HarbourSummerPrincess = "HarbourSummerPrincess";
639
+ export type SupplyDepot = "SupplyDepot";
640
+ export type PtImp = "PtImp";
641
+ export type BattleshipSummerPrincess = "BattleshipSummerPrincess";
642
+ export type HeavyCruiserSummerPrincess = "HeavyCruiserSummerPrincess";
643
+ }
644
+
373
645
  export type ShipAttr =
374
- | "Unknown"
375
- | "Abyssal"
376
- | "NightCarrier"
377
- | "Installation"
378
- | "RoyalNavy"
379
- | "Kai2"
380
- | "TurbineSpeedBonus"
381
- | "Pillbox"
382
- | "IsolatedIsland"
383
- | "HarbourSummerPrincess"
384
- | "SupplyDepot"
385
- | "PtImp"
386
- | "BattleshipSummerPrincess"
387
- | "HeavyCruiserSummerPrincess";
388
-
389
- export type Formation = SingleFormation | CombinedFormation;
646
+ | ShipAttr.Unknown
647
+ | ShipAttr.Abyssal
648
+ | ShipAttr.NightCarrier
649
+ | ShipAttr.Installation
650
+ | ShipAttr.RoyalNavy
651
+ | ShipAttr.Kai2
652
+ | ShipAttr.TurbineSpeedBonus
653
+ | ShipAttr.Pillbox
654
+ | ShipAttr.IsolatedIsland
655
+ | ShipAttr.HarbourSummerPrincess
656
+ | ShipAttr.SupplyDepot
657
+ | ShipAttr.PtImp
658
+ | ShipAttr.BattleshipSummerPrincess
659
+ | ShipAttr.HeavyCruiserSummerPrincess;
660
+
661
+ type __FormationCombinedFormation = CombinedFormation;
662
+ type __FormationSingleFormation = SingleFormation;
663
+ declare namespace Formation {
664
+ export type Single = __FormationSingleFormation;
665
+ export type Combined = __FormationCombinedFormation;
666
+ }
667
+
668
+ export type Formation = Formation.Single | Formation.Combined;
669
+
670
+ declare namespace CombinedFormation {
671
+ export type Cruising1 = "Cruising1";
672
+ export type Cruising2 = "Cruising2";
673
+ export type Cruising3 = "Cruising3";
674
+ export type Cruising4 = "Cruising4";
675
+ }
390
676
 
391
677
  export type CombinedFormation =
392
- | "Cruising1"
393
- | "Cruising2"
394
- | "Cruising3"
395
- | "Cruising4";
678
+ | CombinedFormation.Cruising1
679
+ | CombinedFormation.Cruising2
680
+ | CombinedFormation.Cruising3
681
+ | CombinedFormation.Cruising4;
682
+
683
+ declare namespace SingleFormation {
684
+ export type LineAhead = "LineAhead";
685
+ export type DoubleLine = "DoubleLine";
686
+ export type Diamond = "Diamond";
687
+ export type Echelon = "Echelon";
688
+ export type LineAbreast = "LineAbreast";
689
+ export type Vanguard = "Vanguard";
690
+ }
396
691
 
397
692
  export type SingleFormation =
398
- | "LineAhead"
399
- | "DoubleLine"
400
- | "Diamond"
401
- | "Echelon"
402
- | "LineAbreast"
403
- | "Vanguard";
693
+ | SingleFormation.LineAhead
694
+ | SingleFormation.DoubleLine
695
+ | SingleFormation.Diamond
696
+ | SingleFormation.Echelon
697
+ | SingleFormation.LineAbreast
698
+ | SingleFormation.Vanguard;
404
699
 
405
700
  export interface CustomPowerModifiers {
406
701
  precap_mod?: AttackPowerModifier;
@@ -491,40 +786,88 @@ export interface AirstrikeContactChance {
491
786
 
492
787
  export type SlotSizeVec = (number | null)[];
493
788
 
494
- export type Side = "Player" | "Enemy";
789
+ declare namespace Side {
790
+ export type Player = "Player";
791
+ export type Enemy = "Enemy";
792
+ }
793
+
794
+ export type Side = Side.Player | Side.Enemy;
795
+
796
+ declare namespace GearAttr {
797
+ export type Unknown = "Unknown";
798
+ export type Abyssal = "Abyssal";
799
+ export type HighAngleMount = "HighAngleMount";
800
+ export type NightFighter = "NightFighter";
801
+ export type NightAttacker = "NightAttacker";
802
+ export type HeavyBomber = "HeavyBomber";
803
+ export type MainGun = "MainGun";
804
+ export type Radar = "Radar";
805
+ export type SurfaceRadar = "SurfaceRadar";
806
+ export type AirRadar = "AirRadar";
807
+ export type DepthChargeProjector = "DepthChargeProjector";
808
+ export type SynergisticDepthCharge = "SynergisticDepthCharge";
809
+ export type AntiSubMortar = "AntiSubMortar";
810
+ export type AntiSubWeapon = "AntiSubWeapon";
811
+ export type AntiSubAircraft = "AntiSubAircraft";
812
+ export type LateModelBowTorpedo = "LateModelBowTorpedo";
813
+ export type Seaplane = "Seaplane";
814
+ export type CbAircraft = "CbAircraft";
815
+ export type LbAircraft = "LbAircraft";
816
+ export type JetAircraft = "JetAircraft";
817
+ export type Fighter = "Fighter";
818
+ export type Recon = "Recon";
819
+ export type ObservationSeaplane = "ObservationSeaplane";
820
+ export type CbFighterBomber = "CbFighterBomber";
821
+ export type AntiInstDiveBomber = "AntiInstDiveBomber";
822
+ export type NightRecon = "NightRecon";
823
+ export type CbSwordfish = "CbSwordfish";
824
+ export type SemiNightPlane = "SemiNightPlane";
825
+ export type HighAltitudeInterceptor = "HighAltitudeInterceptor";
826
+ }
495
827
 
496
828
  export type GearAttr =
497
- | "Unknown"
498
- | "Abyssal"
499
- | "HighAngleMount"
500
- | "NightFighter"
501
- | "NightAttacker"
502
- | "HeavyBomber"
503
- | "MainGun"
504
- | "Radar"
505
- | "SurfaceRadar"
506
- | "AirRadar"
507
- | "DepthChargeProjector"
508
- | "SynergisticDepthCharge"
509
- | "AntiSubMortar"
510
- | "AntiSubWeapon"
511
- | "AntiSubAircraft"
512
- | "LateModelBowTorpedo"
513
- | "Seaplane"
514
- | "CbAircraft"
515
- | "LbAircraft"
516
- | "JetAircraft"
517
- | "Fighter"
518
- | "Recon"
519
- | "ObservationSeaplane"
520
- | "CbFighterBomber"
521
- | "AntiInstDiveBomber"
522
- | "NightRecon"
523
- | "CbSwordfish"
524
- | "SemiNightPlane"
525
- | "HighAltitudeInterceptor";
526
-
527
- export type FleetType = "Main" | "Escort" | "RouteSup" | "BossSup";
829
+ | GearAttr.Unknown
830
+ | GearAttr.Abyssal
831
+ | GearAttr.HighAngleMount
832
+ | GearAttr.NightFighter
833
+ | GearAttr.NightAttacker
834
+ | GearAttr.HeavyBomber
835
+ | GearAttr.MainGun
836
+ | GearAttr.Radar
837
+ | GearAttr.SurfaceRadar
838
+ | GearAttr.AirRadar
839
+ | GearAttr.DepthChargeProjector
840
+ | GearAttr.SynergisticDepthCharge
841
+ | GearAttr.AntiSubMortar
842
+ | GearAttr.AntiSubWeapon
843
+ | GearAttr.AntiSubAircraft
844
+ | GearAttr.LateModelBowTorpedo
845
+ | GearAttr.Seaplane
846
+ | GearAttr.CbAircraft
847
+ | GearAttr.LbAircraft
848
+ | GearAttr.JetAircraft
849
+ | GearAttr.Fighter
850
+ | GearAttr.Recon
851
+ | GearAttr.ObservationSeaplane
852
+ | GearAttr.CbFighterBomber
853
+ | GearAttr.AntiInstDiveBomber
854
+ | GearAttr.NightRecon
855
+ | GearAttr.CbSwordfish
856
+ | GearAttr.SemiNightPlane
857
+ | GearAttr.HighAltitudeInterceptor;
858
+
859
+ declare namespace FleetType {
860
+ export type Main = "Main";
861
+ export type Escort = "Escort";
862
+ export type RouteSup = "RouteSup";
863
+ export type BossSup = "BossSup";
864
+ }
865
+
866
+ export type FleetType =
867
+ | FleetType.Main
868
+ | FleetType.Escort
869
+ | FleetType.RouteSup
870
+ | FleetType.BossSup;
528
871
 
529
872
  export interface MasterEquippable {
530
873
  equip_stype: EquipStype[];
@@ -548,13 +891,33 @@ export interface EquipStype {
548
891
  equip_type: number[];
549
892
  }
550
893
 
894
+ type __NightBattleAttackTypeAswAttackType = AswAttackType;
895
+ type __NightBattleAttackTypeNightAttackType = NightAttackType;
896
+ declare namespace NightBattleAttackType {
897
+ export type NightAttack = {
898
+ t: "NightAttack";
899
+ c: __NightBattleAttackTypeNightAttackType;
900
+ };
901
+ export type Asw = { t: "Asw"; c: __NightBattleAttackTypeAswAttackType };
902
+ }
903
+
551
904
  export type NightBattleAttackType =
552
- | { t: "NightAttack"; c: NightAttackType }
553
- | { t: "Asw"; c: AswAttackType };
905
+ | NightBattleAttackType.NightAttack
906
+ | NightBattleAttackType.Asw;
907
+
908
+ type __DayBattleAttackTypeAswAttackType = AswAttackType;
909
+ type __DayBattleAttackTypeShellingAttackType = ShellingAttackType;
910
+ declare namespace DayBattleAttackType {
911
+ export type Shelling = {
912
+ t: "Shelling";
913
+ c: __DayBattleAttackTypeShellingAttackType;
914
+ };
915
+ export type Asw = { t: "Asw"; c: __DayBattleAttackTypeAswAttackType };
916
+ }
554
917
 
555
918
  export type DayBattleAttackType =
556
- | { t: "Shelling"; c: ShellingAttackType }
557
- | { t: "Asw"; c: AswAttackType };
919
+ | DayBattleAttackType.Shelling
920
+ | DayBattleAttackType.Asw;
558
921
 
559
922
  export interface AttackInfo<AttackType, Cutin> {
560
923
  attack_type: AttackType;
@@ -579,7 +942,24 @@ export interface AttackStats {
579
942
 
580
943
  export type ShipStateMap = Record<ShipKey, ShipState>;
581
944
 
582
- export type ShipKey = "s1" | "s2" | "s3" | "s4" | "s5" | "s6" | "s7";
945
+ declare namespace ShipKey {
946
+ export type s1 = "s1";
947
+ export type s2 = "s2";
948
+ export type s3 = "s3";
949
+ export type s4 = "s4";
950
+ export type s5 = "s5";
951
+ export type s6 = "s6";
952
+ export type s7 = "s7";
953
+ }
954
+
955
+ export type ShipKey =
956
+ | ShipKey.s1
957
+ | ShipKey.s2
958
+ | ShipKey.s3
959
+ | ShipKey.s4
960
+ | ShipKey.s5
961
+ | ShipKey.s6
962
+ | ShipKey.s7;
583
963
 
584
964
  export interface OrgState {
585
965
  id?: string;
@@ -602,7 +982,14 @@ export interface AirSquadronState extends GearVecState, SlotSizeVecState {
602
982
  mode?: AirSquadronMode;
603
983
  }
604
984
 
605
- export type AirSquadronMode = "Sortie" | "AirDefense";
985
+ declare namespace AirSquadronMode {
986
+ export type Sortie = "Sortie";
987
+ export type AirDefense = "AirDefense";
988
+ }
989
+
990
+ export type AirSquadronMode =
991
+ | AirSquadronMode.Sortie
992
+ | AirSquadronMode.AirDefense;
606
993
 
607
994
  export interface FleetState {
608
995
  id?: string;
@@ -702,28 +1089,62 @@ export interface HitRateParams {
702
1089
  hit_percentage_bonus: number;
703
1090
  }
704
1091
 
705
- export type NightAttackType = "Normal" | "ArkRoyal" | "Carrier";
1092
+ declare namespace NightAttackType {
1093
+ export type Normal = "Normal";
1094
+ export type ArkRoyal = "ArkRoyal";
1095
+ export type Carrier = "Carrier";
1096
+ }
1097
+
1098
+ export type NightAttackType =
1099
+ | NightAttackType.Normal
1100
+ | NightAttackType.ArkRoyal
1101
+ | NightAttackType.Carrier;
1102
+
1103
+ type __NightSpecialAttackFleetCutin = FleetCutin;
1104
+ type __NightSpecialAttackNightCutin = NightCutin;
1105
+ declare namespace NightSpecialAttack {
1106
+ export type NightCutin = { NightCutin: __NightSpecialAttackNightCutin };
1107
+ export type FleetCutin = { FleetCutin: __NightSpecialAttackFleetCutin };
1108
+ }
706
1109
 
707
1110
  export type NightSpecialAttack =
708
- | { NightCutin: NightCutin }
709
- | { FleetCutin: FleetCutin };
1111
+ | NightSpecialAttack.NightCutin
1112
+ | NightSpecialAttack.FleetCutin;
1113
+
1114
+ declare namespace NightCutin {
1115
+ export type MainTorpRadar = "MainTorpRadar";
1116
+ export type TorpLookoutRadar = "TorpLookoutRadar";
1117
+ export type TorpTsloTorp = "TorpTsloTorp";
1118
+ export type TorpTsloDrum = "TorpTsloDrum";
1119
+ export type DoubleAttack = "DoubleAttack";
1120
+ export type TorpTorpMain = "TorpTorpMain";
1121
+ export type TorpTorpTorp = "TorpTorpTorp";
1122
+ export type MainMainSec = "MainMainSec";
1123
+ export type MainMainMain = "MainMainMain";
1124
+ export type SubTorpTorp = "SubTorpTorp";
1125
+ export type SubRadarTorp = "SubRadarTorp";
1126
+ export type Cvci1_25 = "Cvci1_25";
1127
+ export type Cvci1_20 = "Cvci1_20";
1128
+ export type Cvci1_18 = "Cvci1_18";
1129
+ export type Photobomber = "Photobomber";
1130
+ }
710
1131
 
711
1132
  export type NightCutin =
712
- | "MainTorpRadar"
713
- | "TorpLookoutRadar"
714
- | "TorpTsloTorp"
715
- | "TorpTsloDrum"
716
- | "DoubleAttack"
717
- | "TorpTorpMain"
718
- | "TorpTorpTorp"
719
- | "MainMainSec"
720
- | "MainMainMain"
721
- | "SubTorpTorp"
722
- | "SubRadarTorp"
723
- | "Cvci1_25"
724
- | "Cvci1_20"
725
- | "Cvci1_18"
726
- | "Photobomber";
1133
+ | NightCutin.MainTorpRadar
1134
+ | NightCutin.TorpLookoutRadar
1135
+ | NightCutin.TorpTsloTorp
1136
+ | NightCutin.TorpTsloDrum
1137
+ | NightCutin.DoubleAttack
1138
+ | NightCutin.TorpTorpMain
1139
+ | NightCutin.TorpTorpTorp
1140
+ | NightCutin.MainMainSec
1141
+ | NightCutin.MainMainMain
1142
+ | NightCutin.SubTorpTorp
1143
+ | NightCutin.SubRadarTorp
1144
+ | NightCutin.Cvci1_25
1145
+ | NightCutin.Cvci1_20
1146
+ | NightCutin.Cvci1_18
1147
+ | NightCutin.Photobomber;
727
1148
 
728
1149
  export interface BattleConfig {
729
1150
  formation: Record<Formation, NestedFormationDef>;
@@ -756,9 +1177,18 @@ export interface AntiAirCutinDef {
756
1177
  sequential: boolean | null;
757
1178
  }
758
1179
 
1180
+ type __NestedFormationDefFormationDef = FormationDef;
1181
+ declare namespace NestedFormationDef {
1182
+ export type Normal = __NestedFormationDefFormationDef;
1183
+ export type Vanguard = {
1184
+ top_half: __NestedFormationDefFormationDef;
1185
+ bottom_half: __NestedFormationDefFormationDef;
1186
+ };
1187
+ }
1188
+
759
1189
  export type NestedFormationDef =
760
- | FormationDef
761
- | { top_half: FormationDef; bottom_half: FormationDef };
1190
+ | NestedFormationDef.Normal
1191
+ | NestedFormationDef.Vanguard;
762
1192
 
763
1193
  export interface FormationDef {
764
1194
  tag: Formation;
@@ -812,7 +1242,16 @@ export type StatInterval = [number | null, number | null];
812
1242
 
813
1243
  export type GearTypeIdArray = [number, number, number, number, number];
814
1244
 
815
- export type ContactRank = "Rank1" | "Rank2" | "Rank3";
1245
+ declare namespace ContactRank {
1246
+ export type Rank1 = "Rank1";
1247
+ export type Rank2 = "Rank2";
1248
+ export type Rank3 = "Rank3";
1249
+ }
1250
+
1251
+ export type ContactRank =
1252
+ | ContactRank.Rank1
1253
+ | ContactRank.Rank2
1254
+ | ContactRank.Rank3;
816
1255
 
817
1256
  export interface SimulatorResult {
818
1257
  items: SimulatorResultItem[];