fleethub-core 1.7.8 → 1.7.13
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 +596 -582
- package/node/fleethub_core.js +27 -37
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +30 -31
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +596 -582
- package/pkg/fleethub_core_bg.js +27 -37
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +30 -31
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);
|
|
@@ -395,13 +395,13 @@ 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 @@ 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}
|
|
@@ -713,12 +713,12 @@ class Comp {
|
|
|
713
713
|
}
|
|
714
714
|
/**
|
|
715
715
|
* @param {Ship} ship
|
|
716
|
-
* @param {Formation} formation
|
|
717
|
-
* @returns {
|
|
716
|
+
* @param {Formation | undefined} formation
|
|
717
|
+
* @returns {ShipEnvironment}
|
|
718
718
|
*/
|
|
719
719
|
create_warfare_ship_environment(ship, formation) {
|
|
720
720
|
_assertClass(ship, Ship);
|
|
721
|
-
const ret = wasm.comp_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
721
|
+
const ret = wasm.comp_create_warfare_ship_environment(this.ptr, ship.ptr, isLikeNone(formation) ? 0 : addHeapObject(formation));
|
|
722
722
|
return takeObject(ret);
|
|
723
723
|
}
|
|
724
724
|
}
|
|
@@ -2374,16 +2374,6 @@ class Org {
|
|
|
2374
2374
|
return ret;
|
|
2375
2375
|
}
|
|
2376
2376
|
/**
|
|
2377
|
-
* @param {Ship} ship
|
|
2378
|
-
* @param {Formation} formation
|
|
2379
|
-
* @returns {WarfareShipEnvironment}
|
|
2380
|
-
*/
|
|
2381
|
-
create_warfare_ship_environment(ship, formation) {
|
|
2382
|
-
_assertClass(ship, Ship);
|
|
2383
|
-
const ret = wasm.org_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
2384
|
-
return takeObject(ret);
|
|
2385
|
-
}
|
|
2386
|
-
/**
|
|
2387
2377
|
* @returns {Org}
|
|
2388
2378
|
*/
|
|
2389
2379
|
static default() {
|
|
@@ -3216,12 +3206,7 @@ module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
|
3216
3206
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3217
3207
|
};
|
|
3218
3208
|
|
|
3219
|
-
module.exports.
|
|
3220
|
-
const ret = Ship.__wrap(arg0);
|
|
3221
|
-
return addHeapObject(ret);
|
|
3222
|
-
};
|
|
3223
|
-
|
|
3224
|
-
module.exports.__wbg_createEquipmentBonuses_c498b0239c2956ed = function(arg0, arg1) {
|
|
3209
|
+
module.exports.__wbg_createEquipmentBonuses_b999613e31f1d40c = function(arg0, arg1) {
|
|
3225
3210
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
3226
3211
|
return addHeapObject(ret);
|
|
3227
3212
|
};
|
|
@@ -3231,6 +3216,11 @@ module.exports.__wbindgen_json_parse = function(arg0, arg1) {
|
|
|
3231
3216
|
return addHeapObject(ret);
|
|
3232
3217
|
};
|
|
3233
3218
|
|
|
3219
|
+
module.exports.__wbg_ship_new = function(arg0) {
|
|
3220
|
+
const ret = Ship.__wrap(arg0);
|
|
3221
|
+
return addHeapObject(ret);
|
|
3222
|
+
};
|
|
3223
|
+
|
|
3234
3224
|
module.exports.__wbg_new_693216e109162396 = function() {
|
|
3235
3225
|
const ret = new Error();
|
|
3236
3226
|
return addHeapObject(ret);
|
|
@@ -3252,6 +3242,14 @@ module.exports.__wbg_error_09919627ac0992f5 = function(arg0, arg1) {
|
|
|
3252
3242
|
}
|
|
3253
3243
|
};
|
|
3254
3244
|
|
|
3245
|
+
module.exports.__wbg_randomFillSync_91e2b39becca6147 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3246
|
+
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
3247
|
+
}, arguments) };
|
|
3248
|
+
|
|
3249
|
+
module.exports.__wbg_getRandomValues_b14734aa289bc356 = function() { return handleError(function (arg0, arg1) {
|
|
3250
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3251
|
+
}, arguments) };
|
|
3252
|
+
|
|
3255
3253
|
module.exports.__wbg_process_e56fd54cf6319b6c = function(arg0) {
|
|
3256
3254
|
const ret = getObject(arg0).process;
|
|
3257
3255
|
return addHeapObject(ret);
|
|
@@ -3298,14 +3296,6 @@ module.exports.__wbg_msCrypto_5a86d77a66230f81 = function(arg0) {
|
|
|
3298
3296
|
return addHeapObject(ret);
|
|
3299
3297
|
};
|
|
3300
3298
|
|
|
3301
|
-
module.exports.__wbg_getRandomValues_b14734aa289bc356 = function() { return handleError(function (arg0, arg1) {
|
|
3302
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3303
|
-
}, arguments) };
|
|
3304
|
-
|
|
3305
|
-
module.exports.__wbg_randomFillSync_91e2b39becca6147 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3306
|
-
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
3307
|
-
}, arguments) };
|
|
3308
|
-
|
|
3309
3299
|
module.exports.__wbg_new_2ab697f1555e0dbc = function() {
|
|
3310
3300
|
const ret = new Array();
|
|
3311
3301
|
return addHeapObject(ret);
|
|
Binary file
|
|
@@ -97,6 +97,35 @@ export function ship_transport_point(a: number): number;
|
|
|
97
97
|
export function ship_elos(a: number, b: number, c: number): void;
|
|
98
98
|
export function ship_ohko_power(a: number, b: number): void;
|
|
99
99
|
export function ship_take_damage(a: number, b: number): void;
|
|
100
|
+
export function __wbg_comp_free(a: number): void;
|
|
101
|
+
export function __wbg_get_comp_org_type(a: number): number;
|
|
102
|
+
export function __wbg_set_comp_org_type(a: number, b: number): void;
|
|
103
|
+
export function __wbg_get_comp_hq_level(a: number): number;
|
|
104
|
+
export function __wbg_set_comp_hq_level(a: number, b: number): void;
|
|
105
|
+
export function __wbg_get_comp_main(a: number): number;
|
|
106
|
+
export function __wbg_set_comp_main(a: number, b: number): void;
|
|
107
|
+
export function __wbg_get_comp_escort(a: number): number;
|
|
108
|
+
export function __wbg_set_comp_escort(a: number, b: number): void;
|
|
109
|
+
export function __wbg_get_comp_route_sup(a: number): number;
|
|
110
|
+
export function __wbg_set_comp_route_sup(a: number, b: number): void;
|
|
111
|
+
export function __wbg_get_comp_boss_sup(a: number): number;
|
|
112
|
+
export function __wbg_set_comp_boss_sup(a: number, b: number): void;
|
|
113
|
+
export function comp_side(a: number): number;
|
|
114
|
+
export function comp_is_combined(a: number): number;
|
|
115
|
+
export function comp_is_player(a: number): number;
|
|
116
|
+
export function comp_is_enemy(a: number): number;
|
|
117
|
+
export function comp_has_route_sup(a: number): number;
|
|
118
|
+
export function comp_meta(a: number): number;
|
|
119
|
+
export function comp_get_fleet_id(a: number, b: number, c: number): void;
|
|
120
|
+
export function comp_get_ship_with_clone(a: number, b: number, c: number, d: number): number;
|
|
121
|
+
export function comp_get_ship_entity_id(a: number, b: number, c: number, d: number, e: number): void;
|
|
122
|
+
export function comp_get_ship_by_eid_with_clone(a: number, b: number, c: number): number;
|
|
123
|
+
export function comp_default_formation(a: number): number;
|
|
124
|
+
export function comp_adjusted_anti_air(a: number, b: number): number;
|
|
125
|
+
export function comp_fighter_power(a: number, b: number, c: number, d: number): void;
|
|
126
|
+
export function comp_elos(a: number, b: number, c: number): void;
|
|
127
|
+
export function comp_transport_point(a: number): number;
|
|
128
|
+
export function comp_create_warfare_ship_environment(a: number, b: number, c: number): number;
|
|
100
129
|
export function __wbg_org_free(a: number): void;
|
|
101
130
|
export function __wbg_get_org_id(a: number, b: number): void;
|
|
102
131
|
export function __wbg_set_org_id(a: number, b: number, c: number): void;
|
|
@@ -134,7 +163,6 @@ export function org_is_single(a: number): number;
|
|
|
134
163
|
export function org_is_combined(a: number): number;
|
|
135
164
|
export function org_interception_power(a: number): number;
|
|
136
165
|
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
166
|
export function org_default(): number;
|
|
139
167
|
export function __wbg_analyzer_free(a: number): void;
|
|
140
168
|
export function analyzer_analyze_anti_air(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
@@ -143,35 +171,6 @@ export function analyzer_analyze_night_cutin(a: number, b: number, c: number, d:
|
|
|
143
171
|
export function analyzer_analyze_contact_chance(a: number, b: number): number;
|
|
144
172
|
export function analyzer_analyze_warfare(a: number, b: number, c: number, d: number): number;
|
|
145
173
|
export function analyzer_analyze_fleet_cutin(a: number, b: number, c: number): number;
|
|
146
|
-
export function __wbg_comp_free(a: number): void;
|
|
147
|
-
export function __wbg_get_comp_org_type(a: number): number;
|
|
148
|
-
export function __wbg_set_comp_org_type(a: number, b: number): void;
|
|
149
|
-
export function __wbg_get_comp_hq_level(a: number): number;
|
|
150
|
-
export function __wbg_set_comp_hq_level(a: number, b: number): void;
|
|
151
|
-
export function __wbg_get_comp_main(a: number): number;
|
|
152
|
-
export function __wbg_set_comp_main(a: number, b: number): void;
|
|
153
|
-
export function __wbg_get_comp_escort(a: number): number;
|
|
154
|
-
export function __wbg_set_comp_escort(a: number, b: number): void;
|
|
155
|
-
export function __wbg_get_comp_route_sup(a: number): number;
|
|
156
|
-
export function __wbg_set_comp_route_sup(a: number, b: number): void;
|
|
157
|
-
export function __wbg_get_comp_boss_sup(a: number): number;
|
|
158
|
-
export function __wbg_set_comp_boss_sup(a: number, b: number): void;
|
|
159
|
-
export function comp_side(a: number): number;
|
|
160
|
-
export function comp_is_combined(a: number): number;
|
|
161
|
-
export function comp_is_player(a: number): number;
|
|
162
|
-
export function comp_is_enemy(a: number): number;
|
|
163
|
-
export function comp_has_route_sup(a: number): number;
|
|
164
|
-
export function comp_meta(a: number): number;
|
|
165
|
-
export function comp_get_fleet_id(a: number, b: number, c: number): void;
|
|
166
|
-
export function comp_get_ship_with_clone(a: number, b: number, c: number, d: number): number;
|
|
167
|
-
export function comp_get_ship_entity_id(a: number, b: number, c: number, d: number, e: number): void;
|
|
168
|
-
export function comp_get_ship_by_eid_with_clone(a: number, b: number, c: number): number;
|
|
169
|
-
export function comp_default_formation(a: number): number;
|
|
170
|
-
export function comp_adjusted_anti_air(a: number, b: number): number;
|
|
171
|
-
export function comp_fighter_power(a: number, b: number, c: number, d: number): void;
|
|
172
|
-
export function comp_elos(a: number, b: number, c: number): void;
|
|
173
|
-
export function comp_transport_point(a: number): number;
|
|
174
|
-
export function comp_create_warfare_ship_environment(a: number, b: number, c: number): number;
|
|
175
174
|
export function __wbg_airsquadron_free(a: number): void;
|
|
176
175
|
export function __wbg_get_airsquadron_id(a: number, b: number): void;
|
|
177
176
|
export function __wbg_set_airsquadron_id(a: number, b: number, c: number): void;
|
|
@@ -222,10 +221,10 @@ export function fhcore_create_comp_by_map_enemy(a: number, b: number, c: number,
|
|
|
222
221
|
export function fhcore_create_default_ship(a: number): number;
|
|
223
222
|
export function fhcore_create_analyzer(a: number): number;
|
|
224
223
|
export function fhcore_simulate_shelling_support(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
225
|
-
export function set_panic_hook(): void;
|
|
226
224
|
export function ship_state_day_gunfit_accuracy(a: number, b: number): void;
|
|
227
225
|
export function ship_state_night_gunfit_accuracy(a: number, b: number): void;
|
|
228
226
|
export function ship_gunfit_accuracy(a: number, b: number): number;
|
|
227
|
+
export function set_panic_hook(): void;
|
|
229
228
|
export function __wbg_ibonuses_free(a: number): void;
|
|
230
229
|
export function __wbg_get_ibonuses_shelling_power(a: number): number;
|
|
231
230
|
export function __wbg_set_ibonuses_shelling_power(a: number, b: number): void;
|