fleethub-core 1.8.5 → 1.8.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.
- package/node/fleethub_core.d.ts +35 -39
- package/node/fleethub_core.js +25 -33
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +13 -14
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +35 -39
- package/pkg/fleethub_core_bg.js +23 -31
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +13 -14
package/node/fleethub_core.d.ts
CHANGED
|
@@ -26,6 +26,13 @@ declare namespace Role {
|
|
|
26
26
|
|
|
27
27
|
export type Role = Role.Main | Role.Escort;
|
|
28
28
|
|
|
29
|
+
export interface ShipPosition {
|
|
30
|
+
org_type?: OrgType;
|
|
31
|
+
fleet_type?: FleetType;
|
|
32
|
+
fleet_len?: number;
|
|
33
|
+
index?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
29
36
|
declare namespace Engagement {
|
|
30
37
|
export type GreenT = "GreenT";
|
|
31
38
|
export type Parallel = "Parallel";
|
|
@@ -107,8 +114,6 @@ export interface ShipAnalyzerConfig {
|
|
|
107
114
|
right?: AttackAnalyzerShipConfig;
|
|
108
115
|
}
|
|
109
116
|
|
|
110
|
-
export type GearTypeIdArray = [number, number, number, number, number];
|
|
111
|
-
|
|
112
117
|
declare namespace SpecialEnemyType {
|
|
113
118
|
export type None = "None";
|
|
114
119
|
export type SoftSkinned = "SoftSkinned";
|
|
@@ -461,13 +466,6 @@ export interface NodeAttackAnalysis {
|
|
|
461
466
|
right: AttackAnalysis;
|
|
462
467
|
}
|
|
463
468
|
|
|
464
|
-
export interface ShipPosition {
|
|
465
|
-
org_type?: OrgType;
|
|
466
|
-
fleet_type?: FleetType;
|
|
467
|
-
fleet_len?: number;
|
|
468
|
-
index?: number;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
469
|
export interface CompMeta {
|
|
472
470
|
fleets: Record<FleetType, FleetMeta>;
|
|
473
471
|
}
|
|
@@ -701,12 +699,6 @@ export type OrgType =
|
|
|
701
699
|
| OrgType.EnemySingle
|
|
702
700
|
| OrgType.EnemyCombined;
|
|
703
701
|
|
|
704
|
-
export interface SupportShellingSimulatorParams {
|
|
705
|
-
attacker_formation?: Formation;
|
|
706
|
-
target_formation?: Formation;
|
|
707
|
-
engagement: Engagement;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
702
|
declare namespace GearAttr {
|
|
711
703
|
export type Unknown = "Unknown";
|
|
712
704
|
export type Abyssal = "Abyssal";
|
|
@@ -827,6 +819,12 @@ export interface ShellingStyle {
|
|
|
827
819
|
hits: number;
|
|
828
820
|
}
|
|
829
821
|
|
|
822
|
+
export interface SupportShellingSimulatorParams {
|
|
823
|
+
attacker_formation?: Formation;
|
|
824
|
+
target_formation?: Formation;
|
|
825
|
+
engagement: Engagement;
|
|
826
|
+
}
|
|
827
|
+
|
|
830
828
|
export interface MasterIBonuses {
|
|
831
829
|
shelling_power: MasterIBonusRule[];
|
|
832
830
|
carrier_shelling_power: MasterIBonusRule[];
|
|
@@ -1306,6 +1304,21 @@ export interface GearState {
|
|
|
1306
1304
|
stars?: number;
|
|
1307
1305
|
}
|
|
1308
1306
|
|
|
1307
|
+
declare namespace SpeedGroup {
|
|
1308
|
+
export type A = "A";
|
|
1309
|
+
export type B1 = "B1";
|
|
1310
|
+
export type B2 = "B2";
|
|
1311
|
+
export type C = "C";
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
export type SpeedGroup =
|
|
1315
|
+
| SpeedGroup.A
|
|
1316
|
+
| SpeedGroup.B1
|
|
1317
|
+
| SpeedGroup.B2
|
|
1318
|
+
| SpeedGroup.C;
|
|
1319
|
+
|
|
1320
|
+
export type SlotSizeVec = (number | null)[];
|
|
1321
|
+
|
|
1309
1322
|
export interface MasterGear {
|
|
1310
1323
|
gear_id: number;
|
|
1311
1324
|
name: string;
|
|
@@ -1331,26 +1344,7 @@ export interface MasterGear {
|
|
|
1331
1344
|
fleet_anti_air_resist?: number;
|
|
1332
1345
|
}
|
|
1333
1346
|
|
|
1334
|
-
export
|
|
1335
|
-
data: Record<string, AttackReport<T>>;
|
|
1336
|
-
damage_state_density: Histogram<DamageState, number> | null;
|
|
1337
|
-
is_active: boolean;
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
declare namespace SpeedGroup {
|
|
1341
|
-
export type A = "A";
|
|
1342
|
-
export type B1 = "B1";
|
|
1343
|
-
export type B2 = "B2";
|
|
1344
|
-
export type C = "C";
|
|
1345
|
-
}
|
|
1346
|
-
|
|
1347
|
-
export type SpeedGroup =
|
|
1348
|
-
| SpeedGroup.A
|
|
1349
|
-
| SpeedGroup.B1
|
|
1350
|
-
| SpeedGroup.B2
|
|
1351
|
-
| SpeedGroup.C;
|
|
1352
|
-
|
|
1353
|
-
export type SlotSizeVec = (number | null)[];
|
|
1347
|
+
export type GearTypeIdArray = [number, number, number, number, number];
|
|
1354
1348
|
|
|
1355
1349
|
declare namespace ShipType {
|
|
1356
1350
|
export type Unknown = "Unknown";
|
|
@@ -1442,6 +1436,12 @@ export interface FleetCutinAttackReport<T> extends AttackReport<T> {
|
|
|
1442
1436
|
power_mod: number;
|
|
1443
1437
|
}
|
|
1444
1438
|
|
|
1439
|
+
export interface ActionReport<T> {
|
|
1440
|
+
data: Record<string, AttackReport<T>>;
|
|
1441
|
+
damage_state_density: Histogram<DamageState, number> | null;
|
|
1442
|
+
is_active: boolean;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
1445
|
/**
|
|
1446
1446
|
*/
|
|
1447
1447
|
export class AirSquadron {
|
|
@@ -1836,10 +1836,6 @@ export class Gear {
|
|
|
1836
1836
|
* @returns {boolean}
|
|
1837
1837
|
*/
|
|
1838
1838
|
max_exp_eq_120(): boolean;
|
|
1839
|
-
/**
|
|
1840
|
-
* @returns {number}
|
|
1841
|
-
*/
|
|
1842
|
-
exp_critical_bonus(): number;
|
|
1843
1839
|
/**
|
|
1844
1840
|
* @param {number} slot_size
|
|
1845
1841
|
* @returns {number}
|
package/node/fleethub_core.js
CHANGED
|
@@ -122,11 +122,25 @@ module.exports.parse_ship_conditions = function(value) {
|
|
|
122
122
|
return takeObject(ret);
|
|
123
123
|
};
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
125
|
+
function isLikeNone(x) {
|
|
126
|
+
return x === undefined || x === null;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
let cachedUint16Memory0 = new Uint16Array();
|
|
130
|
+
|
|
131
|
+
function getUint16Memory0() {
|
|
132
|
+
if (cachedUint16Memory0.byteLength === 0) {
|
|
133
|
+
cachedUint16Memory0 = new Uint16Array(wasm.memory.buffer);
|
|
134
|
+
}
|
|
135
|
+
return cachedUint16Memory0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function passArray16ToWasm0(arg, malloc) {
|
|
139
|
+
const ptr = malloc(arg.length * 2);
|
|
140
|
+
getUint16Memory0().set(arg, ptr / 2);
|
|
141
|
+
WASM_VECTOR_LEN = arg.length;
|
|
142
|
+
return ptr;
|
|
143
|
+
}
|
|
130
144
|
|
|
131
145
|
const u32CvtShim = new Uint32Array(2);
|
|
132
146
|
|
|
@@ -159,10 +173,6 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
159
173
|
return ptr;
|
|
160
174
|
}
|
|
161
175
|
|
|
162
|
-
function isLikeNone(x) {
|
|
163
|
-
return x === undefined || x === null;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
176
|
let cachedUint32Memory0 = new Uint32Array();
|
|
167
177
|
|
|
168
178
|
function getUint32Memory0() {
|
|
@@ -182,25 +192,14 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
182
192
|
return result;
|
|
183
193
|
}
|
|
184
194
|
|
|
185
|
-
let cachedUint16Memory0 = new Uint16Array();
|
|
186
|
-
|
|
187
|
-
function getUint16Memory0() {
|
|
188
|
-
if (cachedUint16Memory0.byteLength === 0) {
|
|
189
|
-
cachedUint16Memory0 = new Uint16Array(wasm.memory.buffer);
|
|
190
|
-
}
|
|
191
|
-
return cachedUint16Memory0;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
195
|
function getArrayU16FromWasm0(ptr, len) {
|
|
195
196
|
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
196
197
|
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
return ptr;
|
|
203
|
-
}
|
|
198
|
+
/**
|
|
199
|
+
*/
|
|
200
|
+
module.exports.set_panic_hook = function() {
|
|
201
|
+
wasm.set_panic_hook();
|
|
202
|
+
};
|
|
204
203
|
|
|
205
204
|
function handleError(f, args) {
|
|
206
205
|
try {
|
|
@@ -1520,13 +1519,6 @@ class Gear {
|
|
|
1520
1519
|
return ret !== 0;
|
|
1521
1520
|
}
|
|
1522
1521
|
/**
|
|
1523
|
-
* @returns {number}
|
|
1524
|
-
*/
|
|
1525
|
-
exp_critical_bonus() {
|
|
1526
|
-
const ret = wasm.gear_exp_critical_bonus(this.ptr);
|
|
1527
|
-
return ret;
|
|
1528
|
-
}
|
|
1529
|
-
/**
|
|
1530
1522
|
* @param {number} slot_size
|
|
1531
1523
|
* @returns {number}
|
|
1532
1524
|
*/
|
|
@@ -3145,7 +3137,7 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
3145
3137
|
return addHeapObject(ret);
|
|
3146
3138
|
};
|
|
3147
3139
|
|
|
3148
|
-
module.exports.
|
|
3140
|
+
module.exports.__wbg_createEquipmentBonuses_821511525288eda4 = function(arg0, arg1) {
|
|
3149
3141
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
3150
3142
|
return addHeapObject(ret);
|
|
3151
3143
|
};
|
|
Binary file
|
|
@@ -2,7 +2,18 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export function parse_ship_conditions(a: number): number;
|
|
5
|
-
export function
|
|
5
|
+
export function __wbg_fhcore_free(a: number): void;
|
|
6
|
+
export function fhcore_new(a: number, b: number): void;
|
|
7
|
+
export function fhcore_create_gear(a: number, b: number): number;
|
|
8
|
+
export function fhcore_create_ship(a: number, b: number): number;
|
|
9
|
+
export function fhcore_create_air_squadron(a: number, b: number): number;
|
|
10
|
+
export function fhcore_create_fleet(a: number, b: number): number;
|
|
11
|
+
export function fhcore_create_org(a: number, b: number): number;
|
|
12
|
+
export function fhcore_create_ship_by_id(a: number, b: number): number;
|
|
13
|
+
export function fhcore_create_all_ships(a: number): number;
|
|
14
|
+
export function fhcore_create_comp_by_map_enemy(a: number, b: number, c: number, d: number, e: number): number;
|
|
15
|
+
export function fhcore_create_default_ship(a: number): number;
|
|
16
|
+
export function fhcore_create_analyzer(a: number): number;
|
|
6
17
|
export function __wbg_ship_free(a: number): void;
|
|
7
18
|
export function __wbg_get_ship_id(a: number, b: number): void;
|
|
8
19
|
export function __wbg_set_ship_id(a: number, b: number, c: number): void;
|
|
@@ -167,7 +178,6 @@ export function gear_interception(a: number): number;
|
|
|
167
178
|
export function gear_is_high_angle_mount(a: number): number;
|
|
168
179
|
export function gear_is_carrier_shelling_plane(a: number): number;
|
|
169
180
|
export function gear_max_exp_eq_120(a: number): number;
|
|
170
|
-
export function gear_exp_critical_bonus(a: number): number;
|
|
171
181
|
export function gear_calc_fighter_power(a: number, b: number): number;
|
|
172
182
|
export function gear_calc_interception_power(a: number, b: number): number;
|
|
173
183
|
export function gear_fleet_anti_air_mod(a: number): number;
|
|
@@ -288,21 +298,10 @@ export function fleet_aviation_detection_score(a: number, b: number): void;
|
|
|
288
298
|
export function fleet_expedition_bonus(a: number): number;
|
|
289
299
|
export function fleet_sum_ship_stat_by(a: number, b: number, c: number, d: number): void;
|
|
290
300
|
export function fleet_reset_battle_state(a: number): void;
|
|
301
|
+
export function set_panic_hook(): void;
|
|
291
302
|
export function ship_state_day_gunfit_accuracy(a: number, b: number): void;
|
|
292
303
|
export function ship_state_night_gunfit_accuracy(a: number, b: number): void;
|
|
293
304
|
export function ship_gunfit_accuracy(a: number, b: number): number;
|
|
294
|
-
export function __wbg_fhcore_free(a: number): void;
|
|
295
|
-
export function fhcore_new(a: number, b: number): void;
|
|
296
|
-
export function fhcore_create_gear(a: number, b: number): number;
|
|
297
|
-
export function fhcore_create_ship(a: number, b: number): number;
|
|
298
|
-
export function fhcore_create_air_squadron(a: number, b: number): number;
|
|
299
|
-
export function fhcore_create_fleet(a: number, b: number): number;
|
|
300
|
-
export function fhcore_create_org(a: number, b: number): number;
|
|
301
|
-
export function fhcore_create_ship_by_id(a: number, b: number): number;
|
|
302
|
-
export function fhcore_create_all_ships(a: number): number;
|
|
303
|
-
export function fhcore_create_comp_by_map_enemy(a: number, b: number, c: number, d: number, e: number): number;
|
|
304
|
-
export function fhcore_create_default_ship(a: number): number;
|
|
305
|
-
export function fhcore_create_analyzer(a: number): number;
|
|
306
305
|
export function __wbindgen_malloc(a: number): number;
|
|
307
306
|
export function __wbindgen_realloc(a: number, b: number, c: number): number;
|
|
308
307
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
package/package.json
CHANGED
package/pkg/fleethub_core.d.ts
CHANGED
|
@@ -26,6 +26,13 @@ declare namespace Role {
|
|
|
26
26
|
|
|
27
27
|
export type Role = Role.Main | Role.Escort;
|
|
28
28
|
|
|
29
|
+
export interface ShipPosition {
|
|
30
|
+
org_type?: OrgType;
|
|
31
|
+
fleet_type?: FleetType;
|
|
32
|
+
fleet_len?: number;
|
|
33
|
+
index?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
29
36
|
declare namespace Engagement {
|
|
30
37
|
export type GreenT = "GreenT";
|
|
31
38
|
export type Parallel = "Parallel";
|
|
@@ -107,8 +114,6 @@ export interface ShipAnalyzerConfig {
|
|
|
107
114
|
right?: AttackAnalyzerShipConfig;
|
|
108
115
|
}
|
|
109
116
|
|
|
110
|
-
export type GearTypeIdArray = [number, number, number, number, number];
|
|
111
|
-
|
|
112
117
|
declare namespace SpecialEnemyType {
|
|
113
118
|
export type None = "None";
|
|
114
119
|
export type SoftSkinned = "SoftSkinned";
|
|
@@ -461,13 +466,6 @@ export interface NodeAttackAnalysis {
|
|
|
461
466
|
right: AttackAnalysis;
|
|
462
467
|
}
|
|
463
468
|
|
|
464
|
-
export interface ShipPosition {
|
|
465
|
-
org_type?: OrgType;
|
|
466
|
-
fleet_type?: FleetType;
|
|
467
|
-
fleet_len?: number;
|
|
468
|
-
index?: number;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
469
|
export interface CompMeta {
|
|
472
470
|
fleets: Record<FleetType, FleetMeta>;
|
|
473
471
|
}
|
|
@@ -701,12 +699,6 @@ export type OrgType =
|
|
|
701
699
|
| OrgType.EnemySingle
|
|
702
700
|
| OrgType.EnemyCombined;
|
|
703
701
|
|
|
704
|
-
export interface SupportShellingSimulatorParams {
|
|
705
|
-
attacker_formation?: Formation;
|
|
706
|
-
target_formation?: Formation;
|
|
707
|
-
engagement: Engagement;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
702
|
declare namespace GearAttr {
|
|
711
703
|
export type Unknown = "Unknown";
|
|
712
704
|
export type Abyssal = "Abyssal";
|
|
@@ -827,6 +819,12 @@ export interface ShellingStyle {
|
|
|
827
819
|
hits: number;
|
|
828
820
|
}
|
|
829
821
|
|
|
822
|
+
export interface SupportShellingSimulatorParams {
|
|
823
|
+
attacker_formation?: Formation;
|
|
824
|
+
target_formation?: Formation;
|
|
825
|
+
engagement: Engagement;
|
|
826
|
+
}
|
|
827
|
+
|
|
830
828
|
export interface MasterIBonuses {
|
|
831
829
|
shelling_power: MasterIBonusRule[];
|
|
832
830
|
carrier_shelling_power: MasterIBonusRule[];
|
|
@@ -1306,6 +1304,21 @@ export interface GearState {
|
|
|
1306
1304
|
stars?: number;
|
|
1307
1305
|
}
|
|
1308
1306
|
|
|
1307
|
+
declare namespace SpeedGroup {
|
|
1308
|
+
export type A = "A";
|
|
1309
|
+
export type B1 = "B1";
|
|
1310
|
+
export type B2 = "B2";
|
|
1311
|
+
export type C = "C";
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
export type SpeedGroup =
|
|
1315
|
+
| SpeedGroup.A
|
|
1316
|
+
| SpeedGroup.B1
|
|
1317
|
+
| SpeedGroup.B2
|
|
1318
|
+
| SpeedGroup.C;
|
|
1319
|
+
|
|
1320
|
+
export type SlotSizeVec = (number | null)[];
|
|
1321
|
+
|
|
1309
1322
|
export interface MasterGear {
|
|
1310
1323
|
gear_id: number;
|
|
1311
1324
|
name: string;
|
|
@@ -1331,26 +1344,7 @@ export interface MasterGear {
|
|
|
1331
1344
|
fleet_anti_air_resist?: number;
|
|
1332
1345
|
}
|
|
1333
1346
|
|
|
1334
|
-
export
|
|
1335
|
-
data: Record<string, AttackReport<T>>;
|
|
1336
|
-
damage_state_density: Histogram<DamageState, number> | null;
|
|
1337
|
-
is_active: boolean;
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
declare namespace SpeedGroup {
|
|
1341
|
-
export type A = "A";
|
|
1342
|
-
export type B1 = "B1";
|
|
1343
|
-
export type B2 = "B2";
|
|
1344
|
-
export type C = "C";
|
|
1345
|
-
}
|
|
1346
|
-
|
|
1347
|
-
export type SpeedGroup =
|
|
1348
|
-
| SpeedGroup.A
|
|
1349
|
-
| SpeedGroup.B1
|
|
1350
|
-
| SpeedGroup.B2
|
|
1351
|
-
| SpeedGroup.C;
|
|
1352
|
-
|
|
1353
|
-
export type SlotSizeVec = (number | null)[];
|
|
1347
|
+
export type GearTypeIdArray = [number, number, number, number, number];
|
|
1354
1348
|
|
|
1355
1349
|
declare namespace ShipType {
|
|
1356
1350
|
export type Unknown = "Unknown";
|
|
@@ -1442,6 +1436,12 @@ export interface FleetCutinAttackReport<T> extends AttackReport<T> {
|
|
|
1442
1436
|
power_mod: number;
|
|
1443
1437
|
}
|
|
1444
1438
|
|
|
1439
|
+
export interface ActionReport<T> {
|
|
1440
|
+
data: Record<string, AttackReport<T>>;
|
|
1441
|
+
damage_state_density: Histogram<DamageState, number> | null;
|
|
1442
|
+
is_active: boolean;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
1445
|
/**
|
|
1446
1446
|
*/
|
|
1447
1447
|
export class AirSquadron {
|
|
@@ -1836,10 +1836,6 @@ export class Gear {
|
|
|
1836
1836
|
* @returns {boolean}
|
|
1837
1837
|
*/
|
|
1838
1838
|
max_exp_eq_120(): boolean;
|
|
1839
|
-
/**
|
|
1840
|
-
* @returns {number}
|
|
1841
|
-
*/
|
|
1842
|
-
exp_critical_bonus(): number;
|
|
1843
1839
|
/**
|
|
1844
1840
|
* @param {number} slot_size
|
|
1845
1841
|
* @returns {number}
|
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -123,10 +123,24 @@ export function parse_ship_conditions(value) {
|
|
|
123
123
|
return takeObject(ret);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
function isLikeNone(x) {
|
|
127
|
+
return x === undefined || x === null;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
let cachedUint16Memory0 = new Uint16Array();
|
|
131
|
+
|
|
132
|
+
function getUint16Memory0() {
|
|
133
|
+
if (cachedUint16Memory0.byteLength === 0) {
|
|
134
|
+
cachedUint16Memory0 = new Uint16Array(wasm.memory.buffer);
|
|
135
|
+
}
|
|
136
|
+
return cachedUint16Memory0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function passArray16ToWasm0(arg, malloc) {
|
|
140
|
+
const ptr = malloc(arg.length * 2);
|
|
141
|
+
getUint16Memory0().set(arg, ptr / 2);
|
|
142
|
+
WASM_VECTOR_LEN = arg.length;
|
|
143
|
+
return ptr;
|
|
130
144
|
}
|
|
131
145
|
|
|
132
146
|
const u32CvtShim = new Uint32Array(2);
|
|
@@ -160,10 +174,6 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
160
174
|
return ptr;
|
|
161
175
|
}
|
|
162
176
|
|
|
163
|
-
function isLikeNone(x) {
|
|
164
|
-
return x === undefined || x === null;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
177
|
let cachedUint32Memory0 = new Uint32Array();
|
|
168
178
|
|
|
169
179
|
function getUint32Memory0() {
|
|
@@ -183,24 +193,13 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
183
193
|
return result;
|
|
184
194
|
}
|
|
185
195
|
|
|
186
|
-
let cachedUint16Memory0 = new Uint16Array();
|
|
187
|
-
|
|
188
|
-
function getUint16Memory0() {
|
|
189
|
-
if (cachedUint16Memory0.byteLength === 0) {
|
|
190
|
-
cachedUint16Memory0 = new Uint16Array(wasm.memory.buffer);
|
|
191
|
-
}
|
|
192
|
-
return cachedUint16Memory0;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
196
|
function getArrayU16FromWasm0(ptr, len) {
|
|
196
197
|
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
197
198
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
WASM_VECTOR_LEN = arg.length;
|
|
203
|
-
return ptr;
|
|
199
|
+
/**
|
|
200
|
+
*/
|
|
201
|
+
export function set_panic_hook() {
|
|
202
|
+
wasm.set_panic_hook();
|
|
204
203
|
}
|
|
205
204
|
|
|
206
205
|
function handleError(f, args) {
|
|
@@ -1516,13 +1515,6 @@ export class Gear {
|
|
|
1516
1515
|
return ret !== 0;
|
|
1517
1516
|
}
|
|
1518
1517
|
/**
|
|
1519
|
-
* @returns {number}
|
|
1520
|
-
*/
|
|
1521
|
-
exp_critical_bonus() {
|
|
1522
|
-
const ret = wasm.gear_exp_critical_bonus(this.ptr);
|
|
1523
|
-
return ret;
|
|
1524
|
-
}
|
|
1525
|
-
/**
|
|
1526
1518
|
* @param {number} slot_size
|
|
1527
1519
|
* @returns {number}
|
|
1528
1520
|
*/
|
|
@@ -3137,7 +3129,7 @@ export function __wbindgen_string_new(arg0, arg1) {
|
|
|
3137
3129
|
return addHeapObject(ret);
|
|
3138
3130
|
};
|
|
3139
3131
|
|
|
3140
|
-
export function
|
|
3132
|
+
export function __wbg_createEquipmentBonuses_821511525288eda4(arg0, arg1) {
|
|
3141
3133
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
3142
3134
|
return addHeapObject(ret);
|
|
3143
3135
|
};
|
|
Binary file
|
|
@@ -2,7 +2,18 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export function parse_ship_conditions(a: number): number;
|
|
5
|
-
export function
|
|
5
|
+
export function __wbg_fhcore_free(a: number): void;
|
|
6
|
+
export function fhcore_new(a: number, b: number): void;
|
|
7
|
+
export function fhcore_create_gear(a: number, b: number): number;
|
|
8
|
+
export function fhcore_create_ship(a: number, b: number): number;
|
|
9
|
+
export function fhcore_create_air_squadron(a: number, b: number): number;
|
|
10
|
+
export function fhcore_create_fleet(a: number, b: number): number;
|
|
11
|
+
export function fhcore_create_org(a: number, b: number): number;
|
|
12
|
+
export function fhcore_create_ship_by_id(a: number, b: number): number;
|
|
13
|
+
export function fhcore_create_all_ships(a: number): number;
|
|
14
|
+
export function fhcore_create_comp_by_map_enemy(a: number, b: number, c: number, d: number, e: number): number;
|
|
15
|
+
export function fhcore_create_default_ship(a: number): number;
|
|
16
|
+
export function fhcore_create_analyzer(a: number): number;
|
|
6
17
|
export function __wbg_ship_free(a: number): void;
|
|
7
18
|
export function __wbg_get_ship_id(a: number, b: number): void;
|
|
8
19
|
export function __wbg_set_ship_id(a: number, b: number, c: number): void;
|
|
@@ -167,7 +178,6 @@ export function gear_interception(a: number): number;
|
|
|
167
178
|
export function gear_is_high_angle_mount(a: number): number;
|
|
168
179
|
export function gear_is_carrier_shelling_plane(a: number): number;
|
|
169
180
|
export function gear_max_exp_eq_120(a: number): number;
|
|
170
|
-
export function gear_exp_critical_bonus(a: number): number;
|
|
171
181
|
export function gear_calc_fighter_power(a: number, b: number): number;
|
|
172
182
|
export function gear_calc_interception_power(a: number, b: number): number;
|
|
173
183
|
export function gear_fleet_anti_air_mod(a: number): number;
|
|
@@ -288,21 +298,10 @@ export function fleet_aviation_detection_score(a: number, b: number): void;
|
|
|
288
298
|
export function fleet_expedition_bonus(a: number): number;
|
|
289
299
|
export function fleet_sum_ship_stat_by(a: number, b: number, c: number, d: number): void;
|
|
290
300
|
export function fleet_reset_battle_state(a: number): void;
|
|
301
|
+
export function set_panic_hook(): void;
|
|
291
302
|
export function ship_state_day_gunfit_accuracy(a: number, b: number): void;
|
|
292
303
|
export function ship_state_night_gunfit_accuracy(a: number, b: number): void;
|
|
293
304
|
export function ship_gunfit_accuracy(a: number, b: number): number;
|
|
294
|
-
export function __wbg_fhcore_free(a: number): void;
|
|
295
|
-
export function fhcore_new(a: number, b: number): void;
|
|
296
|
-
export function fhcore_create_gear(a: number, b: number): number;
|
|
297
|
-
export function fhcore_create_ship(a: number, b: number): number;
|
|
298
|
-
export function fhcore_create_air_squadron(a: number, b: number): number;
|
|
299
|
-
export function fhcore_create_fleet(a: number, b: number): number;
|
|
300
|
-
export function fhcore_create_org(a: number, b: number): number;
|
|
301
|
-
export function fhcore_create_ship_by_id(a: number, b: number): number;
|
|
302
|
-
export function fhcore_create_all_ships(a: number): number;
|
|
303
|
-
export function fhcore_create_comp_by_map_enemy(a: number, b: number, c: number, d: number, e: number): number;
|
|
304
|
-
export function fhcore_create_default_ship(a: number): number;
|
|
305
|
-
export function fhcore_create_analyzer(a: number): number;
|
|
306
305
|
export function __wbindgen_malloc(a: number): number;
|
|
307
306
|
export function __wbindgen_realloc(a: number, b: number, c: number): number;
|
|
308
307
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|