fleethub-core 1.7.7 → 1.7.11
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 +587 -598
- package/node/fleethub_core.js +34 -37
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +9 -9
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +587 -598
- package/pkg/fleethub_core_bg.js +34 -37
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +9 -9
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);
|
|
@@ -395,13 +395,13 @@ export class Analyzer {
|
|
|
395
395
|
}
|
|
396
396
|
/**
|
|
397
397
|
* @param {Comp} comp
|
|
398
|
-
* @param {
|
|
399
|
-
* @param {
|
|
398
|
+
* @param {NightConditions} attacker_conditions
|
|
399
|
+
* @param {NightConditions} target_conditions
|
|
400
400
|
* @returns {FleetNightCutinRateInfo}
|
|
401
401
|
*/
|
|
402
|
-
analyze_night_cutin(comp,
|
|
402
|
+
analyze_night_cutin(comp, attacker_conditions, target_conditions) {
|
|
403
403
|
_assertClass(comp, Comp);
|
|
404
|
-
const ret = wasm.analyzer_analyze_night_cutin(this.ptr, comp.ptr, addHeapObject(
|
|
404
|
+
const ret = wasm.analyzer_analyze_night_cutin(this.ptr, comp.ptr, addHeapObject(attacker_conditions), addHeapObject(target_conditions));
|
|
405
405
|
return takeObject(ret);
|
|
406
406
|
}
|
|
407
407
|
/**
|
|
@@ -414,7 +414,7 @@ export class Analyzer {
|
|
|
414
414
|
return takeObject(ret);
|
|
415
415
|
}
|
|
416
416
|
/**
|
|
417
|
-
* @param {
|
|
417
|
+
* @param {WarfareContext} params
|
|
418
418
|
* @param {Ship} attacker
|
|
419
419
|
* @param {Ship} target
|
|
420
420
|
* @returns {WarfareInfo}
|
|
@@ -576,6 +576,13 @@ export class Comp {
|
|
|
576
576
|
return ret !== 0;
|
|
577
577
|
}
|
|
578
578
|
/**
|
|
579
|
+
* @returns {boolean}
|
|
580
|
+
*/
|
|
581
|
+
has_route_sup() {
|
|
582
|
+
const ret = wasm.comp_has_route_sup(this.ptr);
|
|
583
|
+
return ret !== 0;
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
579
586
|
* @returns {CompMeta}
|
|
580
587
|
*/
|
|
581
588
|
meta() {
|
|
@@ -705,12 +712,12 @@ export class Comp {
|
|
|
705
712
|
}
|
|
706
713
|
/**
|
|
707
714
|
* @param {Ship} ship
|
|
708
|
-
* @param {Formation} formation
|
|
709
|
-
* @returns {
|
|
715
|
+
* @param {Formation | undefined} formation
|
|
716
|
+
* @returns {ShipEnvironment}
|
|
710
717
|
*/
|
|
711
718
|
create_warfare_ship_environment(ship, formation) {
|
|
712
719
|
_assertClass(ship, Ship);
|
|
713
|
-
const ret = wasm.comp_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
720
|
+
const ret = wasm.comp_create_warfare_ship_environment(this.ptr, ship.ptr, isLikeNone(formation) ? 0 : addHeapObject(formation));
|
|
714
721
|
return takeObject(ret);
|
|
715
722
|
}
|
|
716
723
|
}
|
|
@@ -2361,16 +2368,6 @@ export class Org {
|
|
|
2361
2368
|
return ret;
|
|
2362
2369
|
}
|
|
2363
2370
|
/**
|
|
2364
|
-
* @param {Ship} ship
|
|
2365
|
-
* @param {Formation} formation
|
|
2366
|
-
* @returns {WarfareShipEnvironment}
|
|
2367
|
-
*/
|
|
2368
|
-
create_warfare_ship_environment(ship, formation) {
|
|
2369
|
-
_assertClass(ship, Ship);
|
|
2370
|
-
const ret = wasm.org_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
2371
|
-
return takeObject(ret);
|
|
2372
|
-
}
|
|
2373
|
-
/**
|
|
2374
2371
|
* @returns {Org}
|
|
2375
2372
|
*/
|
|
2376
2373
|
static default() {
|
|
@@ -3201,12 +3198,7 @@ export function __wbindgen_json_serialize(arg0, arg1) {
|
|
|
3201
3198
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3202
3199
|
};
|
|
3203
3200
|
|
|
3204
|
-
export function
|
|
3205
|
-
const ret = Ship.__wrap(arg0);
|
|
3206
|
-
return addHeapObject(ret);
|
|
3207
|
-
};
|
|
3208
|
-
|
|
3209
|
-
export function __wbg_createEquipmentBonuses_0b2372f79fe3d0e9(arg0, arg1) {
|
|
3201
|
+
export function __wbg_createEquipmentBonuses_b7ed2504ed8ad169(arg0, arg1) {
|
|
3210
3202
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
3211
3203
|
return addHeapObject(ret);
|
|
3212
3204
|
};
|
|
@@ -3216,6 +3208,11 @@ export function __wbindgen_json_parse(arg0, arg1) {
|
|
|
3216
3208
|
return addHeapObject(ret);
|
|
3217
3209
|
};
|
|
3218
3210
|
|
|
3211
|
+
export function __wbg_ship_new(arg0) {
|
|
3212
|
+
const ret = Ship.__wrap(arg0);
|
|
3213
|
+
return addHeapObject(ret);
|
|
3214
|
+
};
|
|
3215
|
+
|
|
3219
3216
|
export function __wbg_new_693216e109162396() {
|
|
3220
3217
|
const ret = new Error();
|
|
3221
3218
|
return addHeapObject(ret);
|
|
@@ -3237,6 +3234,14 @@ export function __wbg_error_09919627ac0992f5(arg0, arg1) {
|
|
|
3237
3234
|
}
|
|
3238
3235
|
};
|
|
3239
3236
|
|
|
3237
|
+
export function __wbg_randomFillSync_91e2b39becca6147() { return handleError(function (arg0, arg1, arg2) {
|
|
3238
|
+
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
3239
|
+
}, arguments) };
|
|
3240
|
+
|
|
3241
|
+
export function __wbg_getRandomValues_b14734aa289bc356() { return handleError(function (arg0, arg1) {
|
|
3242
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3243
|
+
}, arguments) };
|
|
3244
|
+
|
|
3240
3245
|
export function __wbg_process_e56fd54cf6319b6c(arg0) {
|
|
3241
3246
|
const ret = getObject(arg0).process;
|
|
3242
3247
|
return addHeapObject(ret);
|
|
@@ -3283,14 +3288,6 @@ export function __wbg_msCrypto_5a86d77a66230f81(arg0) {
|
|
|
3283
3288
|
return addHeapObject(ret);
|
|
3284
3289
|
};
|
|
3285
3290
|
|
|
3286
|
-
export function __wbg_getRandomValues_b14734aa289bc356() { return handleError(function (arg0, arg1) {
|
|
3287
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3288
|
-
}, arguments) };
|
|
3289
|
-
|
|
3290
|
-
export function __wbg_randomFillSync_91e2b39becca6147() { return handleError(function (arg0, arg1, arg2) {
|
|
3291
|
-
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
3292
|
-
}, arguments) };
|
|
3293
|
-
|
|
3294
3291
|
export function __wbg_new_2ab697f1555e0dbc() {
|
|
3295
3292
|
const ret = new Array();
|
|
3296
3293
|
return addHeapObject(ret);
|
|
Binary file
|
|
@@ -134,15 +134,7 @@ export function org_is_single(a: number): number;
|
|
|
134
134
|
export function org_is_combined(a: number): number;
|
|
135
135
|
export function org_interception_power(a: number): number;
|
|
136
136
|
export function org_high_altitude_interception_power(a: number): number;
|
|
137
|
-
export function org_create_warfare_ship_environment(a: number, b: number, c: number): number;
|
|
138
137
|
export function org_default(): number;
|
|
139
|
-
export function __wbg_analyzer_free(a: number): void;
|
|
140
|
-
export function analyzer_analyze_anti_air(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
141
|
-
export function analyzer_analyze_day_cutin(a: number, b: number): number;
|
|
142
|
-
export function analyzer_analyze_night_cutin(a: number, b: number, c: number, d: number): number;
|
|
143
|
-
export function analyzer_analyze_contact_chance(a: number, b: number): number;
|
|
144
|
-
export function analyzer_analyze_warfare(a: number, b: number, c: number, d: number): number;
|
|
145
|
-
export function analyzer_analyze_fleet_cutin(a: number, b: number, c: number): number;
|
|
146
138
|
export function __wbg_comp_free(a: number): void;
|
|
147
139
|
export function __wbg_get_comp_org_type(a: number): number;
|
|
148
140
|
export function __wbg_set_comp_org_type(a: number, b: number): void;
|
|
@@ -160,6 +152,7 @@ export function comp_side(a: number): number;
|
|
|
160
152
|
export function comp_is_combined(a: number): number;
|
|
161
153
|
export function comp_is_player(a: number): number;
|
|
162
154
|
export function comp_is_enemy(a: number): number;
|
|
155
|
+
export function comp_has_route_sup(a: number): number;
|
|
163
156
|
export function comp_meta(a: number): number;
|
|
164
157
|
export function comp_get_fleet_id(a: number, b: number, c: number): void;
|
|
165
158
|
export function comp_get_ship_with_clone(a: number, b: number, c: number, d: number): number;
|
|
@@ -171,6 +164,13 @@ export function comp_fighter_power(a: number, b: number, c: number, d: number):
|
|
|
171
164
|
export function comp_elos(a: number, b: number, c: number): void;
|
|
172
165
|
export function comp_transport_point(a: number): number;
|
|
173
166
|
export function comp_create_warfare_ship_environment(a: number, b: number, c: number): number;
|
|
167
|
+
export function __wbg_analyzer_free(a: number): void;
|
|
168
|
+
export function analyzer_analyze_anti_air(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
169
|
+
export function analyzer_analyze_day_cutin(a: number, b: number): number;
|
|
170
|
+
export function analyzer_analyze_night_cutin(a: number, b: number, c: number, d: number): number;
|
|
171
|
+
export function analyzer_analyze_contact_chance(a: number, b: number): number;
|
|
172
|
+
export function analyzer_analyze_warfare(a: number, b: number, c: number, d: number): number;
|
|
173
|
+
export function analyzer_analyze_fleet_cutin(a: number, b: number, c: number): number;
|
|
174
174
|
export function __wbg_airsquadron_free(a: number): void;
|
|
175
175
|
export function __wbg_get_airsquadron_id(a: number, b: number): void;
|
|
176
176
|
export function __wbg_set_airsquadron_id(a: number, b: number, c: number): void;
|
|
@@ -221,7 +221,6 @@ export function fhcore_create_comp_by_map_enemy(a: number, b: number, c: number,
|
|
|
221
221
|
export function fhcore_create_default_ship(a: number): number;
|
|
222
222
|
export function fhcore_create_analyzer(a: number): number;
|
|
223
223
|
export function fhcore_simulate_shelling_support(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
224
|
-
export function set_panic_hook(): void;
|
|
225
224
|
export function ship_state_day_gunfit_accuracy(a: number, b: number): void;
|
|
226
225
|
export function ship_state_night_gunfit_accuracy(a: number, b: number): void;
|
|
227
226
|
export function ship_gunfit_accuracy(a: number, b: number): number;
|
|
@@ -344,6 +343,7 @@ export function gear_is_abyssal_patrolling_attack_hawk(a: number): number;
|
|
|
344
343
|
export function gear_expedition_bonus(a: number): number;
|
|
345
344
|
export function gear_can_be_deployed_to_land_base(a: number): number;
|
|
346
345
|
export function gear_has_proficiency(a: number): number;
|
|
346
|
+
export function set_panic_hook(): void;
|
|
347
347
|
export function __wbindgen_malloc(a: number): number;
|
|
348
348
|
export function __wbindgen_realloc(a: number, b: number, c: number): number;
|
|
349
349
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|