fleethub-core 1.1.6 → 1.2.0
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 +1841 -872
- package/node/fleethub_core.js +137 -137
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +209 -209
- package/package.json +2 -3
- package/pkg/fleethub_core.d.ts +1841 -872
- package/pkg/fleethub_core_bg.js +137 -137
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +209 -209
- package/bindings.d.ts +0 -918
package/bindings.d.ts
DELETED
|
@@ -1,918 +0,0 @@
|
|
|
1
|
-
export type GearType =
|
|
2
|
-
| "Unknown"
|
|
3
|
-
| "SmallMainGun"
|
|
4
|
-
| "MediumMainGun"
|
|
5
|
-
| "LargeMainGun"
|
|
6
|
-
| "SecondaryGun"
|
|
7
|
-
| "Torpedo"
|
|
8
|
-
| "CbFighter"
|
|
9
|
-
| "CbDiveBomber"
|
|
10
|
-
| "CbTorpedoBomber"
|
|
11
|
-
| "CbRecon"
|
|
12
|
-
| "ReconSeaplane"
|
|
13
|
-
| "SeaplaneBomber"
|
|
14
|
-
| "SmallRadar"
|
|
15
|
-
| "LargeRadar"
|
|
16
|
-
| "Sonar"
|
|
17
|
-
| "DepthCharge"
|
|
18
|
-
| "ExtraArmor"
|
|
19
|
-
| "Engine"
|
|
20
|
-
| "AntiAirShell"
|
|
21
|
-
| "ApShell"
|
|
22
|
-
| "VtFuze"
|
|
23
|
-
| "AntiAirGun"
|
|
24
|
-
| "MidgetSubmarine"
|
|
25
|
-
| "EmergencyRepair"
|
|
26
|
-
| "LandingCraft"
|
|
27
|
-
| "Rotorcraft"
|
|
28
|
-
| "AntiSubPatrolAircraft"
|
|
29
|
-
| "MediumArmor"
|
|
30
|
-
| "LargeArmor"
|
|
31
|
-
| "Searchlight"
|
|
32
|
-
| "SupplyContainer"
|
|
33
|
-
| "ShipRepairFacility"
|
|
34
|
-
| "SubmarineTorpedo"
|
|
35
|
-
| "Starshell"
|
|
36
|
-
| "CommandFacility"
|
|
37
|
-
| "AviationPersonnel"
|
|
38
|
-
| "AntiAirFireDirector"
|
|
39
|
-
| "AntiGroundEquipment"
|
|
40
|
-
| "LargeMainGun2"
|
|
41
|
-
| "ShipPersonnel"
|
|
42
|
-
| "LargeSonar"
|
|
43
|
-
| "LargeFlyingBoat"
|
|
44
|
-
| "LargeSearchlight"
|
|
45
|
-
| "CombatRation"
|
|
46
|
-
| "Supplies"
|
|
47
|
-
| "SeaplaneFighter"
|
|
48
|
-
| "AmphibiousTank"
|
|
49
|
-
| "LbAttacker"
|
|
50
|
-
| "LbFighter"
|
|
51
|
-
| "LbRecon"
|
|
52
|
-
| "TransportationMaterial"
|
|
53
|
-
| "SubmarineEquipment"
|
|
54
|
-
| "LargeLbAircraft"
|
|
55
|
-
| "JetFighter"
|
|
56
|
-
| "JetFighterBomber"
|
|
57
|
-
| "JetTorpedoBomber"
|
|
58
|
-
| "JetRecon"
|
|
59
|
-
| "LargeRadar2"
|
|
60
|
-
| "CbRecon2";
|
|
61
|
-
|
|
62
|
-
export type GearAttr =
|
|
63
|
-
| "Abyssal"
|
|
64
|
-
| "HighAngleMount"
|
|
65
|
-
| "NightFighter"
|
|
66
|
-
| "NightAttacker"
|
|
67
|
-
| "HeavyBomber"
|
|
68
|
-
| "MainGun"
|
|
69
|
-
| "Radar"
|
|
70
|
-
| "SurfaceRadar"
|
|
71
|
-
| "AirRadar"
|
|
72
|
-
| "DepthChargeProjector"
|
|
73
|
-
| "AdditionalDepthCharge"
|
|
74
|
-
| "AntiSubMortar"
|
|
75
|
-
| "AntiSubWeapon"
|
|
76
|
-
| "AntiSubAircraft"
|
|
77
|
-
| "LateModelBowTorpedo"
|
|
78
|
-
| "Seaplane"
|
|
79
|
-
| "CbAircraft"
|
|
80
|
-
| "LbAircraft"
|
|
81
|
-
| "JetAircraft"
|
|
82
|
-
| "Fighter"
|
|
83
|
-
| "Recon"
|
|
84
|
-
| "ObservationSeaplane"
|
|
85
|
-
| "CbFighterBomber"
|
|
86
|
-
| "AntiInstDiveBomber"
|
|
87
|
-
| "NightRecon"
|
|
88
|
-
| "CbSwordfish"
|
|
89
|
-
| "SemiNightPlane"
|
|
90
|
-
| "HighAltitudeInterceptor";
|
|
91
|
-
|
|
92
|
-
export type GearCategory =
|
|
93
|
-
| "Fighter"
|
|
94
|
-
| "Bomber"
|
|
95
|
-
| "Recon"
|
|
96
|
-
| "MainGun"
|
|
97
|
-
| "Secondary"
|
|
98
|
-
| "Torpedo"
|
|
99
|
-
| "AntiSub"
|
|
100
|
-
| "Radar"
|
|
101
|
-
| "Landing"
|
|
102
|
-
| "Ration"
|
|
103
|
-
| "LandBased"
|
|
104
|
-
| "Misc";
|
|
105
|
-
|
|
106
|
-
export type ShipType =
|
|
107
|
-
| "Unknown"
|
|
108
|
-
| "DE"
|
|
109
|
-
| "DD"
|
|
110
|
-
| "CL"
|
|
111
|
-
| "CLT"
|
|
112
|
-
| "CA"
|
|
113
|
-
| "CAV"
|
|
114
|
-
| "CVL"
|
|
115
|
-
| "FBB"
|
|
116
|
-
| "BB"
|
|
117
|
-
| "BBV"
|
|
118
|
-
| "CV"
|
|
119
|
-
| "XBB"
|
|
120
|
-
| "SS"
|
|
121
|
-
| "SSV"
|
|
122
|
-
| "AP"
|
|
123
|
-
| "AV"
|
|
124
|
-
| "LHA"
|
|
125
|
-
| "CVB"
|
|
126
|
-
| "AR"
|
|
127
|
-
| "AS"
|
|
128
|
-
| "CT"
|
|
129
|
-
| "AO";
|
|
130
|
-
|
|
131
|
-
export type ShipClass =
|
|
132
|
-
| "Unknown"
|
|
133
|
-
| "AyanamiClass"
|
|
134
|
-
| "IseClass"
|
|
135
|
-
| "KagaClass"
|
|
136
|
-
| "KumaClass"
|
|
137
|
-
| "AkatsukiClass"
|
|
138
|
-
| "KongouClass"
|
|
139
|
-
| "FurutakaClass"
|
|
140
|
-
| "TakaoClass"
|
|
141
|
-
| "MogamiClass"
|
|
142
|
-
| "HatsuharuClass"
|
|
143
|
-
| "ShouhouClass"
|
|
144
|
-
| "FubukiClass"
|
|
145
|
-
| "AobaClass"
|
|
146
|
-
| "AkagiClass"
|
|
147
|
-
| "ChitoseClass"
|
|
148
|
-
| "SendaiClass"
|
|
149
|
-
| "SouryuuClass"
|
|
150
|
-
| "AsashioClass"
|
|
151
|
-
| "NagatoClass"
|
|
152
|
-
| "NagaraClass"
|
|
153
|
-
| "TenryuuClass"
|
|
154
|
-
| "ShimakazeClass"
|
|
155
|
-
| "ShiratsuyuClass"
|
|
156
|
-
| "HiyouClass"
|
|
157
|
-
| "HiryuuClass"
|
|
158
|
-
| "FusouClass"
|
|
159
|
-
| "HoushouClass"
|
|
160
|
-
| "MutsukiClass"
|
|
161
|
-
| "MyoukouClass"
|
|
162
|
-
| "KagerouClass"
|
|
163
|
-
| "ToneClass"
|
|
164
|
-
| "RyuujouClass"
|
|
165
|
-
| "ShoukakuClass"
|
|
166
|
-
| "YuubariClass"
|
|
167
|
-
| "KaidaiVIClass"
|
|
168
|
-
| "JunsenTypeBKai2"
|
|
169
|
-
| "YamatoClass"
|
|
170
|
-
| "YuugumoClass"
|
|
171
|
-
| "JunsenTypeB"
|
|
172
|
-
| "Junsen3Class"
|
|
173
|
-
| "AganoClass"
|
|
174
|
-
| "FleetOfFog"
|
|
175
|
-
| "TaihouClass"
|
|
176
|
-
| "I400Class"
|
|
177
|
-
| "AkitsuMaruClass"
|
|
178
|
-
| "Type3SubmergenceTransportVehicle"
|
|
179
|
-
| "BismarckClass"
|
|
180
|
-
| "Z1Class"
|
|
181
|
-
| "RepairShip"
|
|
182
|
-
| "TaigeiClass"
|
|
183
|
-
| "RyuuhouClass"
|
|
184
|
-
| "OoyodoClass"
|
|
185
|
-
| "UnryuuClass"
|
|
186
|
-
| "AkizukiClass"
|
|
187
|
-
| "AdmiralHipperClass"
|
|
188
|
-
| "KatoriClass"
|
|
189
|
-
| "TypeIXCClass"
|
|
190
|
-
| "VittorioVenetoClass"
|
|
191
|
-
| "AkitsushimaClass"
|
|
192
|
-
| "RevisedKazahayaClass"
|
|
193
|
-
| "MaestraleClass"
|
|
194
|
-
| "MizuhoClass"
|
|
195
|
-
| "GrafZeppelinClass"
|
|
196
|
-
| "ZaraClass"
|
|
197
|
-
| "IowaClass"
|
|
198
|
-
| "KamikazeClass"
|
|
199
|
-
| "QueenElizabethClass"
|
|
200
|
-
| "AquilaClass"
|
|
201
|
-
| "LexingtonClass"
|
|
202
|
-
| "CommandantTesteClass"
|
|
203
|
-
| "JunsenTypeAKai2"
|
|
204
|
-
| "KamoiClass"
|
|
205
|
-
| "GangutClass"
|
|
206
|
-
| "ShimushuClass"
|
|
207
|
-
| "KasugaMaruClass"
|
|
208
|
-
| "TaiyouClass"
|
|
209
|
-
| "EtorofuClass"
|
|
210
|
-
| "ArkRoyalClass"
|
|
211
|
-
| "RichelieuClass"
|
|
212
|
-
| "MarconiClass"
|
|
213
|
-
| "TashkentClass"
|
|
214
|
-
| "JClass"
|
|
215
|
-
| "CasablancaClass"
|
|
216
|
-
| "EssexClass"
|
|
217
|
-
| "HiburiClass"
|
|
218
|
-
| "RoSeries"
|
|
219
|
-
| "JohnCButlerClass"
|
|
220
|
-
| "NelsonClass"
|
|
221
|
-
| "GotlandClass"
|
|
222
|
-
| "NisshinClass"
|
|
223
|
-
| "FletcherClass"
|
|
224
|
-
| "DucaDegliAbruzziClass"
|
|
225
|
-
| "ColoradoClass"
|
|
226
|
-
| "MikuraClass"
|
|
227
|
-
| "NorthamptonClass"
|
|
228
|
-
| "PerthClass"
|
|
229
|
-
| "R1"
|
|
230
|
-
| "DeRuyterClass"
|
|
231
|
-
| "AtlantaClass"
|
|
232
|
-
| "JingeiClass"
|
|
233
|
-
| "MatsuClass"
|
|
234
|
-
| "SouthDakotaClass"
|
|
235
|
-
| "JunsenTypeC"
|
|
236
|
-
| "TypeDCoastalDefenseShip"
|
|
237
|
-
| "YorktownClass"
|
|
238
|
-
| "StLouisClass"
|
|
239
|
-
| "NorthCarolinaClass"
|
|
240
|
-
| "TownClass"
|
|
241
|
-
| "SentakaType"
|
|
242
|
-
| "BrooklynClass"
|
|
243
|
-
| "AuxiliaryTransportShip"
|
|
244
|
-
| "IllustriousClass"
|
|
245
|
-
| "ConteDiCavourClass";
|
|
246
|
-
|
|
247
|
-
export type ShipAttr =
|
|
248
|
-
| "Abyssal"
|
|
249
|
-
| "NightCarrier"
|
|
250
|
-
| "Installation"
|
|
251
|
-
| "RoyalNavy"
|
|
252
|
-
| "Kai2"
|
|
253
|
-
| "TurbineSpeedBonus"
|
|
254
|
-
| "Pillbox"
|
|
255
|
-
| "IsolatedIsland"
|
|
256
|
-
| "HarbourSummerPrincess"
|
|
257
|
-
| "SupplyDepot"
|
|
258
|
-
| "PtImp"
|
|
259
|
-
| "BattleshipSummerPrincess"
|
|
260
|
-
| "HeavyCruiserSummerPrincess";
|
|
261
|
-
|
|
262
|
-
export type ShipCategory =
|
|
263
|
-
| "Battleship"
|
|
264
|
-
| "AircraftCarrier"
|
|
265
|
-
| "HeavyCruiser"
|
|
266
|
-
| "LightCruiser"
|
|
267
|
-
| "Destroyer"
|
|
268
|
-
| "CoastalDefenseShip"
|
|
269
|
-
| "Submarine"
|
|
270
|
-
| "AuxiliaryShip";
|
|
271
|
-
|
|
272
|
-
export type SpecialEnemyType =
|
|
273
|
-
| "None"
|
|
274
|
-
| "SoftSkinned"
|
|
275
|
-
| "Pillbox"
|
|
276
|
-
| "IsolatedIsland"
|
|
277
|
-
| "SupplyDepot"
|
|
278
|
-
| "HarbourSummerPrincess"
|
|
279
|
-
| "PtImp"
|
|
280
|
-
| "BattleshipSummerPrincess"
|
|
281
|
-
| "HeavyCruiserSummerPrincess";
|
|
282
|
-
|
|
283
|
-
export type DamageState = "Normal" | "Shouha" | "Chuuha" | "Taiha" | "Sunk";
|
|
284
|
-
|
|
285
|
-
export type MoraleState = "Sparkle" | "Normal" | "Orange" | "Red";
|
|
286
|
-
|
|
287
|
-
export type SingleFormation =
|
|
288
|
-
| "LineAhead"
|
|
289
|
-
| "DoubleLine"
|
|
290
|
-
| "Diamond"
|
|
291
|
-
| "Echelon"
|
|
292
|
-
| "LineAbreast"
|
|
293
|
-
| "Vanguard";
|
|
294
|
-
|
|
295
|
-
export type CombinedFormation =
|
|
296
|
-
| "Cruising1"
|
|
297
|
-
| "Cruising2"
|
|
298
|
-
| "Cruising3"
|
|
299
|
-
| "Cruising4";
|
|
300
|
-
|
|
301
|
-
export type AirWaveType = "Jet" | "LandBase" | "Carrier";
|
|
302
|
-
|
|
303
|
-
export type AirState =
|
|
304
|
-
| "AirSupremacy"
|
|
305
|
-
| "AirSuperiority"
|
|
306
|
-
| "AirParity"
|
|
307
|
-
| "AirDenial"
|
|
308
|
-
| "AirIncapability";
|
|
309
|
-
|
|
310
|
-
export type AirStateRank = "Rank0" | "Rank1" | "Rank2" | "Rank3";
|
|
311
|
-
|
|
312
|
-
export type Engagement = "GreenT" | "Parallel" | "HeadOn" | "RedT";
|
|
313
|
-
|
|
314
|
-
export type Formation = SingleFormation | CombinedFormation;
|
|
315
|
-
|
|
316
|
-
export interface FormationWarfareDef {
|
|
317
|
-
power_mod: number | null;
|
|
318
|
-
accuracy_mod: number | null;
|
|
319
|
-
evasion_mod: number | null;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
export interface FormationDef {
|
|
323
|
-
tag: Formation;
|
|
324
|
-
protection_rate: number | null;
|
|
325
|
-
fleet_anti_air_mod: number;
|
|
326
|
-
shelling: FormationWarfareDef;
|
|
327
|
-
torpedo: FormationWarfareDef;
|
|
328
|
-
asw: FormationWarfareDef;
|
|
329
|
-
night: FormationWarfareDef;
|
|
330
|
-
shelling_support: FormationWarfareDef;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
export type NestedFormationDef =
|
|
334
|
-
| FormationDef
|
|
335
|
-
| { top_half: FormationDef; bottom_half: FormationDef };
|
|
336
|
-
|
|
337
|
-
export type DayCutin =
|
|
338
|
-
| "MainMain"
|
|
339
|
-
| "MainAp"
|
|
340
|
-
| "MainRader"
|
|
341
|
-
| "MainSec"
|
|
342
|
-
| "DoubleAttack"
|
|
343
|
-
| "FBA"
|
|
344
|
-
| "BBA"
|
|
345
|
-
| "BA"
|
|
346
|
-
| "Zuiun"
|
|
347
|
-
| "AirSea";
|
|
348
|
-
|
|
349
|
-
export type NightAttackType = "Normal" | "ArkRoyal" | "Carrier";
|
|
350
|
-
|
|
351
|
-
export type NightCutin =
|
|
352
|
-
| "MainTorpRadar"
|
|
353
|
-
| "TorpLookoutRadar"
|
|
354
|
-
| "TorpTsloTorp"
|
|
355
|
-
| "TorpTsloDrum"
|
|
356
|
-
| "DoubleAttack"
|
|
357
|
-
| "TorpTorpMain"
|
|
358
|
-
| "TorpTorpTorp"
|
|
359
|
-
| "MainMainSec"
|
|
360
|
-
| "MainMainMain"
|
|
361
|
-
| "SubTorpTorp"
|
|
362
|
-
| "SubRadarTorp"
|
|
363
|
-
| "Cvci1_25"
|
|
364
|
-
| "Cvci1_20"
|
|
365
|
-
| "Cvci1_18"
|
|
366
|
-
| "Photobomber";
|
|
367
|
-
|
|
368
|
-
export type NightSpecialAttack =
|
|
369
|
-
| { NightCutin: NightCutin }
|
|
370
|
-
| { FleetCutin: FleetCutin };
|
|
371
|
-
|
|
372
|
-
export type FleetCutin =
|
|
373
|
-
| "NelsonTouch"
|
|
374
|
-
| "NagatoCutin"
|
|
375
|
-
| "ColoradoCutin"
|
|
376
|
-
| "KongouCutin";
|
|
377
|
-
|
|
378
|
-
export interface AntiAirCutinDef {
|
|
379
|
-
id: number;
|
|
380
|
-
chance_numer: number | null;
|
|
381
|
-
multiplier: number | null;
|
|
382
|
-
minimum_bonus: number | null;
|
|
383
|
-
sequential: boolean | null;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
export interface NightCutinDef {
|
|
387
|
-
tag: NightCutin;
|
|
388
|
-
hits: number;
|
|
389
|
-
chance_denom: number | null;
|
|
390
|
-
power_mod: number | null;
|
|
391
|
-
accuracy_mod: number | null;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
export interface DayCutinDef {
|
|
395
|
-
tag: DayCutin;
|
|
396
|
-
hits: number;
|
|
397
|
-
chance_denom: number | null;
|
|
398
|
-
power_mod: number | null;
|
|
399
|
-
accuracy_mod: number | null;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
export type ContactRank = "Rank1" | "Rank2" | "Rank3";
|
|
403
|
-
|
|
404
|
-
export type Side = "Player" | "Enemy";
|
|
405
|
-
|
|
406
|
-
export type Role = "Main" | "Escort";
|
|
407
|
-
|
|
408
|
-
export type OrgType =
|
|
409
|
-
| "Single"
|
|
410
|
-
| "CarrierTaskForce"
|
|
411
|
-
| "SurfaceTaskForce"
|
|
412
|
-
| "TransportEscort"
|
|
413
|
-
| "EnemySingle"
|
|
414
|
-
| "EnemyCombined";
|
|
415
|
-
|
|
416
|
-
export type AirSquadronMode = "Sortie" | "AirDefense";
|
|
417
|
-
|
|
418
|
-
export interface GearState {
|
|
419
|
-
id?: string;
|
|
420
|
-
gear_id: number;
|
|
421
|
-
exp?: number;
|
|
422
|
-
stars?: number;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
export interface ShipState {
|
|
426
|
-
id?: string;
|
|
427
|
-
ship_id: number;
|
|
428
|
-
level?: number;
|
|
429
|
-
current_hp?: number;
|
|
430
|
-
morale?: number;
|
|
431
|
-
ammo?: number;
|
|
432
|
-
fuel?: number;
|
|
433
|
-
max_hp_mod?: number;
|
|
434
|
-
firepower_mod?: number;
|
|
435
|
-
torpedo_mod?: number;
|
|
436
|
-
armor_mod?: number;
|
|
437
|
-
anti_air_mod?: number;
|
|
438
|
-
evasion_mod?: number;
|
|
439
|
-
asw_mod?: number;
|
|
440
|
-
los_mod?: number;
|
|
441
|
-
luck_mod?: number;
|
|
442
|
-
g1?: GearState;
|
|
443
|
-
g2?: GearState;
|
|
444
|
-
g3?: GearState;
|
|
445
|
-
g4?: GearState;
|
|
446
|
-
g5?: GearState;
|
|
447
|
-
gx?: GearState;
|
|
448
|
-
ss1?: number;
|
|
449
|
-
ss2?: number;
|
|
450
|
-
ss3?: number;
|
|
451
|
-
ss4?: number;
|
|
452
|
-
ss5?: number;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
export interface FleetState {
|
|
456
|
-
id?: string;
|
|
457
|
-
len?: number;
|
|
458
|
-
s1?: ShipState;
|
|
459
|
-
s2?: ShipState;
|
|
460
|
-
s3?: ShipState;
|
|
461
|
-
s4?: ShipState;
|
|
462
|
-
s5?: ShipState;
|
|
463
|
-
s6?: ShipState;
|
|
464
|
-
s7?: ShipState;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
export type FleetType = "Main" | "Escort" | "RouteSup" | "BossSup";
|
|
468
|
-
|
|
469
|
-
export interface AirSquadronState {
|
|
470
|
-
id?: string;
|
|
471
|
-
mode?: AirSquadronMode;
|
|
472
|
-
g1?: GearState;
|
|
473
|
-
g2?: GearState;
|
|
474
|
-
g3?: GearState;
|
|
475
|
-
g4?: GearState;
|
|
476
|
-
g5?: GearState;
|
|
477
|
-
gx?: GearState;
|
|
478
|
-
ss1?: number;
|
|
479
|
-
ss2?: number;
|
|
480
|
-
ss3?: number;
|
|
481
|
-
ss4?: number;
|
|
482
|
-
ss5?: number;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
export interface OrgState {
|
|
486
|
-
id?: string;
|
|
487
|
-
f1?: FleetState;
|
|
488
|
-
f2?: FleetState;
|
|
489
|
-
f3?: FleetState;
|
|
490
|
-
f4?: FleetState;
|
|
491
|
-
a1?: AirSquadronState;
|
|
492
|
-
a2?: AirSquadronState;
|
|
493
|
-
a3?: AirSquadronState;
|
|
494
|
-
hq_level?: number;
|
|
495
|
-
org_type?: OrgType;
|
|
496
|
-
sortie?: string;
|
|
497
|
-
route_sup?: string;
|
|
498
|
-
boss_sup?: string;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
export type SpeedGroup = "A" | "B1" | "B2" | "C";
|
|
502
|
-
|
|
503
|
-
export type GearTypes = [number, number, number, number, number];
|
|
504
|
-
|
|
505
|
-
export interface BattleConfig {
|
|
506
|
-
formation: Array<NestedFormationDef>;
|
|
507
|
-
anti_air_cutin: Array<AntiAirCutinDef>;
|
|
508
|
-
day_cutin: Array<DayCutinDef>;
|
|
509
|
-
night_cutin: Array<NightCutinDef>;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
export interface ShipMeta {
|
|
513
|
-
id: string;
|
|
514
|
-
ship_id: number;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
export interface FleetMeta {
|
|
518
|
-
id: string;
|
|
519
|
-
len: number;
|
|
520
|
-
ships: Array<[string, ShipMeta | null]>;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
export interface CompMeta {
|
|
524
|
-
fleets: Record<FleetType, FleetMeta>;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
export interface MasterGear {
|
|
528
|
-
gear_id: number;
|
|
529
|
-
name: string;
|
|
530
|
-
types: GearTypes;
|
|
531
|
-
special_type?: number;
|
|
532
|
-
max_hp?: number;
|
|
533
|
-
firepower?: number;
|
|
534
|
-
armor?: number;
|
|
535
|
-
torpedo?: number;
|
|
536
|
-
anti_air?: number;
|
|
537
|
-
speed?: number;
|
|
538
|
-
bombing?: number;
|
|
539
|
-
asw?: number;
|
|
540
|
-
los?: number;
|
|
541
|
-
luck?: number;
|
|
542
|
-
accuracy?: number;
|
|
543
|
-
evasion?: number;
|
|
544
|
-
range?: number;
|
|
545
|
-
radius?: number;
|
|
546
|
-
cost?: number;
|
|
547
|
-
improvable?: boolean;
|
|
548
|
-
adjusted_anti_air_resistance?: number;
|
|
549
|
-
fleet_anti_air_resistance?: number;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
export interface MasterVariantDef {
|
|
553
|
-
tag: string;
|
|
554
|
-
id: number;
|
|
555
|
-
name: string;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
export interface MasterAttrRule {
|
|
559
|
-
tag: string;
|
|
560
|
-
name: string;
|
|
561
|
-
expr: string;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
export type StatInterval = [number | null, number | null];
|
|
565
|
-
|
|
566
|
-
export interface MasterShip {
|
|
567
|
-
ship_id: number;
|
|
568
|
-
name: string;
|
|
569
|
-
yomi: string;
|
|
570
|
-
stype: number;
|
|
571
|
-
ctype: number;
|
|
572
|
-
sort_id?: number;
|
|
573
|
-
max_hp: StatInterval;
|
|
574
|
-
firepower: StatInterval;
|
|
575
|
-
armor: StatInterval;
|
|
576
|
-
torpedo: StatInterval;
|
|
577
|
-
evasion: StatInterval;
|
|
578
|
-
anti_air: StatInterval;
|
|
579
|
-
asw: StatInterval;
|
|
580
|
-
los: StatInterval;
|
|
581
|
-
luck: StatInterval;
|
|
582
|
-
speed: number;
|
|
583
|
-
range?: number;
|
|
584
|
-
fuel?: number;
|
|
585
|
-
ammo?: number;
|
|
586
|
-
next_id?: number;
|
|
587
|
-
next_level?: number;
|
|
588
|
-
slotnum: number;
|
|
589
|
-
slots: Array<number | null>;
|
|
590
|
-
stock: Array<GearState>;
|
|
591
|
-
speed_group?: SpeedGroup;
|
|
592
|
-
useful?: boolean;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
export interface MasterIBonusRule {
|
|
596
|
-
expr: string;
|
|
597
|
-
formula: string;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
export interface MasterIBonuses {
|
|
601
|
-
shelling_power: Array<MasterIBonusRule>;
|
|
602
|
-
carrier_shelling_power: Array<MasterIBonusRule>;
|
|
603
|
-
shelling_accuracy: Array<MasterIBonusRule>;
|
|
604
|
-
torpedo_power: Array<MasterIBonusRule>;
|
|
605
|
-
torpedo_accuracy: Array<MasterIBonusRule>;
|
|
606
|
-
torpedo_evasion: Array<MasterIBonusRule>;
|
|
607
|
-
asw_power: Array<MasterIBonusRule>;
|
|
608
|
-
asw_accuracy: Array<MasterIBonusRule>;
|
|
609
|
-
night_power: Array<MasterIBonusRule>;
|
|
610
|
-
night_accuracy: Array<MasterIBonusRule>;
|
|
611
|
-
defense_power: Array<MasterIBonusRule>;
|
|
612
|
-
contact_selection: Array<MasterIBonusRule>;
|
|
613
|
-
fighter_power: Array<MasterIBonusRule>;
|
|
614
|
-
adjusted_anti_air: Array<MasterIBonusRule>;
|
|
615
|
-
fleet_anti_air: Array<MasterIBonusRule>;
|
|
616
|
-
elos: Array<MasterIBonusRule>;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
export interface EquipStype {
|
|
620
|
-
id: number;
|
|
621
|
-
equip_type: Array<number>;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
export interface MstEquipShip {
|
|
625
|
-
api_ship_id: number;
|
|
626
|
-
api_equip_type: Array<number>;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
export interface MstEquipExslotShip {
|
|
630
|
-
api_slotitem_id: number;
|
|
631
|
-
api_ship_ids: Array<number>;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
export interface MasterEquippable {
|
|
635
|
-
equip_stype: Array<EquipStype>;
|
|
636
|
-
equip_exslot: Array<number>;
|
|
637
|
-
equip_ship: Array<MstEquipShip>;
|
|
638
|
-
equip_exslot_ship: Array<MstEquipExslotShip>;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
export interface MasterData {
|
|
642
|
-
gears: Array<MasterGear>;
|
|
643
|
-
gear_attrs: Array<MasterAttrRule>;
|
|
644
|
-
ships: Array<MasterShip>;
|
|
645
|
-
ship_attrs: Array<MasterAttrRule>;
|
|
646
|
-
equippable: MasterEquippable;
|
|
647
|
-
ibonuses: MasterIBonuses;
|
|
648
|
-
config: BattleConfig;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
export interface AttackPowerModifier {
|
|
652
|
-
a: number;
|
|
653
|
-
b: number;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
export interface SpecialEnemyModifiers {
|
|
657
|
-
precap_general_mod: AttackPowerModifier;
|
|
658
|
-
stype_mod: AttackPowerModifier;
|
|
659
|
-
landing_craft_synergy_mod: AttackPowerModifier;
|
|
660
|
-
toku_daihatsu_tank_mod: AttackPowerModifier;
|
|
661
|
-
m4a1dd_mod: AttackPowerModifier;
|
|
662
|
-
honi_mod: AttackPowerModifier;
|
|
663
|
-
postcap_general_mod: AttackPowerModifier;
|
|
664
|
-
pt_mod: AttackPowerModifier;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
export interface CustomModifiers {
|
|
668
|
-
precap_mod: AttackPowerModifier;
|
|
669
|
-
postcap_mod: AttackPowerModifier;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
export interface AttackPowerParams {
|
|
673
|
-
basic: number;
|
|
674
|
-
cap: number;
|
|
675
|
-
precap_mod: AttackPowerModifier;
|
|
676
|
-
postcap_mod: AttackPowerModifier;
|
|
677
|
-
ap_shell_mod: number | null;
|
|
678
|
-
carrier_power: number | null;
|
|
679
|
-
proficiency_critical_mod: number | null;
|
|
680
|
-
armor_penetration: number;
|
|
681
|
-
remaining_ammo_mod: number;
|
|
682
|
-
special_enemy_mods: SpecialEnemyModifiers;
|
|
683
|
-
custom_mods: CustomModifiers;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
export interface AttackPower {
|
|
687
|
-
precap: number;
|
|
688
|
-
is_capped: boolean;
|
|
689
|
-
capped: number;
|
|
690
|
-
normal: number;
|
|
691
|
-
critical: number;
|
|
692
|
-
armor_penetration: number;
|
|
693
|
-
remaining_ammo_mod: number;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
export interface HitRateParams {
|
|
697
|
-
accuracy_term: number;
|
|
698
|
-
evasion_term: number;
|
|
699
|
-
target_morale_mod: number;
|
|
700
|
-
critical_rate_constant: number;
|
|
701
|
-
critical_percentage_bonus: number;
|
|
702
|
-
hit_percentage_bonus: number;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
export interface HitRate {
|
|
706
|
-
total: number;
|
|
707
|
-
normal: number;
|
|
708
|
-
critical: number;
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
export interface WarfareShipEnvironment {
|
|
712
|
-
org_type: OrgType;
|
|
713
|
-
role: Role;
|
|
714
|
-
ship_index: number;
|
|
715
|
-
fleet_len: number;
|
|
716
|
-
formation: Formation;
|
|
717
|
-
fleet_los_mod: number | null;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
export interface WarfareContext {
|
|
721
|
-
attacker_env: WarfareShipEnvironment;
|
|
722
|
-
target_env: WarfareShipEnvironment;
|
|
723
|
-
engagement: Engagement;
|
|
724
|
-
air_state: AirState;
|
|
725
|
-
custom_mods: CustomModifiers;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
export interface NightSituation {
|
|
729
|
-
night_contact_rank: ContactRank | null;
|
|
730
|
-
starshell: boolean;
|
|
731
|
-
searchlight: boolean;
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
export type ShellingAttackType = "Normal" | "Carrier";
|
|
735
|
-
|
|
736
|
-
export type AswAttackType = "DepthCharge" | "Aircraft";
|
|
737
|
-
|
|
738
|
-
export type DayBattleAttackType =
|
|
739
|
-
| { t: "Shelling"; c: ShellingAttackType }
|
|
740
|
-
| { t: "Asw"; c: AswAttackType };
|
|
741
|
-
|
|
742
|
-
export type NightBattleAttackType =
|
|
743
|
-
| { t: "NightAttack"; c: NightAttackType }
|
|
744
|
-
| { t: "Asw"; c: AswAttackType };
|
|
745
|
-
|
|
746
|
-
export interface DayCutinRateInfo {
|
|
747
|
-
observation_term: number | null;
|
|
748
|
-
rates: Array<[DayCutin | null, number | null]>;
|
|
749
|
-
total_cutin_rate: number | null;
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
export interface ShipDayCutinRateInfo {
|
|
753
|
-
ship_id: number;
|
|
754
|
-
air_supremacy: DayCutinRateInfo;
|
|
755
|
-
air_superiority: DayCutinRateInfo;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
export interface FleetDayCutinRateInfo {
|
|
759
|
-
fleet_los_mod: number | null;
|
|
760
|
-
ships: Array<ShipDayCutinRateInfo>;
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
export interface CompDayCutinRateInfo {
|
|
764
|
-
main: FleetDayCutinRateInfo;
|
|
765
|
-
escort: FleetDayCutinRateInfo | null;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
export interface ShipAntiAirInfo {
|
|
769
|
-
ship_id: number;
|
|
770
|
-
adjusted_anti_air: number | null;
|
|
771
|
-
proportional_shotdown_rate: number | null;
|
|
772
|
-
fixed_shotdown_number: number | null;
|
|
773
|
-
minimum_bonus: number | null;
|
|
774
|
-
anti_air_cutin_chance: Array<[number, number]>;
|
|
775
|
-
anti_air_propellant_barrage_chance: number | null;
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
export interface CompAntiAirInfo {
|
|
779
|
-
fleet_anti_air: number;
|
|
780
|
-
ships: Array<ShipAntiAirInfo>;
|
|
781
|
-
anti_air_cutin_chance: Array<[number, number]>;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
export interface NightCutinRateInfo {
|
|
785
|
-
cutin_term: number | null;
|
|
786
|
-
rates: Array<[NightCutin | null, number | null]>;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
export interface ShipNightCutinRateInfo {
|
|
790
|
-
ship_id: number;
|
|
791
|
-
normal: NightCutinRateInfo;
|
|
792
|
-
chuuha: NightCutinRateInfo;
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
export interface NightContactChance {
|
|
796
|
-
rank1: number;
|
|
797
|
-
rank2: number;
|
|
798
|
-
rank3: number;
|
|
799
|
-
total: number;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
export interface FleetNightCutinRateInfo {
|
|
803
|
-
night_contact_chance: NightContactChance;
|
|
804
|
-
ships: Array<ShipNightCutinRateInfo>;
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
export interface AirstrikeContactChance {
|
|
808
|
-
air_state: AirState;
|
|
809
|
-
trigger_rate: number;
|
|
810
|
-
rank3: number;
|
|
811
|
-
rank2: number;
|
|
812
|
-
rank1: number;
|
|
813
|
-
total: number;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
export interface CompContactChanceInfo {
|
|
817
|
-
single: Array<AirstrikeContactChance> | null;
|
|
818
|
-
combined: Array<AirstrikeContactChance> | null;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
export interface AttackStats {
|
|
822
|
-
attack_power: AttackPower | null;
|
|
823
|
-
attack_power_params: AttackPowerParams | null;
|
|
824
|
-
hits: number;
|
|
825
|
-
hit_rate: HitRate | null;
|
|
826
|
-
hit_rate_params: HitRateParams | null;
|
|
827
|
-
damage: DamageInfo | null;
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
export interface AttackInfoItem<Cutin> {
|
|
831
|
-
cutin: Cutin;
|
|
832
|
-
rate: number | null;
|
|
833
|
-
stats: AttackStats;
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
export interface AttackInfo<AttackType, Cutin> {
|
|
837
|
-
attack_type: AttackType;
|
|
838
|
-
items: Array<AttackInfoItem<Cutin>>;
|
|
839
|
-
damage_state_map: Record<DamageState, number> | null;
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
export interface DamageInfo {
|
|
843
|
-
miss_damage_min: number;
|
|
844
|
-
miss_damage_max: number;
|
|
845
|
-
normal_damage_min: number;
|
|
846
|
-
normal_damage_max: number;
|
|
847
|
-
critical_damage_min: number;
|
|
848
|
-
critical_damage_max: number;
|
|
849
|
-
normal_scratch_rate: number;
|
|
850
|
-
critical_scratch_rate: number;
|
|
851
|
-
damage_map: Record<number, number>;
|
|
852
|
-
damage_state_map: Record<DamageState, number>;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
export interface WarfareAnalyzerShipEnvironment {
|
|
856
|
-
org_type: OrgType;
|
|
857
|
-
role: Role;
|
|
858
|
-
ship_index: number;
|
|
859
|
-
fleet_len: number;
|
|
860
|
-
formation: Formation;
|
|
861
|
-
fleet_los_mod: number | null;
|
|
862
|
-
night_situation: NightSituation;
|
|
863
|
-
custom_mods: CustomModifiers;
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
export interface WarfareAnalyzerContext {
|
|
867
|
-
attacker_env: WarfareAnalyzerShipEnvironment;
|
|
868
|
-
target_env: WarfareAnalyzerShipEnvironment;
|
|
869
|
-
engagement: Engagement;
|
|
870
|
-
air_state: AirState;
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
export interface WarfareInfo {
|
|
874
|
-
day: AttackInfo<DayBattleAttackType, DayCutin | null> | null;
|
|
875
|
-
closing_torpedo: AttackInfo<null, null> | null;
|
|
876
|
-
night: AttackInfo<NightBattleAttackType, NightCutin | null> | null;
|
|
877
|
-
shelling_support: AttackInfo<null, null> | null;
|
|
878
|
-
opening_asw: AttackInfo<null, null> | null;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
export interface FleetCutinInfoItem {
|
|
882
|
-
ship_id: number;
|
|
883
|
-
cutin: FleetCutin;
|
|
884
|
-
fleet_cutin_mod: number;
|
|
885
|
-
stats: AttackStats;
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
export interface FleetCutinInfo {
|
|
889
|
-
cutin: FleetCutin;
|
|
890
|
-
formation: Formation;
|
|
891
|
-
items: Array<FleetCutinInfoItem>;
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
export interface FleetCutinAnalysis {
|
|
895
|
-
shelling: Array<FleetCutinInfo>;
|
|
896
|
-
night: Array<FleetCutinInfo>;
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
export interface ShellingSupportSimulatorParams {
|
|
900
|
-
attacker_formation: Formation;
|
|
901
|
-
target_formation: Formation;
|
|
902
|
-
engagement: Engagement;
|
|
903
|
-
custom_mods: CustomModifiers;
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
export interface SimulatorResultItem {
|
|
907
|
-
id: string;
|
|
908
|
-
role: Role;
|
|
909
|
-
index: number;
|
|
910
|
-
damage_state_map: Record<DamageState, number>;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
export interface SimulatorResult {
|
|
914
|
-
items: Array<SimulatorResultItem>;
|
|
915
|
-
sunk_vec: Array<[number, number, number]>;
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
export type ShipKey = "s1" | "s2" | "s3" | "s4" | "s5" | "s6" | "s7";
|