fleethub-core 1.11.6 → 1.11.7
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 +47 -46
- package/node/fleethub_core.js +5 -6
- package/node/fleethub_core_bg.wasm +0 -0
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +47 -46
- package/pkg/fleethub_core_bg.js +5 -6
- package/pkg/fleethub_core_bg.wasm +0 -0
package/node/fleethub_core.d.ts
CHANGED
|
@@ -8,12 +8,6 @@ export function set_panic_hook(): void;
|
|
|
8
8
|
* @returns {ShipConditions}
|
|
9
9
|
*/
|
|
10
10
|
export function parse_ship_conditions(value: ShipConditions): ShipConditions;
|
|
11
|
-
export interface SupportShellingSimulatorParams {
|
|
12
|
-
attacker_formation?: Formation;
|
|
13
|
-
target_formation?: Formation;
|
|
14
|
-
engagement: Engagement;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
11
|
export interface AttackPower {
|
|
18
12
|
precap: number;
|
|
19
13
|
is_capped: boolean;
|
|
@@ -189,6 +183,12 @@ export interface OrgState {
|
|
|
189
183
|
|
|
190
184
|
export type FleetKey = "f1" | "f2" | "f3" | "f4";
|
|
191
185
|
|
|
186
|
+
export interface SupportShellingSimulatorParams {
|
|
187
|
+
attacker_formation?: Formation;
|
|
188
|
+
target_formation?: Formation;
|
|
189
|
+
engagement: Engagement;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
192
|
export interface EquippabilityRule {
|
|
193
193
|
ship: CompiledEvaler;
|
|
194
194
|
keys?: string[];
|
|
@@ -200,13 +200,14 @@ export interface MasterEquippability {
|
|
|
200
200
|
equip_stype: EquipStype[];
|
|
201
201
|
equip_exslot: number[];
|
|
202
202
|
equip_ship: MstEquipShip[];
|
|
203
|
-
equip_exslot_ship: MstEquipExslotShip
|
|
203
|
+
equip_exslot_ship: Record<number, MstEquipExslotShip>;
|
|
204
204
|
rules: EquippabilityRule[];
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
export interface MstEquipExslotShip {
|
|
208
|
-
|
|
209
|
-
api_ship_ids: number
|
|
208
|
+
api_ctypes: Record<number, number> | null;
|
|
209
|
+
api_ship_ids: Record<number, number> | null;
|
|
210
|
+
api_stypes: Record<number, number> | null;
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
export interface MstEquipShip {
|
|
@@ -252,14 +253,6 @@ export interface AttackAnalyzerShipConfig
|
|
|
252
253
|
fleet_los_mod?: number | null;
|
|
253
254
|
}
|
|
254
255
|
|
|
255
|
-
export type OrgType =
|
|
256
|
-
| "Single"
|
|
257
|
-
| "CarrierTaskForce"
|
|
258
|
-
| "SurfaceTaskForce"
|
|
259
|
-
| "TransportEscort"
|
|
260
|
-
| "EnemySingle"
|
|
261
|
-
| "EnemyCombined";
|
|
262
|
-
|
|
263
256
|
export interface MasterShip {
|
|
264
257
|
ship_id: number;
|
|
265
258
|
name: string;
|
|
@@ -331,6 +324,14 @@ export interface SupportShellingStyle {
|
|
|
331
324
|
attack_type: SupportShellingType;
|
|
332
325
|
}
|
|
333
326
|
|
|
327
|
+
export type OrgType =
|
|
328
|
+
| "Single"
|
|
329
|
+
| "CarrierTaskForce"
|
|
330
|
+
| "SurfaceTaskForce"
|
|
331
|
+
| "TransportEscort"
|
|
332
|
+
| "EnemySingle"
|
|
333
|
+
| "EnemyCombined";
|
|
334
|
+
|
|
334
335
|
export type GearVecInput = GearInput[];
|
|
335
336
|
|
|
336
337
|
export interface GearInput {
|
|
@@ -538,11 +539,6 @@ export type SpecialEnemyType =
|
|
|
538
539
|
|
|
539
540
|
export type SpeedGroup = "A" | "B1" | "B2" | "C";
|
|
540
541
|
|
|
541
|
-
export interface MoveShipPayload {
|
|
542
|
-
current: [string, string, ShipKey];
|
|
543
|
-
target: [string | null, string, ShipKey];
|
|
544
|
-
}
|
|
545
|
-
|
|
546
542
|
export interface FleetCutinReport<T> {
|
|
547
543
|
cutin: FleetCutin;
|
|
548
544
|
rate: number | null;
|
|
@@ -629,6 +625,18 @@ export interface BattleDefinitions {
|
|
|
629
625
|
historical_bonuses: HistoricalBonusDef[];
|
|
630
626
|
}
|
|
631
627
|
|
|
628
|
+
export interface FleetState {
|
|
629
|
+
id?: string;
|
|
630
|
+
len?: number;
|
|
631
|
+
s1?: ShipState;
|
|
632
|
+
s2?: ShipState;
|
|
633
|
+
s3?: ShipState;
|
|
634
|
+
s4?: ShipState;
|
|
635
|
+
s5?: ShipState;
|
|
636
|
+
s6?: ShipState;
|
|
637
|
+
s7?: ShipState;
|
|
638
|
+
}
|
|
639
|
+
|
|
632
640
|
export interface ShipMeta {
|
|
633
641
|
id: string;
|
|
634
642
|
ship_id: number;
|
|
@@ -686,6 +694,13 @@ export interface ShipState extends GearVecState, SlotSizeVecState {
|
|
|
686
694
|
|
|
687
695
|
export type ShipKey = "s1" | "s2" | "s3" | "s4" | "s5" | "s6" | "s7";
|
|
688
696
|
|
|
697
|
+
export type SlotSizeVec = (number | null)[];
|
|
698
|
+
|
|
699
|
+
export interface MoveShipPayload {
|
|
700
|
+
current: [string, string, ShipKey];
|
|
701
|
+
target: [string | null, string, ShipKey];
|
|
702
|
+
}
|
|
703
|
+
|
|
689
704
|
export interface MasterBattleDefinitions {
|
|
690
705
|
formation: NestedFormationDef[];
|
|
691
706
|
anti_air_cutin: AntiAirCutinDef[];
|
|
@@ -766,18 +781,6 @@ export interface AntiAirReport {
|
|
|
766
781
|
anti_air_propellant_barrage_chance: number | null;
|
|
767
782
|
}
|
|
768
783
|
|
|
769
|
-
export interface FleetState {
|
|
770
|
-
id?: string;
|
|
771
|
-
len?: number;
|
|
772
|
-
s1?: ShipState;
|
|
773
|
-
s2?: ShipState;
|
|
774
|
-
s3?: ShipState;
|
|
775
|
-
s4?: ShipState;
|
|
776
|
-
s5?: ShipState;
|
|
777
|
-
s6?: ShipState;
|
|
778
|
-
s7?: ShipState;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
784
|
export interface GearState {
|
|
782
785
|
id?: string;
|
|
783
786
|
gear_id: number;
|
|
@@ -794,8 +797,6 @@ export interface GearVecState {
|
|
|
794
797
|
gx?: GearState;
|
|
795
798
|
}
|
|
796
799
|
|
|
797
|
-
export type MoraleState = "Sparkle" | "Normal" | "Orange" | "Red";
|
|
798
|
-
|
|
799
800
|
export type ShipCategory =
|
|
800
801
|
| "Battleship"
|
|
801
802
|
| "AircraftCarrier"
|
|
@@ -831,8 +832,6 @@ export type ShipType =
|
|
|
831
832
|
| "CT"
|
|
832
833
|
| "AO";
|
|
833
834
|
|
|
834
|
-
export type SlotSizeVec = (number | null)[];
|
|
835
|
-
|
|
836
835
|
export type Histogram<K extends keyof any, V> = Partial<Record<K, V>>;
|
|
837
836
|
|
|
838
837
|
export type CompiledEvaler = string;
|
|
@@ -856,6 +855,8 @@ export interface ActionReport<T> {
|
|
|
856
855
|
|
|
857
856
|
export type AirWaveType = "Jet" | "LandBase" | "Carrier";
|
|
858
857
|
|
|
858
|
+
export type MoraleState = "Sparkle" | "Normal" | "Orange" | "Red";
|
|
859
|
+
|
|
859
860
|
export type Side = "Player" | "Enemy";
|
|
860
861
|
|
|
861
862
|
export type Align = "Left" | "Right";
|
|
@@ -1088,7 +1089,7 @@ export class Analyzer {
|
|
|
1088
1089
|
config: ShipAnalyzerConfig,
|
|
1089
1090
|
left: Ship,
|
|
1090
1091
|
right: Ship,
|
|
1091
|
-
attacker_is_left: boolean
|
|
1092
|
+
attacker_is_left: boolean
|
|
1092
1093
|
): AttackAnalysis;
|
|
1093
1094
|
/**
|
|
1094
1095
|
* @param {NodeAttackAnalyzerConfig} config
|
|
@@ -1103,7 +1104,7 @@ export class Analyzer {
|
|
|
1103
1104
|
left_comp: Comp,
|
|
1104
1105
|
left_ship: Ship,
|
|
1105
1106
|
right_comp: Comp,
|
|
1106
|
-
right_ship: Ship
|
|
1107
|
+
right_ship: Ship
|
|
1107
1108
|
): NodeAttackAnalysis;
|
|
1108
1109
|
/**
|
|
1109
1110
|
* @param {Comp} comp
|
|
@@ -1122,7 +1123,7 @@ export class Analyzer {
|
|
|
1122
1123
|
player_comp: Comp,
|
|
1123
1124
|
enemy_comp: Comp,
|
|
1124
1125
|
config: NodeAttackAnalyzerConfig,
|
|
1125
|
-
times: number
|
|
1126
|
+
times: number
|
|
1126
1127
|
): SimulatorResult;
|
|
1127
1128
|
}
|
|
1128
1129
|
/**
|
|
@@ -1202,7 +1203,7 @@ export class Comp {
|
|
|
1202
1203
|
*/
|
|
1203
1204
|
fighter_power(
|
|
1204
1205
|
escort_participates: boolean,
|
|
1205
|
-
air_type: AirWaveType
|
|
1206
|
+
air_type: AirWaveType
|
|
1206
1207
|
): number | undefined;
|
|
1207
1208
|
/**
|
|
1208
1209
|
* マップ索敵
|
|
@@ -1341,7 +1342,7 @@ export class Fleet {
|
|
|
1341
1342
|
get_remaining_fuel(
|
|
1342
1343
|
id: string,
|
|
1343
1344
|
rate: number,
|
|
1344
|
-
ceil: boolean
|
|
1345
|
+
ceil: boolean
|
|
1345
1346
|
): number | undefined;
|
|
1346
1347
|
/**
|
|
1347
1348
|
* @param {string} id
|
|
@@ -1352,7 +1353,7 @@ export class Fleet {
|
|
|
1352
1353
|
get_remaining_ammo(
|
|
1353
1354
|
id: string,
|
|
1354
1355
|
rate: number,
|
|
1355
|
-
ceil: boolean
|
|
1356
|
+
ceil: boolean
|
|
1356
1357
|
): number | undefined;
|
|
1357
1358
|
/**
|
|
1358
1359
|
* @returns {number}
|
|
@@ -1733,7 +1734,7 @@ export class Org {
|
|
|
1733
1734
|
create_move_ship_payload(
|
|
1734
1735
|
id: string,
|
|
1735
1736
|
x: number,
|
|
1736
|
-
y: number
|
|
1737
|
+
y: number
|
|
1737
1738
|
): MoveShipPayload | undefined;
|
|
1738
1739
|
/**
|
|
1739
1740
|
* @param {FleetKey} key
|
|
@@ -1962,7 +1963,7 @@ export class Ship {
|
|
|
1962
1963
|
evasion_term(
|
|
1963
1964
|
formation_mod: number,
|
|
1964
1965
|
postcap_additive: number,
|
|
1965
|
-
postcap_multiplicative: number
|
|
1966
|
+
postcap_multiplicative: number
|
|
1966
1967
|
): number | undefined;
|
|
1967
1968
|
/**
|
|
1968
1969
|
* @param {number} armor_penetration
|
package/node/fleethub_core.js
CHANGED
|
@@ -182,17 +182,16 @@ function passArray16ToWasm0(arg, malloc) {
|
|
|
182
182
|
WASM_VECTOR_LEN = arg.length;
|
|
183
183
|
return ptr;
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
function getArrayU16FromWasm0(ptr, len) {
|
|
187
|
-
ptr = ptr >>> 0;
|
|
188
|
-
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
189
|
-
}
|
|
190
185
|
/**
|
|
191
186
|
*/
|
|
192
187
|
module.exports.set_panic_hook = function() {
|
|
193
188
|
wasm.set_panic_hook();
|
|
194
189
|
};
|
|
195
190
|
|
|
191
|
+
function getArrayU16FromWasm0(ptr, len) {
|
|
192
|
+
ptr = ptr >>> 0;
|
|
193
|
+
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
194
|
+
}
|
|
196
195
|
/**
|
|
197
196
|
* @param {ShipConditions} value
|
|
198
197
|
* @returns {ShipConditions}
|
|
@@ -2933,7 +2932,7 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
2933
2932
|
return addHeapObject(ret);
|
|
2934
2933
|
};
|
|
2935
2934
|
|
|
2936
|
-
module.exports.
|
|
2935
|
+
module.exports.__wbg_createEquipmentBonuses_6a1a4721ce4d6ff7 = function(arg0, arg1) {
|
|
2937
2936
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2938
2937
|
return addHeapObject(ret);
|
|
2939
2938
|
};
|
|
Binary file
|
package/package.json
CHANGED
package/pkg/fleethub_core.d.ts
CHANGED
|
@@ -8,12 +8,6 @@ export function set_panic_hook(): void;
|
|
|
8
8
|
* @returns {ShipConditions}
|
|
9
9
|
*/
|
|
10
10
|
export function parse_ship_conditions(value: ShipConditions): ShipConditions;
|
|
11
|
-
export interface SupportShellingSimulatorParams {
|
|
12
|
-
attacker_formation?: Formation;
|
|
13
|
-
target_formation?: Formation;
|
|
14
|
-
engagement: Engagement;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
11
|
export interface AttackPower {
|
|
18
12
|
precap: number;
|
|
19
13
|
is_capped: boolean;
|
|
@@ -189,6 +183,12 @@ export interface OrgState {
|
|
|
189
183
|
|
|
190
184
|
export type FleetKey = "f1" | "f2" | "f3" | "f4";
|
|
191
185
|
|
|
186
|
+
export interface SupportShellingSimulatorParams {
|
|
187
|
+
attacker_formation?: Formation;
|
|
188
|
+
target_formation?: Formation;
|
|
189
|
+
engagement: Engagement;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
192
|
export interface EquippabilityRule {
|
|
193
193
|
ship: CompiledEvaler;
|
|
194
194
|
keys?: string[];
|
|
@@ -200,13 +200,14 @@ export interface MasterEquippability {
|
|
|
200
200
|
equip_stype: EquipStype[];
|
|
201
201
|
equip_exslot: number[];
|
|
202
202
|
equip_ship: MstEquipShip[];
|
|
203
|
-
equip_exslot_ship: MstEquipExslotShip
|
|
203
|
+
equip_exslot_ship: Record<number, MstEquipExslotShip>;
|
|
204
204
|
rules: EquippabilityRule[];
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
export interface MstEquipExslotShip {
|
|
208
|
-
|
|
209
|
-
api_ship_ids: number
|
|
208
|
+
api_ctypes: Record<number, number> | null;
|
|
209
|
+
api_ship_ids: Record<number, number> | null;
|
|
210
|
+
api_stypes: Record<number, number> | null;
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
export interface MstEquipShip {
|
|
@@ -252,14 +253,6 @@ export interface AttackAnalyzerShipConfig
|
|
|
252
253
|
fleet_los_mod?: number | null;
|
|
253
254
|
}
|
|
254
255
|
|
|
255
|
-
export type OrgType =
|
|
256
|
-
| "Single"
|
|
257
|
-
| "CarrierTaskForce"
|
|
258
|
-
| "SurfaceTaskForce"
|
|
259
|
-
| "TransportEscort"
|
|
260
|
-
| "EnemySingle"
|
|
261
|
-
| "EnemyCombined";
|
|
262
|
-
|
|
263
256
|
export interface MasterShip {
|
|
264
257
|
ship_id: number;
|
|
265
258
|
name: string;
|
|
@@ -331,6 +324,14 @@ export interface SupportShellingStyle {
|
|
|
331
324
|
attack_type: SupportShellingType;
|
|
332
325
|
}
|
|
333
326
|
|
|
327
|
+
export type OrgType =
|
|
328
|
+
| "Single"
|
|
329
|
+
| "CarrierTaskForce"
|
|
330
|
+
| "SurfaceTaskForce"
|
|
331
|
+
| "TransportEscort"
|
|
332
|
+
| "EnemySingle"
|
|
333
|
+
| "EnemyCombined";
|
|
334
|
+
|
|
334
335
|
export type GearVecInput = GearInput[];
|
|
335
336
|
|
|
336
337
|
export interface GearInput {
|
|
@@ -538,11 +539,6 @@ export type SpecialEnemyType =
|
|
|
538
539
|
|
|
539
540
|
export type SpeedGroup = "A" | "B1" | "B2" | "C";
|
|
540
541
|
|
|
541
|
-
export interface MoveShipPayload {
|
|
542
|
-
current: [string, string, ShipKey];
|
|
543
|
-
target: [string | null, string, ShipKey];
|
|
544
|
-
}
|
|
545
|
-
|
|
546
542
|
export interface FleetCutinReport<T> {
|
|
547
543
|
cutin: FleetCutin;
|
|
548
544
|
rate: number | null;
|
|
@@ -629,6 +625,18 @@ export interface BattleDefinitions {
|
|
|
629
625
|
historical_bonuses: HistoricalBonusDef[];
|
|
630
626
|
}
|
|
631
627
|
|
|
628
|
+
export interface FleetState {
|
|
629
|
+
id?: string;
|
|
630
|
+
len?: number;
|
|
631
|
+
s1?: ShipState;
|
|
632
|
+
s2?: ShipState;
|
|
633
|
+
s3?: ShipState;
|
|
634
|
+
s4?: ShipState;
|
|
635
|
+
s5?: ShipState;
|
|
636
|
+
s6?: ShipState;
|
|
637
|
+
s7?: ShipState;
|
|
638
|
+
}
|
|
639
|
+
|
|
632
640
|
export interface ShipMeta {
|
|
633
641
|
id: string;
|
|
634
642
|
ship_id: number;
|
|
@@ -686,6 +694,13 @@ export interface ShipState extends GearVecState, SlotSizeVecState {
|
|
|
686
694
|
|
|
687
695
|
export type ShipKey = "s1" | "s2" | "s3" | "s4" | "s5" | "s6" | "s7";
|
|
688
696
|
|
|
697
|
+
export type SlotSizeVec = (number | null)[];
|
|
698
|
+
|
|
699
|
+
export interface MoveShipPayload {
|
|
700
|
+
current: [string, string, ShipKey];
|
|
701
|
+
target: [string | null, string, ShipKey];
|
|
702
|
+
}
|
|
703
|
+
|
|
689
704
|
export interface MasterBattleDefinitions {
|
|
690
705
|
formation: NestedFormationDef[];
|
|
691
706
|
anti_air_cutin: AntiAirCutinDef[];
|
|
@@ -766,18 +781,6 @@ export interface AntiAirReport {
|
|
|
766
781
|
anti_air_propellant_barrage_chance: number | null;
|
|
767
782
|
}
|
|
768
783
|
|
|
769
|
-
export interface FleetState {
|
|
770
|
-
id?: string;
|
|
771
|
-
len?: number;
|
|
772
|
-
s1?: ShipState;
|
|
773
|
-
s2?: ShipState;
|
|
774
|
-
s3?: ShipState;
|
|
775
|
-
s4?: ShipState;
|
|
776
|
-
s5?: ShipState;
|
|
777
|
-
s6?: ShipState;
|
|
778
|
-
s7?: ShipState;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
784
|
export interface GearState {
|
|
782
785
|
id?: string;
|
|
783
786
|
gear_id: number;
|
|
@@ -794,8 +797,6 @@ export interface GearVecState {
|
|
|
794
797
|
gx?: GearState;
|
|
795
798
|
}
|
|
796
799
|
|
|
797
|
-
export type MoraleState = "Sparkle" | "Normal" | "Orange" | "Red";
|
|
798
|
-
|
|
799
800
|
export type ShipCategory =
|
|
800
801
|
| "Battleship"
|
|
801
802
|
| "AircraftCarrier"
|
|
@@ -831,8 +832,6 @@ export type ShipType =
|
|
|
831
832
|
| "CT"
|
|
832
833
|
| "AO";
|
|
833
834
|
|
|
834
|
-
export type SlotSizeVec = (number | null)[];
|
|
835
|
-
|
|
836
835
|
export type Histogram<K extends keyof any, V> = Partial<Record<K, V>>;
|
|
837
836
|
|
|
838
837
|
export type CompiledEvaler = string;
|
|
@@ -856,6 +855,8 @@ export interface ActionReport<T> {
|
|
|
856
855
|
|
|
857
856
|
export type AirWaveType = "Jet" | "LandBase" | "Carrier";
|
|
858
857
|
|
|
858
|
+
export type MoraleState = "Sparkle" | "Normal" | "Orange" | "Red";
|
|
859
|
+
|
|
859
860
|
export type Side = "Player" | "Enemy";
|
|
860
861
|
|
|
861
862
|
export type Align = "Left" | "Right";
|
|
@@ -1088,7 +1089,7 @@ export class Analyzer {
|
|
|
1088
1089
|
config: ShipAnalyzerConfig,
|
|
1089
1090
|
left: Ship,
|
|
1090
1091
|
right: Ship,
|
|
1091
|
-
attacker_is_left: boolean
|
|
1092
|
+
attacker_is_left: boolean
|
|
1092
1093
|
): AttackAnalysis;
|
|
1093
1094
|
/**
|
|
1094
1095
|
* @param {NodeAttackAnalyzerConfig} config
|
|
@@ -1103,7 +1104,7 @@ export class Analyzer {
|
|
|
1103
1104
|
left_comp: Comp,
|
|
1104
1105
|
left_ship: Ship,
|
|
1105
1106
|
right_comp: Comp,
|
|
1106
|
-
right_ship: Ship
|
|
1107
|
+
right_ship: Ship
|
|
1107
1108
|
): NodeAttackAnalysis;
|
|
1108
1109
|
/**
|
|
1109
1110
|
* @param {Comp} comp
|
|
@@ -1122,7 +1123,7 @@ export class Analyzer {
|
|
|
1122
1123
|
player_comp: Comp,
|
|
1123
1124
|
enemy_comp: Comp,
|
|
1124
1125
|
config: NodeAttackAnalyzerConfig,
|
|
1125
|
-
times: number
|
|
1126
|
+
times: number
|
|
1126
1127
|
): SimulatorResult;
|
|
1127
1128
|
}
|
|
1128
1129
|
/**
|
|
@@ -1202,7 +1203,7 @@ export class Comp {
|
|
|
1202
1203
|
*/
|
|
1203
1204
|
fighter_power(
|
|
1204
1205
|
escort_participates: boolean,
|
|
1205
|
-
air_type: AirWaveType
|
|
1206
|
+
air_type: AirWaveType
|
|
1206
1207
|
): number | undefined;
|
|
1207
1208
|
/**
|
|
1208
1209
|
* マップ索敵
|
|
@@ -1341,7 +1342,7 @@ export class Fleet {
|
|
|
1341
1342
|
get_remaining_fuel(
|
|
1342
1343
|
id: string,
|
|
1343
1344
|
rate: number,
|
|
1344
|
-
ceil: boolean
|
|
1345
|
+
ceil: boolean
|
|
1345
1346
|
): number | undefined;
|
|
1346
1347
|
/**
|
|
1347
1348
|
* @param {string} id
|
|
@@ -1352,7 +1353,7 @@ export class Fleet {
|
|
|
1352
1353
|
get_remaining_ammo(
|
|
1353
1354
|
id: string,
|
|
1354
1355
|
rate: number,
|
|
1355
|
-
ceil: boolean
|
|
1356
|
+
ceil: boolean
|
|
1356
1357
|
): number | undefined;
|
|
1357
1358
|
/**
|
|
1358
1359
|
* @returns {number}
|
|
@@ -1733,7 +1734,7 @@ export class Org {
|
|
|
1733
1734
|
create_move_ship_payload(
|
|
1734
1735
|
id: string,
|
|
1735
1736
|
x: number,
|
|
1736
|
-
y: number
|
|
1737
|
+
y: number
|
|
1737
1738
|
): MoveShipPayload | undefined;
|
|
1738
1739
|
/**
|
|
1739
1740
|
* @param {FleetKey} key
|
|
@@ -1962,7 +1963,7 @@ export class Ship {
|
|
|
1962
1963
|
evasion_term(
|
|
1963
1964
|
formation_mod: number,
|
|
1964
1965
|
postcap_additive: number,
|
|
1965
|
-
postcap_multiplicative: number
|
|
1966
|
+
postcap_multiplicative: number
|
|
1966
1967
|
): number | undefined;
|
|
1967
1968
|
/**
|
|
1968
1969
|
* @param {number} armor_penetration
|
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -188,17 +188,16 @@ function passArray16ToWasm0(arg, malloc) {
|
|
|
188
188
|
WASM_VECTOR_LEN = arg.length;
|
|
189
189
|
return ptr;
|
|
190
190
|
}
|
|
191
|
-
|
|
192
|
-
function getArrayU16FromWasm0(ptr, len) {
|
|
193
|
-
ptr = ptr >>> 0;
|
|
194
|
-
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
195
|
-
}
|
|
196
191
|
/**
|
|
197
192
|
*/
|
|
198
193
|
export function set_panic_hook() {
|
|
199
194
|
wasm.set_panic_hook();
|
|
200
195
|
}
|
|
201
196
|
|
|
197
|
+
function getArrayU16FromWasm0(ptr, len) {
|
|
198
|
+
ptr = ptr >>> 0;
|
|
199
|
+
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
200
|
+
}
|
|
202
201
|
/**
|
|
203
202
|
* @param {ShipConditions} value
|
|
204
203
|
* @returns {ShipConditions}
|
|
@@ -2931,7 +2930,7 @@ export function __wbindgen_string_new(arg0, arg1) {
|
|
|
2931
2930
|
return addHeapObject(ret);
|
|
2932
2931
|
};
|
|
2933
2932
|
|
|
2934
|
-
export function
|
|
2933
|
+
export function __wbg_createEquipmentBonuses_6a1a4721ce4d6ff7(arg0, arg1) {
|
|
2935
2934
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2936
2935
|
return addHeapObject(ret);
|
|
2937
2936
|
};
|
|
Binary file
|