fleethub-core 1.6.0 → 1.6.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 +41 -41
- package/node/fleethub_core.js +6 -6
- 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 +41 -41
- package/pkg/fleethub_core_bg.js +6 -6
- 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
|
@@ -334,6 +334,8 @@ export interface ShellingSupportSimulatorParams {
|
|
|
334
334
|
custom_mods: CustomModifiers;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
+
export type ShellingAttackType = "Normal" | "Carrier";
|
|
338
|
+
|
|
337
339
|
export interface CompDayCutinRateInfo {
|
|
338
340
|
main: FleetDayCutinRateInfo;
|
|
339
341
|
escort: FleetDayCutinRateInfo | null;
|
|
@@ -396,28 +398,12 @@ export interface MasterIBonusRule {
|
|
|
396
398
|
formula: CompiledEvaler;
|
|
397
399
|
}
|
|
398
400
|
|
|
399
|
-
export type ShellingAttackType = "Normal" | "Carrier";
|
|
400
|
-
|
|
401
401
|
export interface NightSituation {
|
|
402
402
|
night_contact_rank: ContactRank | null;
|
|
403
403
|
starshell: boolean;
|
|
404
404
|
searchlight: boolean;
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
export interface CompContactChanceInfo {
|
|
408
|
-
single: AirstrikeContactChance[] | null;
|
|
409
|
-
combined: AirstrikeContactChance[] | null;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
export interface AirstrikeContactChance {
|
|
413
|
-
air_state: AirState;
|
|
414
|
-
trigger_rate: number;
|
|
415
|
-
rank3: number;
|
|
416
|
-
rank2: number;
|
|
417
|
-
rank1: number;
|
|
418
|
-
total: number;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
407
|
export type GearAttr =
|
|
422
408
|
| "Unknown"
|
|
423
409
|
| "Abyssal"
|
|
@@ -504,6 +490,20 @@ export interface ShipAntiAirInfo {
|
|
|
504
490
|
anti_air_propellant_barrage_chance: number | null;
|
|
505
491
|
}
|
|
506
492
|
|
|
493
|
+
export interface CompContactChanceInfo {
|
|
494
|
+
single: AirstrikeContactChance[] | null;
|
|
495
|
+
combined: AirstrikeContactChance[] | null;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export interface AirstrikeContactChance {
|
|
499
|
+
air_state: AirState;
|
|
500
|
+
trigger_rate: number;
|
|
501
|
+
rank3: number;
|
|
502
|
+
rank2: number;
|
|
503
|
+
rank1: number;
|
|
504
|
+
total: number;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
507
|
export type ShipStateMap = Record<ShipKey, ShipState>;
|
|
508
508
|
|
|
509
509
|
export type ShipKey = "s1" | "s2" | "s3" | "s4" | "s5" | "s6" | "s7";
|
|
@@ -749,6 +749,8 @@ export interface HitRateParams {
|
|
|
749
749
|
hit_percentage_bonus: number;
|
|
750
750
|
}
|
|
751
751
|
|
|
752
|
+
export type GearTypeIdArray = [number, number, number, number, number];
|
|
753
|
+
|
|
752
754
|
export interface MasterShip {
|
|
753
755
|
ship_id: number;
|
|
754
756
|
name: string;
|
|
@@ -807,31 +809,6 @@ export interface WarfareAnalyzerShipEnvironment {
|
|
|
807
809
|
custom_mods: CustomModifiers;
|
|
808
810
|
}
|
|
809
811
|
|
|
810
|
-
export interface FleetNightCutinRateInfo {
|
|
811
|
-
night_contact_chance: NightContactChance;
|
|
812
|
-
ships: ShipNightCutinRateInfo[];
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
export interface ShipNightCutinRateInfo {
|
|
816
|
-
ship_id: number;
|
|
817
|
-
normal: NightCutinRateInfo;
|
|
818
|
-
chuuha: NightCutinRateInfo;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
export interface NightCutinRateInfo {
|
|
822
|
-
cutin_term: number | null;
|
|
823
|
-
rates: [NightCutin | null, number | null][];
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
export interface NightContactChance {
|
|
827
|
-
rank1: number;
|
|
828
|
-
rank2: number;
|
|
829
|
-
rank3: number;
|
|
830
|
-
total: number;
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
export type GearTypeIdArray = [number, number, number, number, number];
|
|
834
|
-
|
|
835
812
|
export type SpecialEnemyType =
|
|
836
813
|
| "None"
|
|
837
814
|
| "SoftSkinned"
|
|
@@ -873,6 +850,29 @@ export interface SimulatorResultItem {
|
|
|
873
850
|
|
|
874
851
|
export type AswAttackType = "DepthCharge" | "Aircraft";
|
|
875
852
|
|
|
853
|
+
export interface FleetNightCutinRateInfo {
|
|
854
|
+
night_contact_chance: NightContactChance;
|
|
855
|
+
ships: ShipNightCutinRateInfo[];
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
export interface ShipNightCutinRateInfo {
|
|
859
|
+
ship_id: number;
|
|
860
|
+
normal: NightCutinRateInfo;
|
|
861
|
+
chuuha: NightCutinRateInfo;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
export interface NightCutinRateInfo {
|
|
865
|
+
cutin_term: number | null;
|
|
866
|
+
rates: [NightCutin | null, number | null][];
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
export interface NightContactChance {
|
|
870
|
+
rank1: number;
|
|
871
|
+
rank2: number;
|
|
872
|
+
rank3: number;
|
|
873
|
+
total: number;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
876
|
/**
|
|
877
877
|
*/
|
|
878
878
|
export class AirSquadron {
|
package/node/fleethub_core.js
CHANGED
|
@@ -164,11 +164,6 @@ function getUint16Memory0() {
|
|
|
164
164
|
function getArrayU16FromWasm0(ptr, len) {
|
|
165
165
|
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
166
166
|
}
|
|
167
|
-
/**
|
|
168
|
-
*/
|
|
169
|
-
module.exports.set_panic_hook = function() {
|
|
170
|
-
wasm.set_panic_hook();
|
|
171
|
-
};
|
|
172
167
|
|
|
173
168
|
function passArray16ToWasm0(arg, malloc) {
|
|
174
169
|
const ptr = malloc(arg.length * 2);
|
|
@@ -176,6 +171,11 @@ function passArray16ToWasm0(arg, malloc) {
|
|
|
176
171
|
WASM_VECTOR_LEN = arg.length;
|
|
177
172
|
return ptr;
|
|
178
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
*/
|
|
176
|
+
module.exports.set_panic_hook = function() {
|
|
177
|
+
wasm.set_panic_hook();
|
|
178
|
+
};
|
|
179
179
|
|
|
180
180
|
function getArrayU8FromWasm0(ptr, len) {
|
|
181
181
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -3244,7 +3244,7 @@ class Ship {
|
|
|
3244
3244
|
}
|
|
3245
3245
|
module.exports.Ship = Ship;
|
|
3246
3246
|
|
|
3247
|
-
module.exports.
|
|
3247
|
+
module.exports.__wbg_createEquipmentBonuses_b568031e3fb0aaf2 = function(arg0, arg1) {
|
|
3248
3248
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
3249
3249
|
return addHeapObject(ret);
|
|
3250
3250
|
};
|
|
Binary file
|
|
@@ -207,7 +207,6 @@ export function fleet_aviation_detection_score(a: number, b: number): void;
|
|
|
207
207
|
export function fleet_expedition_bonus(a: number): number;
|
|
208
208
|
export function fleet_sum_ship_stat_by(a: number, b: number, c: number, d: number): void;
|
|
209
209
|
export function fleet_reset_battle_state(a: number): void;
|
|
210
|
-
export function set_panic_hook(): void;
|
|
211
210
|
export function __wbg_fhcore_free(a: number): void;
|
|
212
211
|
export function fhcore_new(a: number, b: number): void;
|
|
213
212
|
export function fhcore_create_gear(a: number, b: number): number;
|
|
@@ -221,6 +220,7 @@ export function fhcore_create_comp_by_map_enemy(a: number, b: number, c: number,
|
|
|
221
220
|
export function fhcore_create_default_ship(a: number): number;
|
|
222
221
|
export function fhcore_create_analyzer(a: number): number;
|
|
223
222
|
export function fhcore_simulate_shelling_support(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
223
|
+
export function set_panic_hook(): void;
|
|
224
224
|
export function __wbg_ibonuses_free(a: number): void;
|
|
225
225
|
export function __wbg_get_ibonuses_shelling_power(a: number): number;
|
|
226
226
|
export function __wbg_set_ibonuses_shelling_power(a: number, b: number): void;
|
package/package.json
CHANGED
package/pkg/fleethub_core.d.ts
CHANGED
|
@@ -334,6 +334,8 @@ export interface ShellingSupportSimulatorParams {
|
|
|
334
334
|
custom_mods: CustomModifiers;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
+
export type ShellingAttackType = "Normal" | "Carrier";
|
|
338
|
+
|
|
337
339
|
export interface CompDayCutinRateInfo {
|
|
338
340
|
main: FleetDayCutinRateInfo;
|
|
339
341
|
escort: FleetDayCutinRateInfo | null;
|
|
@@ -396,28 +398,12 @@ export interface MasterIBonusRule {
|
|
|
396
398
|
formula: CompiledEvaler;
|
|
397
399
|
}
|
|
398
400
|
|
|
399
|
-
export type ShellingAttackType = "Normal" | "Carrier";
|
|
400
|
-
|
|
401
401
|
export interface NightSituation {
|
|
402
402
|
night_contact_rank: ContactRank | null;
|
|
403
403
|
starshell: boolean;
|
|
404
404
|
searchlight: boolean;
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
export interface CompContactChanceInfo {
|
|
408
|
-
single: AirstrikeContactChance[] | null;
|
|
409
|
-
combined: AirstrikeContactChance[] | null;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
export interface AirstrikeContactChance {
|
|
413
|
-
air_state: AirState;
|
|
414
|
-
trigger_rate: number;
|
|
415
|
-
rank3: number;
|
|
416
|
-
rank2: number;
|
|
417
|
-
rank1: number;
|
|
418
|
-
total: number;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
407
|
export type GearAttr =
|
|
422
408
|
| "Unknown"
|
|
423
409
|
| "Abyssal"
|
|
@@ -504,6 +490,20 @@ export interface ShipAntiAirInfo {
|
|
|
504
490
|
anti_air_propellant_barrage_chance: number | null;
|
|
505
491
|
}
|
|
506
492
|
|
|
493
|
+
export interface CompContactChanceInfo {
|
|
494
|
+
single: AirstrikeContactChance[] | null;
|
|
495
|
+
combined: AirstrikeContactChance[] | null;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export interface AirstrikeContactChance {
|
|
499
|
+
air_state: AirState;
|
|
500
|
+
trigger_rate: number;
|
|
501
|
+
rank3: number;
|
|
502
|
+
rank2: number;
|
|
503
|
+
rank1: number;
|
|
504
|
+
total: number;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
507
|
export type ShipStateMap = Record<ShipKey, ShipState>;
|
|
508
508
|
|
|
509
509
|
export type ShipKey = "s1" | "s2" | "s3" | "s4" | "s5" | "s6" | "s7";
|
|
@@ -749,6 +749,8 @@ export interface HitRateParams {
|
|
|
749
749
|
hit_percentage_bonus: number;
|
|
750
750
|
}
|
|
751
751
|
|
|
752
|
+
export type GearTypeIdArray = [number, number, number, number, number];
|
|
753
|
+
|
|
752
754
|
export interface MasterShip {
|
|
753
755
|
ship_id: number;
|
|
754
756
|
name: string;
|
|
@@ -807,31 +809,6 @@ export interface WarfareAnalyzerShipEnvironment {
|
|
|
807
809
|
custom_mods: CustomModifiers;
|
|
808
810
|
}
|
|
809
811
|
|
|
810
|
-
export interface FleetNightCutinRateInfo {
|
|
811
|
-
night_contact_chance: NightContactChance;
|
|
812
|
-
ships: ShipNightCutinRateInfo[];
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
export interface ShipNightCutinRateInfo {
|
|
816
|
-
ship_id: number;
|
|
817
|
-
normal: NightCutinRateInfo;
|
|
818
|
-
chuuha: NightCutinRateInfo;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
export interface NightCutinRateInfo {
|
|
822
|
-
cutin_term: number | null;
|
|
823
|
-
rates: [NightCutin | null, number | null][];
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
export interface NightContactChance {
|
|
827
|
-
rank1: number;
|
|
828
|
-
rank2: number;
|
|
829
|
-
rank3: number;
|
|
830
|
-
total: number;
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
export type GearTypeIdArray = [number, number, number, number, number];
|
|
834
|
-
|
|
835
812
|
export type SpecialEnemyType =
|
|
836
813
|
| "None"
|
|
837
814
|
| "SoftSkinned"
|
|
@@ -873,6 +850,29 @@ export interface SimulatorResultItem {
|
|
|
873
850
|
|
|
874
851
|
export type AswAttackType = "DepthCharge" | "Aircraft";
|
|
875
852
|
|
|
853
|
+
export interface FleetNightCutinRateInfo {
|
|
854
|
+
night_contact_chance: NightContactChance;
|
|
855
|
+
ships: ShipNightCutinRateInfo[];
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
export interface ShipNightCutinRateInfo {
|
|
859
|
+
ship_id: number;
|
|
860
|
+
normal: NightCutinRateInfo;
|
|
861
|
+
chuuha: NightCutinRateInfo;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
export interface NightCutinRateInfo {
|
|
865
|
+
cutin_term: number | null;
|
|
866
|
+
rates: [NightCutin | null, number | null][];
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
export interface NightContactChance {
|
|
870
|
+
rank1: number;
|
|
871
|
+
rank2: number;
|
|
872
|
+
rank3: number;
|
|
873
|
+
total: number;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
876
|
/**
|
|
877
877
|
*/
|
|
878
878
|
export class AirSquadron {
|
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -165,11 +165,6 @@ function getUint16Memory0() {
|
|
|
165
165
|
function getArrayU16FromWasm0(ptr, len) {
|
|
166
166
|
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
167
167
|
}
|
|
168
|
-
/**
|
|
169
|
-
*/
|
|
170
|
-
export function set_panic_hook() {
|
|
171
|
-
wasm.set_panic_hook();
|
|
172
|
-
}
|
|
173
168
|
|
|
174
169
|
function passArray16ToWasm0(arg, malloc) {
|
|
175
170
|
const ptr = malloc(arg.length * 2);
|
|
@@ -177,6 +172,11 @@ function passArray16ToWasm0(arg, malloc) {
|
|
|
177
172
|
WASM_VECTOR_LEN = arg.length;
|
|
178
173
|
return ptr;
|
|
179
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
*/
|
|
177
|
+
export function set_panic_hook() {
|
|
178
|
+
wasm.set_panic_hook();
|
|
179
|
+
}
|
|
180
180
|
|
|
181
181
|
function getArrayU8FromWasm0(ptr, len) {
|
|
182
182
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -3236,7 +3236,7 @@ export class Ship {
|
|
|
3236
3236
|
}
|
|
3237
3237
|
}
|
|
3238
3238
|
|
|
3239
|
-
export function
|
|
3239
|
+
export function __wbg_createEquipmentBonuses_b568031e3fb0aaf2(arg0, arg1) {
|
|
3240
3240
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
3241
3241
|
return addHeapObject(ret);
|
|
3242
3242
|
};
|
|
Binary file
|
|
@@ -207,7 +207,6 @@ export function fleet_aviation_detection_score(a: number, b: number): void;
|
|
|
207
207
|
export function fleet_expedition_bonus(a: number): number;
|
|
208
208
|
export function fleet_sum_ship_stat_by(a: number, b: number, c: number, d: number): void;
|
|
209
209
|
export function fleet_reset_battle_state(a: number): void;
|
|
210
|
-
export function set_panic_hook(): void;
|
|
211
210
|
export function __wbg_fhcore_free(a: number): void;
|
|
212
211
|
export function fhcore_new(a: number, b: number): void;
|
|
213
212
|
export function fhcore_create_gear(a: number, b: number): number;
|
|
@@ -221,6 +220,7 @@ export function fhcore_create_comp_by_map_enemy(a: number, b: number, c: number,
|
|
|
221
220
|
export function fhcore_create_default_ship(a: number): number;
|
|
222
221
|
export function fhcore_create_analyzer(a: number): number;
|
|
223
222
|
export function fhcore_simulate_shelling_support(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
223
|
+
export function set_panic_hook(): void;
|
|
224
224
|
export function __wbg_ibonuses_free(a: number): void;
|
|
225
225
|
export function __wbg_get_ibonuses_shelling_power(a: number): number;
|
|
226
226
|
export function __wbg_set_ibonuses_shelling_power(a: number, b: number): void;
|