fleethub-core 1.7.0 → 1.7.1
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 +150 -139
- package/node/fleethub_core.js +89 -67
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +5 -3
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +150 -139
- package/pkg/fleethub_core_bg.js +89 -67
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +5 -3
package/node/fleethub_core.d.ts
CHANGED
|
@@ -65,6 +65,8 @@ export type ShellingAttackType = "Normal" | "Carrier";
|
|
|
65
65
|
|
|
66
66
|
export type AirWaveType = "Jet" | "LandBase" | "Carrier";
|
|
67
67
|
|
|
68
|
+
export type AswAttackType = "DepthCharge" | "Aircraft";
|
|
69
|
+
|
|
68
70
|
export type OrgType =
|
|
69
71
|
| "Single"
|
|
70
72
|
| "CarrierTaskForce"
|
|
@@ -73,6 +75,14 @@ export type OrgType =
|
|
|
73
75
|
| "EnemySingle"
|
|
74
76
|
| "EnemyCombined";
|
|
75
77
|
|
|
78
|
+
export type FleetCutin =
|
|
79
|
+
| "NelsonTouch"
|
|
80
|
+
| "NagatoCutin"
|
|
81
|
+
| "ColoradoCutin"
|
|
82
|
+
| "KongouCutin"
|
|
83
|
+
| "Yamato2ShipCutin"
|
|
84
|
+
| "Yamato3ShipCutin";
|
|
85
|
+
|
|
76
86
|
export interface WarfareContext {
|
|
77
87
|
attacker_env: WarfareShipEnvironment;
|
|
78
88
|
target_env: WarfareShipEnvironment;
|
|
@@ -90,6 +100,8 @@ export interface WarfareShipEnvironment {
|
|
|
90
100
|
fleet_los_mod: number | null;
|
|
91
101
|
}
|
|
92
102
|
|
|
103
|
+
export type Role = "Main" | "Escort";
|
|
104
|
+
|
|
93
105
|
export interface CompMeta {
|
|
94
106
|
fleets: Record<FleetType, FleetMeta>;
|
|
95
107
|
}
|
|
@@ -151,10 +163,6 @@ export interface AttackPowerModifier {
|
|
|
151
163
|
b: number;
|
|
152
164
|
}
|
|
153
165
|
|
|
154
|
-
export type NumMap<K, V> = Partial<Record<K, V>>;
|
|
155
|
-
|
|
156
|
-
export type Role = "Main" | "Escort";
|
|
157
|
-
|
|
158
166
|
export interface MasterData {
|
|
159
167
|
gears: MasterGear[];
|
|
160
168
|
gear_attrs: MasterAttrRule<GearAttr>[];
|
|
@@ -181,6 +189,30 @@ export interface MasterAttrRule<T> {
|
|
|
181
189
|
expr: string;
|
|
182
190
|
}
|
|
183
191
|
|
|
192
|
+
export interface CompDayCutinRateInfo {
|
|
193
|
+
main: FleetDayCutinRateInfo;
|
|
194
|
+
escort: FleetDayCutinRateInfo | null;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export interface FleetDayCutinRateInfo {
|
|
198
|
+
fleet_los_mod: number | null;
|
|
199
|
+
ships: ShipDayCutinRateInfo[];
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export interface ShipDayCutinRateInfo {
|
|
203
|
+
ship_id: number;
|
|
204
|
+
air_supremacy: DayCutinRateInfo;
|
|
205
|
+
air_superiority: DayCutinRateInfo;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface DayCutinRateInfo {
|
|
209
|
+
observation_term: number | null;
|
|
210
|
+
rates: [DayCutin | null, number | null][];
|
|
211
|
+
total_cutin_rate: number | null;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export type NumMap<K, V> = Partial<Record<K, V>>;
|
|
215
|
+
|
|
184
216
|
export type GearCategory =
|
|
185
217
|
| "Fighter"
|
|
186
218
|
| "Bomber"
|
|
@@ -258,28 +290,6 @@ export type GearType =
|
|
|
258
290
|
|
|
259
291
|
export type Engagement = "GreenT" | "Parallel" | "HeadOn" | "RedT";
|
|
260
292
|
|
|
261
|
-
export interface CompDayCutinRateInfo {
|
|
262
|
-
main: FleetDayCutinRateInfo;
|
|
263
|
-
escort: FleetDayCutinRateInfo | null;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export interface FleetDayCutinRateInfo {
|
|
267
|
-
fleet_los_mod: number | null;
|
|
268
|
-
ships: ShipDayCutinRateInfo[];
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
export interface ShipDayCutinRateInfo {
|
|
272
|
-
ship_id: number;
|
|
273
|
-
air_supremacy: DayCutinRateInfo;
|
|
274
|
-
air_superiority: DayCutinRateInfo;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
export interface DayCutinRateInfo {
|
|
278
|
-
observation_term: number | null;
|
|
279
|
-
rates: [DayCutin | null, number | null][];
|
|
280
|
-
total_cutin_rate: number | null;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
293
|
export interface EBonuses {
|
|
284
294
|
firepower: number;
|
|
285
295
|
torpedo: number;
|
|
@@ -320,22 +330,6 @@ export interface GearInput {
|
|
|
320
330
|
|
|
321
331
|
export type GearVecInput = GearInput[];
|
|
322
332
|
|
|
323
|
-
export type ShipAttr =
|
|
324
|
-
| "Unknown"
|
|
325
|
-
| "Abyssal"
|
|
326
|
-
| "NightCarrier"
|
|
327
|
-
| "Installation"
|
|
328
|
-
| "RoyalNavy"
|
|
329
|
-
| "Kai2"
|
|
330
|
-
| "TurbineSpeedBonus"
|
|
331
|
-
| "Pillbox"
|
|
332
|
-
| "IsolatedIsland"
|
|
333
|
-
| "HarbourSummerPrincess"
|
|
334
|
-
| "SupplyDepot"
|
|
335
|
-
| "PtImp"
|
|
336
|
-
| "BattleshipSummerPrincess"
|
|
337
|
-
| "HeavyCruiserSummerPrincess";
|
|
338
|
-
|
|
339
333
|
export type AirStateRank = "Rank0" | "Rank1" | "Rank2" | "Rank3";
|
|
340
334
|
|
|
341
335
|
export type AirState =
|
|
@@ -407,36 +401,21 @@ export interface DamageInfo {
|
|
|
407
401
|
damage_state_map: NumMap<DamageState, number>;
|
|
408
402
|
}
|
|
409
403
|
|
|
410
|
-
export type
|
|
404
|
+
export type ShipAttr =
|
|
411
405
|
| "Unknown"
|
|
412
406
|
| "Abyssal"
|
|
413
|
-
| "
|
|
414
|
-
| "
|
|
415
|
-
| "
|
|
416
|
-
| "
|
|
417
|
-
| "
|
|
418
|
-
| "
|
|
419
|
-
| "
|
|
420
|
-
| "
|
|
421
|
-
| "
|
|
422
|
-
| "
|
|
423
|
-
| "
|
|
424
|
-
| "
|
|
425
|
-
| "AntiSubAircraft"
|
|
426
|
-
| "LateModelBowTorpedo"
|
|
427
|
-
| "Seaplane"
|
|
428
|
-
| "CbAircraft"
|
|
429
|
-
| "LbAircraft"
|
|
430
|
-
| "JetAircraft"
|
|
431
|
-
| "Fighter"
|
|
432
|
-
| "Recon"
|
|
433
|
-
| "ObservationSeaplane"
|
|
434
|
-
| "CbFighterBomber"
|
|
435
|
-
| "AntiInstDiveBomber"
|
|
436
|
-
| "NightRecon"
|
|
437
|
-
| "CbSwordfish"
|
|
438
|
-
| "SemiNightPlane"
|
|
439
|
-
| "HighAltitudeInterceptor";
|
|
407
|
+
| "NightCarrier"
|
|
408
|
+
| "Installation"
|
|
409
|
+
| "RoyalNavy"
|
|
410
|
+
| "Kai2"
|
|
411
|
+
| "TurbineSpeedBonus"
|
|
412
|
+
| "Pillbox"
|
|
413
|
+
| "IsolatedIsland"
|
|
414
|
+
| "HarbourSummerPrincess"
|
|
415
|
+
| "SupplyDepot"
|
|
416
|
+
| "PtImp"
|
|
417
|
+
| "BattleshipSummerPrincess"
|
|
418
|
+
| "HeavyCruiserSummerPrincess";
|
|
440
419
|
|
|
441
420
|
export type Formation = SingleFormation | CombinedFormation;
|
|
442
421
|
|
|
@@ -488,28 +467,36 @@ export interface AirstrikeContactChance {
|
|
|
488
467
|
|
|
489
468
|
export type SlotSizeVec = (number | null)[];
|
|
490
469
|
|
|
491
|
-
export type
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
|
495
|
-
|
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
| "
|
|
499
|
-
| "
|
|
500
|
-
| "
|
|
501
|
-
| "
|
|
502
|
-
| "
|
|
503
|
-
| "
|
|
504
|
-
| "
|
|
505
|
-
| "
|
|
506
|
-
| "
|
|
507
|
-
| "
|
|
508
|
-
| "
|
|
509
|
-
| "
|
|
510
|
-
| "
|
|
511
|
-
| "
|
|
512
|
-
| "
|
|
470
|
+
export type GearAttr =
|
|
471
|
+
| "Unknown"
|
|
472
|
+
| "Abyssal"
|
|
473
|
+
| "HighAngleMount"
|
|
474
|
+
| "NightFighter"
|
|
475
|
+
| "NightAttacker"
|
|
476
|
+
| "HeavyBomber"
|
|
477
|
+
| "MainGun"
|
|
478
|
+
| "Radar"
|
|
479
|
+
| "SurfaceRadar"
|
|
480
|
+
| "AirRadar"
|
|
481
|
+
| "DepthChargeProjector"
|
|
482
|
+
| "SynergisticDepthCharge"
|
|
483
|
+
| "AntiSubMortar"
|
|
484
|
+
| "AntiSubWeapon"
|
|
485
|
+
| "AntiSubAircraft"
|
|
486
|
+
| "LateModelBowTorpedo"
|
|
487
|
+
| "Seaplane"
|
|
488
|
+
| "CbAircraft"
|
|
489
|
+
| "LbAircraft"
|
|
490
|
+
| "JetAircraft"
|
|
491
|
+
| "Fighter"
|
|
492
|
+
| "Recon"
|
|
493
|
+
| "ObservationSeaplane"
|
|
494
|
+
| "CbFighterBomber"
|
|
495
|
+
| "AntiInstDiveBomber"
|
|
496
|
+
| "NightRecon"
|
|
497
|
+
| "CbSwordfish"
|
|
498
|
+
| "SemiNightPlane"
|
|
499
|
+
| "HighAltitudeInterceptor";
|
|
513
500
|
|
|
514
501
|
export interface MasterGear {
|
|
515
502
|
gear_id: number;
|
|
@@ -695,38 +682,28 @@ export interface GearState {
|
|
|
695
682
|
stars?: number;
|
|
696
683
|
}
|
|
697
684
|
|
|
698
|
-
export
|
|
699
|
-
ship_id: number;
|
|
700
|
-
name: string;
|
|
701
|
-
yomi: string;
|
|
702
|
-
stype: number;
|
|
703
|
-
ctype: number;
|
|
704
|
-
sort_id?: number;
|
|
705
|
-
max_hp: StatInterval;
|
|
706
|
-
firepower: StatInterval;
|
|
707
|
-
armor: StatInterval;
|
|
708
|
-
torpedo: StatInterval;
|
|
709
|
-
evasion: StatInterval;
|
|
710
|
-
anti_air: StatInterval;
|
|
711
|
-
asw: StatInterval;
|
|
712
|
-
los: StatInterval;
|
|
713
|
-
luck: StatInterval;
|
|
714
|
-
torpedo_accuracy?: number;
|
|
715
|
-
basic_evasion_term?: number;
|
|
716
|
-
speed: number;
|
|
717
|
-
range?: number;
|
|
718
|
-
fuel?: number;
|
|
719
|
-
ammo?: number;
|
|
720
|
-
next_id?: number;
|
|
721
|
-
next_level?: number;
|
|
722
|
-
slotnum: number;
|
|
723
|
-
slots: SlotSizeVec;
|
|
724
|
-
stock: GearState[];
|
|
725
|
-
speed_group?: SpeedGroup;
|
|
726
|
-
useful?: boolean;
|
|
727
|
-
}
|
|
685
|
+
export type NightAttackType = "Normal" | "ArkRoyal" | "Carrier";
|
|
728
686
|
|
|
729
|
-
export type
|
|
687
|
+
export type NightSpecialAttack =
|
|
688
|
+
| { NightCutin: NightCutin }
|
|
689
|
+
| { FleetCutin: FleetCutin };
|
|
690
|
+
|
|
691
|
+
export type NightCutin =
|
|
692
|
+
| "MainTorpRadar"
|
|
693
|
+
| "TorpLookoutRadar"
|
|
694
|
+
| "TorpTsloTorp"
|
|
695
|
+
| "TorpTsloDrum"
|
|
696
|
+
| "DoubleAttack"
|
|
697
|
+
| "TorpTorpMain"
|
|
698
|
+
| "TorpTorpTorp"
|
|
699
|
+
| "MainMainSec"
|
|
700
|
+
| "MainMainMain"
|
|
701
|
+
| "SubTorpTorp"
|
|
702
|
+
| "SubRadarTorp"
|
|
703
|
+
| "Cvci1_25"
|
|
704
|
+
| "Cvci1_20"
|
|
705
|
+
| "Cvci1_18"
|
|
706
|
+
| "Photobomber";
|
|
730
707
|
|
|
731
708
|
export interface WarfareInfo {
|
|
732
709
|
day: AttackInfo<DayBattleAttackType, DayCutin | null> | null;
|
|
@@ -754,10 +731,6 @@ export interface WarfareAnalyzerShipEnvironment {
|
|
|
754
731
|
custom_mods: CustomModifiers;
|
|
755
732
|
}
|
|
756
733
|
|
|
757
|
-
export type GearTypeIdArray = [number, number, number, number, number];
|
|
758
|
-
|
|
759
|
-
export type Side = "Player" | "Enemy";
|
|
760
|
-
|
|
761
734
|
export interface BattleConfig {
|
|
762
735
|
formation: Record<Formation, NestedFormationDef>;
|
|
763
736
|
anti_air_cutin: Record<number, AntiAirCutinDef>;
|
|
@@ -810,6 +783,43 @@ export interface FormationWarfareDef {
|
|
|
810
783
|
evasion_mod: number | null;
|
|
811
784
|
}
|
|
812
785
|
|
|
786
|
+
export interface MasterShip {
|
|
787
|
+
ship_id: number;
|
|
788
|
+
name: string;
|
|
789
|
+
yomi: string;
|
|
790
|
+
stype: number;
|
|
791
|
+
ctype: number;
|
|
792
|
+
sort_id?: number;
|
|
793
|
+
max_hp: StatInterval;
|
|
794
|
+
firepower: StatInterval;
|
|
795
|
+
armor: StatInterval;
|
|
796
|
+
torpedo: StatInterval;
|
|
797
|
+
evasion: StatInterval;
|
|
798
|
+
anti_air: StatInterval;
|
|
799
|
+
asw: StatInterval;
|
|
800
|
+
los: StatInterval;
|
|
801
|
+
luck: StatInterval;
|
|
802
|
+
torpedo_accuracy?: number;
|
|
803
|
+
basic_evasion_term?: number;
|
|
804
|
+
speed: number;
|
|
805
|
+
range?: number;
|
|
806
|
+
fuel?: number;
|
|
807
|
+
ammo?: number;
|
|
808
|
+
next_id?: number;
|
|
809
|
+
next_level?: number;
|
|
810
|
+
slotnum: number;
|
|
811
|
+
slots: SlotSizeVec;
|
|
812
|
+
stock: GearState[];
|
|
813
|
+
speed_group?: SpeedGroup;
|
|
814
|
+
useful?: boolean;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export type StatInterval = [number | null, number | null];
|
|
818
|
+
|
|
819
|
+
export type GearTypeIdArray = [number, number, number, number, number];
|
|
820
|
+
|
|
821
|
+
export type Side = "Player" | "Enemy";
|
|
822
|
+
|
|
813
823
|
export type SpecialEnemyType =
|
|
814
824
|
| "None"
|
|
815
825
|
| "SoftSkinned"
|
|
@@ -827,12 +837,6 @@ export type DamageState = "Normal" | "Shouha" | "Chuuha" | "Taiha" | "Sunk";
|
|
|
827
837
|
|
|
828
838
|
export type SpeedGroup = "A" | "B1" | "B2" | "C";
|
|
829
839
|
|
|
830
|
-
export type FleetCutin =
|
|
831
|
-
| "NelsonTouch"
|
|
832
|
-
| "NagatoCutin"
|
|
833
|
-
| "ColoradoCutin"
|
|
834
|
-
| "KongouCutin";
|
|
835
|
-
|
|
836
840
|
export type ContactRank = "Rank1" | "Rank2" | "Rank3";
|
|
837
841
|
|
|
838
842
|
export interface SimulatorResult {
|
|
@@ -847,8 +851,6 @@ export interface SimulatorResultItem {
|
|
|
847
851
|
damage_state_map: Record<DamageState, number>;
|
|
848
852
|
}
|
|
849
853
|
|
|
850
|
-
export type AswAttackType = "DepthCharge" | "Aircraft";
|
|
851
|
-
|
|
852
854
|
export interface FleetNightCutinRateInfo {
|
|
853
855
|
night_contact_chance: NightContactChance;
|
|
854
856
|
ships: ShipNightCutinRateInfo[];
|
|
@@ -1269,6 +1271,10 @@ export class Gear {
|
|
|
1269
1271
|
* @returns {GearCategory}
|
|
1270
1272
|
*/
|
|
1271
1273
|
category(): GearCategory;
|
|
1274
|
+
/**
|
|
1275
|
+
* @returns {boolean}
|
|
1276
|
+
*/
|
|
1277
|
+
is_high_angle_mount(): boolean;
|
|
1272
1278
|
/**
|
|
1273
1279
|
* @returns {boolean}
|
|
1274
1280
|
*/
|
|
@@ -1853,6 +1859,11 @@ export class Ship {
|
|
|
1853
1859
|
* @returns {number | undefined}
|
|
1854
1860
|
*/
|
|
1855
1861
|
elos(node_divaricated_factor: number): number | undefined;
|
|
1862
|
+
/**
|
|
1863
|
+
* 確殺攻撃力
|
|
1864
|
+
* @returns {number | undefined}
|
|
1865
|
+
*/
|
|
1866
|
+
ohko_power(): number | undefined;
|
|
1856
1867
|
/**
|
|
1857
1868
|
* @param {number} value
|
|
1858
1869
|
*/
|
|
@@ -1896,6 +1907,10 @@ export class Ship {
|
|
|
1896
1907
|
/**
|
|
1897
1908
|
*/
|
|
1898
1909
|
id: string;
|
|
1910
|
+
/**
|
|
1911
|
+
* @returns {number}
|
|
1912
|
+
*/
|
|
1913
|
+
readonly innate_torpedo_accuracy: number;
|
|
1899
1914
|
/**
|
|
1900
1915
|
*/
|
|
1901
1916
|
level: number;
|
|
@@ -1999,10 +2014,6 @@ export class Ship {
|
|
|
1999
2014
|
* @returns {number | undefined}
|
|
2000
2015
|
*/
|
|
2001
2016
|
readonly torpedo: number | undefined;
|
|
2002
|
-
/**
|
|
2003
|
-
* @returns {number}
|
|
2004
|
-
*/
|
|
2005
|
-
readonly torpedo_accuracy_mod: number;
|
|
2006
2017
|
/**
|
|
2007
2018
|
* @returns {boolean}
|
|
2008
2019
|
*/
|
package/node/fleethub_core.js
CHANGED
|
@@ -2,11 +2,15 @@ let imports = {};
|
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
4
|
const { createEquipmentBonuses } = require(`equipment-bonus`);
|
|
5
|
-
const {
|
|
5
|
+
const { TextEncoder, TextDecoder } = require(`util`);
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const heap = new Array(32).fill(undefined);
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
heap.push(undefined, null, true, false);
|
|
10
|
+
|
|
11
|
+
function getObject(idx) { return heap[idx]; }
|
|
12
|
+
|
|
13
|
+
let WASM_VECTOR_LEN = 0;
|
|
10
14
|
|
|
11
15
|
let cachegetUint8Memory0 = null;
|
|
12
16
|
function getUint8Memory0() {
|
|
@@ -16,41 +20,6 @@ function getUint8Memory0() {
|
|
|
16
20
|
return cachegetUint8Memory0;
|
|
17
21
|
}
|
|
18
22
|
|
|
19
|
-
function getStringFromWasm0(ptr, len) {
|
|
20
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const heap = new Array(32).fill(undefined);
|
|
24
|
-
|
|
25
|
-
heap.push(undefined, null, true, false);
|
|
26
|
-
|
|
27
|
-
let heap_next = heap.length;
|
|
28
|
-
|
|
29
|
-
function addHeapObject(obj) {
|
|
30
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
31
|
-
const idx = heap_next;
|
|
32
|
-
heap_next = heap[idx];
|
|
33
|
-
|
|
34
|
-
heap[idx] = obj;
|
|
35
|
-
return idx;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function getObject(idx) { return heap[idx]; }
|
|
39
|
-
|
|
40
|
-
function dropObject(idx) {
|
|
41
|
-
if (idx < 36) return;
|
|
42
|
-
heap[idx] = heap_next;
|
|
43
|
-
heap_next = idx;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function takeObject(idx) {
|
|
47
|
-
const ret = getObject(idx);
|
|
48
|
-
dropObject(idx);
|
|
49
|
-
return ret;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
let WASM_VECTOR_LEN = 0;
|
|
53
|
-
|
|
54
23
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
55
24
|
|
|
56
25
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -112,6 +81,37 @@ function getInt32Memory0() {
|
|
|
112
81
|
return cachegetInt32Memory0;
|
|
113
82
|
}
|
|
114
83
|
|
|
84
|
+
let heap_next = heap.length;
|
|
85
|
+
|
|
86
|
+
function dropObject(idx) {
|
|
87
|
+
if (idx < 36) return;
|
|
88
|
+
heap[idx] = heap_next;
|
|
89
|
+
heap_next = idx;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function takeObject(idx) {
|
|
93
|
+
const ret = getObject(idx);
|
|
94
|
+
dropObject(idx);
|
|
95
|
+
return ret;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
99
|
+
|
|
100
|
+
cachedTextDecoder.decode();
|
|
101
|
+
|
|
102
|
+
function getStringFromWasm0(ptr, len) {
|
|
103
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function addHeapObject(obj) {
|
|
107
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
108
|
+
const idx = heap_next;
|
|
109
|
+
heap_next = heap[idx];
|
|
110
|
+
|
|
111
|
+
heap[idx] = obj;
|
|
112
|
+
return idx;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
115
|
const u32CvtShim = new Uint32Array(2);
|
|
116
116
|
|
|
117
117
|
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
|
|
@@ -926,7 +926,7 @@ class Fleet {
|
|
|
926
926
|
get xxh3() {
|
|
927
927
|
try {
|
|
928
928
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
929
|
-
wasm.
|
|
929
|
+
wasm.__wbg_get_airsquadron_xxh3(retptr, this.ptr);
|
|
930
930
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
931
931
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
932
932
|
u32CvtShim[0] = r0;
|
|
@@ -944,7 +944,7 @@ class Fleet {
|
|
|
944
944
|
uint64CvtShim[0] = arg0;
|
|
945
945
|
const low0 = u32CvtShim[0];
|
|
946
946
|
const high0 = u32CvtShim[1];
|
|
947
|
-
wasm.
|
|
947
|
+
wasm.__wbg_set_airsquadron_xxh3(this.ptr, low0, high0);
|
|
948
948
|
}
|
|
949
949
|
/**
|
|
950
950
|
*/
|
|
@@ -1633,6 +1633,13 @@ class Gear {
|
|
|
1633
1633
|
/**
|
|
1634
1634
|
* @returns {boolean}
|
|
1635
1635
|
*/
|
|
1636
|
+
is_high_angle_mount() {
|
|
1637
|
+
const ret = wasm.gear_is_high_angle_mount(this.ptr);
|
|
1638
|
+
return ret !== 0;
|
|
1639
|
+
}
|
|
1640
|
+
/**
|
|
1641
|
+
* @returns {boolean}
|
|
1642
|
+
*/
|
|
1636
1643
|
is_carrier_shelling_plane() {
|
|
1637
1644
|
const ret = wasm.gear_is_carrier_shelling_plane(this.ptr);
|
|
1638
1645
|
return ret !== 0;
|
|
@@ -3061,8 +3068,8 @@ class Ship {
|
|
|
3061
3068
|
/**
|
|
3062
3069
|
* @returns {number}
|
|
3063
3070
|
*/
|
|
3064
|
-
get
|
|
3065
|
-
const ret = wasm.
|
|
3071
|
+
get innate_torpedo_accuracy() {
|
|
3072
|
+
const ret = wasm.ship_innate_torpedo_accuracy(this.ptr);
|
|
3066
3073
|
return ret;
|
|
3067
3074
|
}
|
|
3068
3075
|
/**
|
|
@@ -3236,6 +3243,21 @@ class Ship {
|
|
|
3236
3243
|
}
|
|
3237
3244
|
}
|
|
3238
3245
|
/**
|
|
3246
|
+
* 確殺攻撃力
|
|
3247
|
+
* @returns {number | undefined}
|
|
3248
|
+
*/
|
|
3249
|
+
ohko_power() {
|
|
3250
|
+
try {
|
|
3251
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3252
|
+
wasm.ship_ohko_power(retptr, this.ptr);
|
|
3253
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
3254
|
+
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
3255
|
+
return r0 === 0 ? undefined : r2;
|
|
3256
|
+
} finally {
|
|
3257
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3258
|
+
}
|
|
3259
|
+
}
|
|
3260
|
+
/**
|
|
3239
3261
|
* @param {number} value
|
|
3240
3262
|
*/
|
|
3241
3263
|
take_damage(value) {
|
|
@@ -3244,15 +3266,6 @@ class Ship {
|
|
|
3244
3266
|
}
|
|
3245
3267
|
module.exports.Ship = Ship;
|
|
3246
3268
|
|
|
3247
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
3248
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
3249
|
-
return addHeapObject(ret);
|
|
3250
|
-
};
|
|
3251
|
-
|
|
3252
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
3253
|
-
takeObject(arg0);
|
|
3254
|
-
};
|
|
3255
|
-
|
|
3256
3269
|
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
3257
3270
|
const obj = getObject(arg1);
|
|
3258
3271
|
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -3262,7 +3275,16 @@ module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
|
3262
3275
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3263
3276
|
};
|
|
3264
3277
|
|
|
3265
|
-
module.exports.
|
|
3278
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
3279
|
+
takeObject(arg0);
|
|
3280
|
+
};
|
|
3281
|
+
|
|
3282
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
3283
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3284
|
+
return addHeapObject(ret);
|
|
3285
|
+
};
|
|
3286
|
+
|
|
3287
|
+
module.exports.__wbg_createEquipmentBonuses_2a069c9b82b680dc = function(arg0, arg1) {
|
|
3266
3288
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
3267
3289
|
return addHeapObject(ret);
|
|
3268
3290
|
};
|
|
@@ -3298,7 +3320,15 @@ module.exports.__wbg_error_09919627ac0992f5 = function(arg0, arg1) {
|
|
|
3298
3320
|
}
|
|
3299
3321
|
};
|
|
3300
3322
|
|
|
3301
|
-
module.exports.
|
|
3323
|
+
module.exports.__wbg_randomFillSync_91e2b39becca6147 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3324
|
+
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
3325
|
+
}, arguments) };
|
|
3326
|
+
|
|
3327
|
+
module.exports.__wbg_getRandomValues_b14734aa289bc356 = function() { return handleError(function (arg0, arg1) {
|
|
3328
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3329
|
+
}, arguments) };
|
|
3330
|
+
|
|
3331
|
+
module.exports.__wbg_process_e56fd54cf6319b6c = function(arg0) {
|
|
3302
3332
|
const ret = getObject(arg0).process;
|
|
3303
3333
|
return addHeapObject(ret);
|
|
3304
3334
|
};
|
|
@@ -3309,12 +3339,12 @@ module.exports.__wbindgen_is_object = function(arg0) {
|
|
|
3309
3339
|
return ret;
|
|
3310
3340
|
};
|
|
3311
3341
|
|
|
3312
|
-
module.exports.
|
|
3342
|
+
module.exports.__wbg_versions_77e21455908dad33 = function(arg0) {
|
|
3313
3343
|
const ret = getObject(arg0).versions;
|
|
3314
3344
|
return addHeapObject(ret);
|
|
3315
3345
|
};
|
|
3316
3346
|
|
|
3317
|
-
module.exports.
|
|
3347
|
+
module.exports.__wbg_node_0dd25d832e4785d5 = function(arg0) {
|
|
3318
3348
|
const ret = getObject(arg0).node;
|
|
3319
3349
|
return addHeapObject(ret);
|
|
3320
3350
|
};
|
|
@@ -3324,34 +3354,26 @@ module.exports.__wbindgen_is_string = function(arg0) {
|
|
|
3324
3354
|
return ret;
|
|
3325
3355
|
};
|
|
3326
3356
|
|
|
3327
|
-
module.exports.
|
|
3357
|
+
module.exports.__wbg_static_accessor_NODE_MODULE_26b231378c1be7dd = function() {
|
|
3328
3358
|
const ret = module;
|
|
3329
3359
|
return addHeapObject(ret);
|
|
3330
3360
|
};
|
|
3331
3361
|
|
|
3332
|
-
module.exports.
|
|
3362
|
+
module.exports.__wbg_require_0db1598d9ccecb30 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3333
3363
|
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
|
|
3334
3364
|
return addHeapObject(ret);
|
|
3335
3365
|
}, arguments) };
|
|
3336
3366
|
|
|
3337
|
-
module.exports.
|
|
3367
|
+
module.exports.__wbg_crypto_b95d7173266618a9 = function(arg0) {
|
|
3338
3368
|
const ret = getObject(arg0).crypto;
|
|
3339
3369
|
return addHeapObject(ret);
|
|
3340
3370
|
};
|
|
3341
3371
|
|
|
3342
|
-
module.exports.
|
|
3372
|
+
module.exports.__wbg_msCrypto_5a86d77a66230f81 = function(arg0) {
|
|
3343
3373
|
const ret = getObject(arg0).msCrypto;
|
|
3344
3374
|
return addHeapObject(ret);
|
|
3345
3375
|
};
|
|
3346
3376
|
|
|
3347
|
-
module.exports.__wbg_getRandomValues_fb6b088efb6bead2 = function() { return handleError(function (arg0, arg1) {
|
|
3348
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3349
|
-
}, arguments) };
|
|
3350
|
-
|
|
3351
|
-
module.exports.__wbg_randomFillSync_654a7797990fb8db = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3352
|
-
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
3353
|
-
}, arguments) };
|
|
3354
|
-
|
|
3355
3377
|
module.exports.__wbg_new_94fb1279cf6afea5 = function() {
|
|
3356
3378
|
const ret = new Array();
|
|
3357
3379
|
return addHeapObject(ret);
|
|
Binary file
|