fleethub-core 1.11.12 → 1.11.14
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 +38 -37
- package/node/fleethub_core.js +9 -9
- package/node/fleethub_core_bg.wasm +0 -0
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +38 -37
- package/pkg/fleethub_core_bg.js +9 -9
- package/pkg/fleethub_core_bg.wasm +0 -0
package/node/fleethub_core.d.ts
CHANGED
|
@@ -185,6 +185,18 @@ export interface ShipState extends GearVecState, SlotSizeVecState {
|
|
|
185
185
|
|
|
186
186
|
export type ShipKey = "s1" | "s2" | "s3" | "s4" | "s5" | "s6" | "s7";
|
|
187
187
|
|
|
188
|
+
export interface AttackAnalysis {
|
|
189
|
+
attacker_is_player: boolean;
|
|
190
|
+
attacker_ship_id: number;
|
|
191
|
+
target_ship_id: number;
|
|
192
|
+
historical_params: HistoricalParams;
|
|
193
|
+
day: ActionReport<DayPhaseAttackStyle>;
|
|
194
|
+
night: ActionReport<NightPhaseAttackStyle>;
|
|
195
|
+
closing_torpedo: ActionReport<TorpedoAttackStyle>;
|
|
196
|
+
opening_asw: ActionReport<AswAttackStyle>;
|
|
197
|
+
support_shelling: ActionReport<SupportShellingStyle>;
|
|
198
|
+
}
|
|
199
|
+
|
|
188
200
|
export type DayCutin =
|
|
189
201
|
| "Zuiun"
|
|
190
202
|
| "AirSea"
|
|
@@ -230,22 +242,6 @@ export type DayCutinLike = DayCutin | FleetCutin;
|
|
|
230
242
|
|
|
231
243
|
export type NightCutinLike = NightCutin | FleetCutin;
|
|
232
244
|
|
|
233
|
-
export type SingleFormation =
|
|
234
|
-
| "LineAhead"
|
|
235
|
-
| "DoubleLine"
|
|
236
|
-
| "Diamond"
|
|
237
|
-
| "Echelon"
|
|
238
|
-
| "LineAbreast"
|
|
239
|
-
| "Vanguard";
|
|
240
|
-
|
|
241
|
-
export type CombinedFormation =
|
|
242
|
-
| "Cruising1"
|
|
243
|
-
| "Cruising2"
|
|
244
|
-
| "Cruising3"
|
|
245
|
-
| "Cruising4";
|
|
246
|
-
|
|
247
|
-
export type Formation = SingleFormation | CombinedFormation;
|
|
248
|
-
|
|
249
245
|
export type GearType =
|
|
250
246
|
| "Unknown"
|
|
251
247
|
| "SmallMainGun"
|
|
@@ -322,12 +318,23 @@ export type GearCategory =
|
|
|
322
318
|
| "LandBased"
|
|
323
319
|
| "Misc";
|
|
324
320
|
|
|
321
|
+
export type NodeId = string;
|
|
322
|
+
|
|
323
|
+
export interface NodeState {
|
|
324
|
+
map?: number;
|
|
325
|
+
node?: NodeId;
|
|
326
|
+
phase?: number;
|
|
327
|
+
debuff?: boolean;
|
|
328
|
+
disable_historical_mod?: boolean;
|
|
329
|
+
}
|
|
330
|
+
|
|
325
331
|
export type SpeedGroup = "A" | "B1" | "B2" | "C";
|
|
326
332
|
|
|
327
333
|
export interface SupportShellingSimulatorParams {
|
|
328
334
|
attacker_formation?: Formation;
|
|
329
335
|
target_formation?: Formation;
|
|
330
336
|
engagement: Engagement;
|
|
337
|
+
node_state: NodeState;
|
|
331
338
|
}
|
|
332
339
|
|
|
333
340
|
export interface MasterShip {
|
|
@@ -419,17 +426,21 @@ export interface DayContactChance {
|
|
|
419
426
|
total: number;
|
|
420
427
|
}
|
|
421
428
|
|
|
422
|
-
export
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
429
|
+
export type SingleFormation =
|
|
430
|
+
| "LineAhead"
|
|
431
|
+
| "DoubleLine"
|
|
432
|
+
| "Diamond"
|
|
433
|
+
| "Echelon"
|
|
434
|
+
| "LineAbreast"
|
|
435
|
+
| "Vanguard";
|
|
436
|
+
|
|
437
|
+
export type CombinedFormation =
|
|
438
|
+
| "Cruising1"
|
|
439
|
+
| "Cruising2"
|
|
440
|
+
| "Cruising3"
|
|
441
|
+
| "Cruising4";
|
|
442
|
+
|
|
443
|
+
export type Formation = SingleFormation | CombinedFormation;
|
|
433
444
|
|
|
434
445
|
export interface GearState {
|
|
435
446
|
id?: string;
|
|
@@ -447,16 +458,6 @@ export interface GearVecState {
|
|
|
447
458
|
gx?: GearState;
|
|
448
459
|
}
|
|
449
460
|
|
|
450
|
-
export type NodeId = string;
|
|
451
|
-
|
|
452
|
-
export interface NodeState {
|
|
453
|
-
map?: number;
|
|
454
|
-
node?: NodeId;
|
|
455
|
-
phase?: number;
|
|
456
|
-
debuff?: boolean;
|
|
457
|
-
disable_historical_mod?: boolean;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
461
|
export type FhResult<T> = { Ok: T } | { Err: string };
|
|
461
462
|
|
|
462
463
|
export interface MasterBattleDefinitions {
|
package/node/fleethub_core.js
CHANGED
|
@@ -2919,7 +2919,7 @@ class Ship {
|
|
|
2919
2919
|
}
|
|
2920
2920
|
module.exports.Ship = Ship;
|
|
2921
2921
|
|
|
2922
|
-
module.exports.
|
|
2922
|
+
module.exports.__wbg_createEquipmentBonuses_9d77f4ee13daa4c9 = function(arg0, arg1) {
|
|
2923
2923
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2924
2924
|
return addHeapObject(ret);
|
|
2925
2925
|
};
|
|
@@ -2973,14 +2973,6 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
|
2973
2973
|
}
|
|
2974
2974
|
};
|
|
2975
2975
|
|
|
2976
|
-
module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
|
|
2977
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
2978
|
-
}, arguments) };
|
|
2979
|
-
|
|
2980
|
-
module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
|
|
2981
|
-
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
2982
|
-
}, arguments) };
|
|
2983
|
-
|
|
2984
2976
|
module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
|
|
2985
2977
|
const ret = getObject(arg0).crypto;
|
|
2986
2978
|
return addHeapObject(ret);
|
|
@@ -3027,6 +3019,14 @@ module.exports.__wbindgen_is_function = function(arg0) {
|
|
|
3027
3019
|
return ret;
|
|
3028
3020
|
};
|
|
3029
3021
|
|
|
3022
|
+
module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
|
|
3023
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3024
|
+
}, arguments) };
|
|
3025
|
+
|
|
3026
|
+
module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
|
|
3027
|
+
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
3028
|
+
}, arguments) };
|
|
3029
|
+
|
|
3030
3030
|
module.exports.__wbg_new_898a68150f225f2e = function() {
|
|
3031
3031
|
const ret = new Array();
|
|
3032
3032
|
return addHeapObject(ret);
|
|
Binary file
|
package/package.json
CHANGED
package/pkg/fleethub_core.d.ts
CHANGED
|
@@ -185,6 +185,18 @@ export interface ShipState extends GearVecState, SlotSizeVecState {
|
|
|
185
185
|
|
|
186
186
|
export type ShipKey = "s1" | "s2" | "s3" | "s4" | "s5" | "s6" | "s7";
|
|
187
187
|
|
|
188
|
+
export interface AttackAnalysis {
|
|
189
|
+
attacker_is_player: boolean;
|
|
190
|
+
attacker_ship_id: number;
|
|
191
|
+
target_ship_id: number;
|
|
192
|
+
historical_params: HistoricalParams;
|
|
193
|
+
day: ActionReport<DayPhaseAttackStyle>;
|
|
194
|
+
night: ActionReport<NightPhaseAttackStyle>;
|
|
195
|
+
closing_torpedo: ActionReport<TorpedoAttackStyle>;
|
|
196
|
+
opening_asw: ActionReport<AswAttackStyle>;
|
|
197
|
+
support_shelling: ActionReport<SupportShellingStyle>;
|
|
198
|
+
}
|
|
199
|
+
|
|
188
200
|
export type DayCutin =
|
|
189
201
|
| "Zuiun"
|
|
190
202
|
| "AirSea"
|
|
@@ -230,22 +242,6 @@ export type DayCutinLike = DayCutin | FleetCutin;
|
|
|
230
242
|
|
|
231
243
|
export type NightCutinLike = NightCutin | FleetCutin;
|
|
232
244
|
|
|
233
|
-
export type SingleFormation =
|
|
234
|
-
| "LineAhead"
|
|
235
|
-
| "DoubleLine"
|
|
236
|
-
| "Diamond"
|
|
237
|
-
| "Echelon"
|
|
238
|
-
| "LineAbreast"
|
|
239
|
-
| "Vanguard";
|
|
240
|
-
|
|
241
|
-
export type CombinedFormation =
|
|
242
|
-
| "Cruising1"
|
|
243
|
-
| "Cruising2"
|
|
244
|
-
| "Cruising3"
|
|
245
|
-
| "Cruising4";
|
|
246
|
-
|
|
247
|
-
export type Formation = SingleFormation | CombinedFormation;
|
|
248
|
-
|
|
249
245
|
export type GearType =
|
|
250
246
|
| "Unknown"
|
|
251
247
|
| "SmallMainGun"
|
|
@@ -322,12 +318,23 @@ export type GearCategory =
|
|
|
322
318
|
| "LandBased"
|
|
323
319
|
| "Misc";
|
|
324
320
|
|
|
321
|
+
export type NodeId = string;
|
|
322
|
+
|
|
323
|
+
export interface NodeState {
|
|
324
|
+
map?: number;
|
|
325
|
+
node?: NodeId;
|
|
326
|
+
phase?: number;
|
|
327
|
+
debuff?: boolean;
|
|
328
|
+
disable_historical_mod?: boolean;
|
|
329
|
+
}
|
|
330
|
+
|
|
325
331
|
export type SpeedGroup = "A" | "B1" | "B2" | "C";
|
|
326
332
|
|
|
327
333
|
export interface SupportShellingSimulatorParams {
|
|
328
334
|
attacker_formation?: Formation;
|
|
329
335
|
target_formation?: Formation;
|
|
330
336
|
engagement: Engagement;
|
|
337
|
+
node_state: NodeState;
|
|
331
338
|
}
|
|
332
339
|
|
|
333
340
|
export interface MasterShip {
|
|
@@ -419,17 +426,21 @@ export interface DayContactChance {
|
|
|
419
426
|
total: number;
|
|
420
427
|
}
|
|
421
428
|
|
|
422
|
-
export
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
429
|
+
export type SingleFormation =
|
|
430
|
+
| "LineAhead"
|
|
431
|
+
| "DoubleLine"
|
|
432
|
+
| "Diamond"
|
|
433
|
+
| "Echelon"
|
|
434
|
+
| "LineAbreast"
|
|
435
|
+
| "Vanguard";
|
|
436
|
+
|
|
437
|
+
export type CombinedFormation =
|
|
438
|
+
| "Cruising1"
|
|
439
|
+
| "Cruising2"
|
|
440
|
+
| "Cruising3"
|
|
441
|
+
| "Cruising4";
|
|
442
|
+
|
|
443
|
+
export type Formation = SingleFormation | CombinedFormation;
|
|
433
444
|
|
|
434
445
|
export interface GearState {
|
|
435
446
|
id?: string;
|
|
@@ -447,16 +458,6 @@ export interface GearVecState {
|
|
|
447
458
|
gx?: GearState;
|
|
448
459
|
}
|
|
449
460
|
|
|
450
|
-
export type NodeId = string;
|
|
451
|
-
|
|
452
|
-
export interface NodeState {
|
|
453
|
-
map?: number;
|
|
454
|
-
node?: NodeId;
|
|
455
|
-
phase?: number;
|
|
456
|
-
debuff?: boolean;
|
|
457
|
-
disable_historical_mod?: boolean;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
461
|
export type FhResult<T> = { Ok: T } | { Err: string };
|
|
461
462
|
|
|
462
463
|
export interface MasterBattleDefinitions {
|
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -2917,7 +2917,7 @@ export class Ship {
|
|
|
2917
2917
|
}
|
|
2918
2918
|
}
|
|
2919
2919
|
|
|
2920
|
-
export function
|
|
2920
|
+
export function __wbg_createEquipmentBonuses_9d77f4ee13daa4c9(arg0, arg1) {
|
|
2921
2921
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2922
2922
|
return addHeapObject(ret);
|
|
2923
2923
|
};
|
|
@@ -2971,14 +2971,6 @@ export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
|
|
|
2971
2971
|
}
|
|
2972
2972
|
};
|
|
2973
2973
|
|
|
2974
|
-
export function __wbg_getRandomValues_37fa2ca9e4e07fab() { return handleError(function (arg0, arg1) {
|
|
2975
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
2976
|
-
}, arguments) };
|
|
2977
|
-
|
|
2978
|
-
export function __wbg_randomFillSync_dc1e9a60c158336d() { return handleError(function (arg0, arg1) {
|
|
2979
|
-
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
2980
|
-
}, arguments) };
|
|
2981
|
-
|
|
2982
2974
|
export function __wbg_crypto_c48a774b022d20ac(arg0) {
|
|
2983
2975
|
const ret = getObject(arg0).crypto;
|
|
2984
2976
|
return addHeapObject(ret);
|
|
@@ -3025,6 +3017,14 @@ export function __wbindgen_is_function(arg0) {
|
|
|
3025
3017
|
return ret;
|
|
3026
3018
|
};
|
|
3027
3019
|
|
|
3020
|
+
export function __wbg_getRandomValues_37fa2ca9e4e07fab() { return handleError(function (arg0, arg1) {
|
|
3021
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3022
|
+
}, arguments) };
|
|
3023
|
+
|
|
3024
|
+
export function __wbg_randomFillSync_dc1e9a60c158336d() { return handleError(function (arg0, arg1) {
|
|
3025
|
+
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
3026
|
+
}, arguments) };
|
|
3027
|
+
|
|
3028
3028
|
export function __wbg_new_898a68150f225f2e() {
|
|
3029
3029
|
const ret = new Array();
|
|
3030
3030
|
return addHeapObject(ret);
|
|
Binary file
|