fleethub-core 1.10.4 → 1.10.5
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 -35
- package/node/fleethub_core.js +42 -28
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +1 -1
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +35 -35
- package/pkg/fleethub_core_bg.js +42 -28
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +1 -1
package/node/fleethub_core.d.ts
CHANGED
|
@@ -60,6 +60,25 @@ export interface MasterGear {
|
|
|
60
60
|
historical_aircraft_group?: number;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
export interface NodeAttackAnalyzerShipConfig extends NightFleetConditions {
|
|
64
|
+
formation?: Formation;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface NodeAttackAnalyzerConfig {
|
|
68
|
+
air_state?: AirState;
|
|
69
|
+
engagement?: Engagement;
|
|
70
|
+
node_state?: NodeState;
|
|
71
|
+
left?: NodeAttackAnalyzerShipConfig;
|
|
72
|
+
right?: NodeAttackAnalyzerShipConfig;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface NodeAttackAnalysis {
|
|
76
|
+
left: AttackAnalysis;
|
|
77
|
+
right: AttackAnalysis;
|
|
78
|
+
shelling_fleet_cutin: FleetCutinReport<ShellingStyle>[];
|
|
79
|
+
night_fleet_cutin: FleetCutinReport<NightAttackStyle>[];
|
|
80
|
+
}
|
|
81
|
+
|
|
63
82
|
export interface CompAnalyzerConfig {
|
|
64
83
|
engagement: Engagement;
|
|
65
84
|
formation: Formation;
|
|
@@ -168,6 +187,20 @@ export interface GearState {
|
|
|
168
187
|
stars?: number;
|
|
169
188
|
}
|
|
170
189
|
|
|
190
|
+
export type Role = "Main" | "Escort";
|
|
191
|
+
|
|
192
|
+
export interface ActionReport<T> {
|
|
193
|
+
data: Record<string, AttackReport<T>>;
|
|
194
|
+
damage_state_density: Histogram<DamageState, number> | null;
|
|
195
|
+
is_active: boolean;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export type GearTypeIdArray = [number, number, number, number, number];
|
|
199
|
+
|
|
200
|
+
export type Align = "Left" | "Right";
|
|
201
|
+
|
|
202
|
+
export type Side = "Player" | "Enemy";
|
|
203
|
+
|
|
171
204
|
export type ShipType =
|
|
172
205
|
| "Unknown"
|
|
173
206
|
| "DE"
|
|
@@ -203,39 +236,6 @@ export type ShipCategory =
|
|
|
203
236
|
| "Submarine"
|
|
204
237
|
| "AuxiliaryShip";
|
|
205
238
|
|
|
206
|
-
export type Role = "Main" | "Escort";
|
|
207
|
-
|
|
208
|
-
export interface NodeAttackAnalyzerShipConfig extends NightFleetConditions {
|
|
209
|
-
formation?: Formation;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export interface NodeAttackAnalyzerConfig {
|
|
213
|
-
air_state?: AirState;
|
|
214
|
-
engagement?: Engagement;
|
|
215
|
-
node_state?: NodeState;
|
|
216
|
-
left?: NodeAttackAnalyzerShipConfig;
|
|
217
|
-
right?: NodeAttackAnalyzerShipConfig;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export interface NodeAttackAnalysis {
|
|
221
|
-
left: AttackAnalysis;
|
|
222
|
-
right: AttackAnalysis;
|
|
223
|
-
shelling_fleet_cutin: FleetCutinReport<ShellingStyle>[];
|
|
224
|
-
night_fleet_cutin: FleetCutinReport<NightAttackStyle>[];
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export interface ActionReport<T> {
|
|
228
|
-
data: Record<string, AttackReport<T>>;
|
|
229
|
-
damage_state_density: Histogram<DamageState, number> | null;
|
|
230
|
-
is_active: boolean;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export type GearTypeIdArray = [number, number, number, number, number];
|
|
234
|
-
|
|
235
|
-
export type Align = "Left" | "Right";
|
|
236
|
-
|
|
237
|
-
export type Side = "Player" | "Enemy";
|
|
238
|
-
|
|
239
239
|
export interface MasterIBonuses {
|
|
240
240
|
shelling_power: MasterIBonusRule[];
|
|
241
241
|
shelling_accuracy: MasterIBonusRule[];
|
|
@@ -1804,9 +1804,9 @@ export class Ship {
|
|
|
1804
1804
|
*/
|
|
1805
1805
|
has_attr(attr: ShipAttr): boolean;
|
|
1806
1806
|
/**
|
|
1807
|
-
* @returns {
|
|
1807
|
+
* @returns {(string)[]}
|
|
1808
1808
|
*/
|
|
1809
|
-
gear_keys():
|
|
1809
|
+
gear_keys(): string[];
|
|
1810
1810
|
/**
|
|
1811
1811
|
* @param {string} key
|
|
1812
1812
|
* @returns {Gear | undefined}
|
package/node/fleethub_core.js
CHANGED
|
@@ -105,6 +105,10 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
105
105
|
return ptr;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
function isLikeNone(x) {
|
|
109
|
+
return x === undefined || x === null;
|
|
110
|
+
}
|
|
111
|
+
|
|
108
112
|
let cachedInt32Memory0 = new Int32Array();
|
|
109
113
|
|
|
110
114
|
function getInt32Memory0() {
|
|
@@ -142,10 +146,6 @@ function getFloat64Memory0() {
|
|
|
142
146
|
return cachedFloat64Memory0;
|
|
143
147
|
}
|
|
144
148
|
|
|
145
|
-
function isLikeNone(x) {
|
|
146
|
-
return x === undefined || x === null;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
149
|
let cachedUint16Memory0 = new Uint16Array();
|
|
150
150
|
|
|
151
151
|
function getUint16Memory0() {
|
|
@@ -2432,11 +2432,20 @@ class Ship {
|
|
|
2432
2432
|
return ret !== 0;
|
|
2433
2433
|
}
|
|
2434
2434
|
/**
|
|
2435
|
-
* @returns {
|
|
2435
|
+
* @returns {(string)[]}
|
|
2436
2436
|
*/
|
|
2437
2437
|
gear_keys() {
|
|
2438
|
-
|
|
2439
|
-
|
|
2438
|
+
try {
|
|
2439
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2440
|
+
wasm.ship_gear_keys(retptr, this.ptr);
|
|
2441
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2442
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2443
|
+
var v0 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
2444
|
+
wasm.__wbindgen_free(r0, r1 * 4);
|
|
2445
|
+
return v0;
|
|
2446
|
+
} finally {
|
|
2447
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2448
|
+
}
|
|
2440
2449
|
}
|
|
2441
2450
|
/**
|
|
2442
2451
|
* @param {string} key
|
|
@@ -2874,30 +2883,21 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2874
2883
|
takeObject(arg0);
|
|
2875
2884
|
};
|
|
2876
2885
|
|
|
2877
|
-
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
2878
|
-
const obj = getObject(arg1);
|
|
2879
|
-
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
2880
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2881
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2882
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
2883
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
2884
|
-
};
|
|
2885
|
-
|
|
2886
|
-
module.exports.__wbg_createEquipmentBonuses_bfb6061bf74b1305 = function(arg0, arg1) {
|
|
2887
|
-
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2888
|
-
return addHeapObject(ret);
|
|
2889
|
-
};
|
|
2890
|
-
|
|
2891
2886
|
module.exports.__wbg_ship_new = function(arg0) {
|
|
2892
2887
|
const ret = Ship.__wrap(arg0);
|
|
2893
2888
|
return addHeapObject(ret);
|
|
2894
2889
|
};
|
|
2895
2890
|
|
|
2896
|
-
module.exports.
|
|
2897
|
-
const ret =
|
|
2891
|
+
module.exports.__wbg_createEquipmentBonuses_baa4cdf178663a51 = function(arg0, arg1) {
|
|
2892
|
+
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2898
2893
|
return addHeapObject(ret);
|
|
2899
2894
|
};
|
|
2900
2895
|
|
|
2896
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2897
|
+
const ret = getObject(arg0) === undefined;
|
|
2898
|
+
return ret;
|
|
2899
|
+
};
|
|
2900
|
+
|
|
2901
2901
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
2902
2902
|
const ret = new Error();
|
|
2903
2903
|
return addHeapObject(ret);
|
|
@@ -2988,6 +2988,15 @@ module.exports.__wbg_call_97ae9d8645dc388b = function() { return handleError(fun
|
|
|
2988
2988
|
return addHeapObject(ret);
|
|
2989
2989
|
}, arguments) };
|
|
2990
2990
|
|
|
2991
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2992
|
+
const obj = getObject(arg1);
|
|
2993
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2994
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2995
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2996
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
2997
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
2998
|
+
};
|
|
2999
|
+
|
|
2991
3000
|
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2992
3001
|
const ret = getObject(arg0);
|
|
2993
3002
|
return addHeapObject(ret);
|
|
@@ -3013,11 +3022,6 @@ module.exports.__wbg_global_ba75c50d1cf384f4 = function() { return handleError(f
|
|
|
3013
3022
|
return addHeapObject(ret);
|
|
3014
3023
|
}, arguments) };
|
|
3015
3024
|
|
|
3016
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
3017
|
-
const ret = getObject(arg0) === undefined;
|
|
3018
|
-
return ret;
|
|
3019
|
-
};
|
|
3020
|
-
|
|
3021
3025
|
module.exports.__wbg_push_740e4b286702d964 = function(arg0, arg1) {
|
|
3022
3026
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
3023
3027
|
return ret;
|
|
@@ -3052,6 +3056,16 @@ module.exports.__wbg_subarray_58ad4efbb5bcb886 = function(arg0, arg1, arg2) {
|
|
|
3052
3056
|
return addHeapObject(ret);
|
|
3053
3057
|
};
|
|
3054
3058
|
|
|
3059
|
+
module.exports.__wbg_parse_e23be3fecd886e2a = function() { return handleError(function (arg0, arg1) {
|
|
3060
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
3061
|
+
return addHeapObject(ret);
|
|
3062
|
+
}, arguments) };
|
|
3063
|
+
|
|
3064
|
+
module.exports.__wbg_stringify_d6471d300ded9b68 = function() { return handleError(function (arg0) {
|
|
3065
|
+
const ret = JSON.stringify(getObject(arg0));
|
|
3066
|
+
return addHeapObject(ret);
|
|
3067
|
+
}, arguments) };
|
|
3068
|
+
|
|
3055
3069
|
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
3056
3070
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
3057
3071
|
};
|
|
Binary file
|
|
@@ -147,7 +147,7 @@ export function ship_damage_state(a: number): number;
|
|
|
147
147
|
export function ship_morale_state(a: number): number;
|
|
148
148
|
export function ship_category(a: number): number;
|
|
149
149
|
export function ship_has_attr(a: number, b: number): number;
|
|
150
|
-
export function ship_gear_keys(a: number):
|
|
150
|
+
export function ship_gear_keys(a: number, b: number): void;
|
|
151
151
|
export function ship_get_gear(a: number, b: number, c: number): number;
|
|
152
152
|
export function ship_get_damage_bound(a: number, b: number): number;
|
|
153
153
|
export function ship_get_remaining_fuel(a: number, b: number, c: number): number;
|
package/package.json
CHANGED
package/pkg/fleethub_core.d.ts
CHANGED
|
@@ -60,6 +60,25 @@ export interface MasterGear {
|
|
|
60
60
|
historical_aircraft_group?: number;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
export interface NodeAttackAnalyzerShipConfig extends NightFleetConditions {
|
|
64
|
+
formation?: Formation;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface NodeAttackAnalyzerConfig {
|
|
68
|
+
air_state?: AirState;
|
|
69
|
+
engagement?: Engagement;
|
|
70
|
+
node_state?: NodeState;
|
|
71
|
+
left?: NodeAttackAnalyzerShipConfig;
|
|
72
|
+
right?: NodeAttackAnalyzerShipConfig;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface NodeAttackAnalysis {
|
|
76
|
+
left: AttackAnalysis;
|
|
77
|
+
right: AttackAnalysis;
|
|
78
|
+
shelling_fleet_cutin: FleetCutinReport<ShellingStyle>[];
|
|
79
|
+
night_fleet_cutin: FleetCutinReport<NightAttackStyle>[];
|
|
80
|
+
}
|
|
81
|
+
|
|
63
82
|
export interface CompAnalyzerConfig {
|
|
64
83
|
engagement: Engagement;
|
|
65
84
|
formation: Formation;
|
|
@@ -168,6 +187,20 @@ export interface GearState {
|
|
|
168
187
|
stars?: number;
|
|
169
188
|
}
|
|
170
189
|
|
|
190
|
+
export type Role = "Main" | "Escort";
|
|
191
|
+
|
|
192
|
+
export interface ActionReport<T> {
|
|
193
|
+
data: Record<string, AttackReport<T>>;
|
|
194
|
+
damage_state_density: Histogram<DamageState, number> | null;
|
|
195
|
+
is_active: boolean;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export type GearTypeIdArray = [number, number, number, number, number];
|
|
199
|
+
|
|
200
|
+
export type Align = "Left" | "Right";
|
|
201
|
+
|
|
202
|
+
export type Side = "Player" | "Enemy";
|
|
203
|
+
|
|
171
204
|
export type ShipType =
|
|
172
205
|
| "Unknown"
|
|
173
206
|
| "DE"
|
|
@@ -203,39 +236,6 @@ export type ShipCategory =
|
|
|
203
236
|
| "Submarine"
|
|
204
237
|
| "AuxiliaryShip";
|
|
205
238
|
|
|
206
|
-
export type Role = "Main" | "Escort";
|
|
207
|
-
|
|
208
|
-
export interface NodeAttackAnalyzerShipConfig extends NightFleetConditions {
|
|
209
|
-
formation?: Formation;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export interface NodeAttackAnalyzerConfig {
|
|
213
|
-
air_state?: AirState;
|
|
214
|
-
engagement?: Engagement;
|
|
215
|
-
node_state?: NodeState;
|
|
216
|
-
left?: NodeAttackAnalyzerShipConfig;
|
|
217
|
-
right?: NodeAttackAnalyzerShipConfig;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export interface NodeAttackAnalysis {
|
|
221
|
-
left: AttackAnalysis;
|
|
222
|
-
right: AttackAnalysis;
|
|
223
|
-
shelling_fleet_cutin: FleetCutinReport<ShellingStyle>[];
|
|
224
|
-
night_fleet_cutin: FleetCutinReport<NightAttackStyle>[];
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export interface ActionReport<T> {
|
|
228
|
-
data: Record<string, AttackReport<T>>;
|
|
229
|
-
damage_state_density: Histogram<DamageState, number> | null;
|
|
230
|
-
is_active: boolean;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export type GearTypeIdArray = [number, number, number, number, number];
|
|
234
|
-
|
|
235
|
-
export type Align = "Left" | "Right";
|
|
236
|
-
|
|
237
|
-
export type Side = "Player" | "Enemy";
|
|
238
|
-
|
|
239
239
|
export interface MasterIBonuses {
|
|
240
240
|
shelling_power: MasterIBonusRule[];
|
|
241
241
|
shelling_accuracy: MasterIBonusRule[];
|
|
@@ -1804,9 +1804,9 @@ export class Ship {
|
|
|
1804
1804
|
*/
|
|
1805
1805
|
has_attr(attr: ShipAttr): boolean;
|
|
1806
1806
|
/**
|
|
1807
|
-
* @returns {
|
|
1807
|
+
* @returns {(string)[]}
|
|
1808
1808
|
*/
|
|
1809
|
-
gear_keys():
|
|
1809
|
+
gear_keys(): string[];
|
|
1810
1810
|
/**
|
|
1811
1811
|
* @param {string} key
|
|
1812
1812
|
* @returns {Gear | undefined}
|
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -106,6 +106,10 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
106
106
|
return ptr;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
function isLikeNone(x) {
|
|
110
|
+
return x === undefined || x === null;
|
|
111
|
+
}
|
|
112
|
+
|
|
109
113
|
let cachedInt32Memory0 = new Int32Array();
|
|
110
114
|
|
|
111
115
|
function getInt32Memory0() {
|
|
@@ -143,10 +147,6 @@ function getFloat64Memory0() {
|
|
|
143
147
|
return cachedFloat64Memory0;
|
|
144
148
|
}
|
|
145
149
|
|
|
146
|
-
function isLikeNone(x) {
|
|
147
|
-
return x === undefined || x === null;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
150
|
let cachedUint16Memory0 = new Uint16Array();
|
|
151
151
|
|
|
152
152
|
function getUint16Memory0() {
|
|
@@ -2426,11 +2426,20 @@ export class Ship {
|
|
|
2426
2426
|
return ret !== 0;
|
|
2427
2427
|
}
|
|
2428
2428
|
/**
|
|
2429
|
-
* @returns {
|
|
2429
|
+
* @returns {(string)[]}
|
|
2430
2430
|
*/
|
|
2431
2431
|
gear_keys() {
|
|
2432
|
-
|
|
2433
|
-
|
|
2432
|
+
try {
|
|
2433
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2434
|
+
wasm.ship_gear_keys(retptr, this.ptr);
|
|
2435
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2436
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2437
|
+
var v0 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
2438
|
+
wasm.__wbindgen_free(r0, r1 * 4);
|
|
2439
|
+
return v0;
|
|
2440
|
+
} finally {
|
|
2441
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2442
|
+
}
|
|
2434
2443
|
}
|
|
2435
2444
|
/**
|
|
2436
2445
|
* @param {string} key
|
|
@@ -2867,30 +2876,21 @@ export function __wbindgen_object_drop_ref(arg0) {
|
|
|
2867
2876
|
takeObject(arg0);
|
|
2868
2877
|
};
|
|
2869
2878
|
|
|
2870
|
-
export function __wbindgen_json_serialize(arg0, arg1) {
|
|
2871
|
-
const obj = getObject(arg1);
|
|
2872
|
-
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
2873
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2874
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2875
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
2876
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
2877
|
-
};
|
|
2878
|
-
|
|
2879
|
-
export function __wbg_createEquipmentBonuses_bfb6061bf74b1305(arg0, arg1) {
|
|
2880
|
-
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2881
|
-
return addHeapObject(ret);
|
|
2882
|
-
};
|
|
2883
|
-
|
|
2884
2879
|
export function __wbg_ship_new(arg0) {
|
|
2885
2880
|
const ret = Ship.__wrap(arg0);
|
|
2886
2881
|
return addHeapObject(ret);
|
|
2887
2882
|
};
|
|
2888
2883
|
|
|
2889
|
-
export function
|
|
2890
|
-
const ret =
|
|
2884
|
+
export function __wbg_createEquipmentBonuses_baa4cdf178663a51(arg0, arg1) {
|
|
2885
|
+
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2891
2886
|
return addHeapObject(ret);
|
|
2892
2887
|
};
|
|
2893
2888
|
|
|
2889
|
+
export function __wbindgen_is_undefined(arg0) {
|
|
2890
|
+
const ret = getObject(arg0) === undefined;
|
|
2891
|
+
return ret;
|
|
2892
|
+
};
|
|
2893
|
+
|
|
2894
2894
|
export function __wbg_new_abda76e883ba8a5f() {
|
|
2895
2895
|
const ret = new Error();
|
|
2896
2896
|
return addHeapObject(ret);
|
|
@@ -2981,6 +2981,15 @@ export function __wbg_call_97ae9d8645dc388b() { return handleError(function (arg
|
|
|
2981
2981
|
return addHeapObject(ret);
|
|
2982
2982
|
}, arguments) };
|
|
2983
2983
|
|
|
2984
|
+
export function __wbindgen_string_get(arg0, arg1) {
|
|
2985
|
+
const obj = getObject(arg1);
|
|
2986
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2987
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2988
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2989
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
2990
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
2991
|
+
};
|
|
2992
|
+
|
|
2984
2993
|
export function __wbindgen_object_clone_ref(arg0) {
|
|
2985
2994
|
const ret = getObject(arg0);
|
|
2986
2995
|
return addHeapObject(ret);
|
|
@@ -3006,11 +3015,6 @@ export function __wbg_global_ba75c50d1cf384f4() { return handleError(function ()
|
|
|
3006
3015
|
return addHeapObject(ret);
|
|
3007
3016
|
}, arguments) };
|
|
3008
3017
|
|
|
3009
|
-
export function __wbindgen_is_undefined(arg0) {
|
|
3010
|
-
const ret = getObject(arg0) === undefined;
|
|
3011
|
-
return ret;
|
|
3012
|
-
};
|
|
3013
|
-
|
|
3014
3018
|
export function __wbg_push_740e4b286702d964(arg0, arg1) {
|
|
3015
3019
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
3016
3020
|
return ret;
|
|
@@ -3045,6 +3049,16 @@ export function __wbg_subarray_58ad4efbb5bcb886(arg0, arg1, arg2) {
|
|
|
3045
3049
|
return addHeapObject(ret);
|
|
3046
3050
|
};
|
|
3047
3051
|
|
|
3052
|
+
export function __wbg_parse_e23be3fecd886e2a() { return handleError(function (arg0, arg1) {
|
|
3053
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
3054
|
+
return addHeapObject(ret);
|
|
3055
|
+
}, arguments) };
|
|
3056
|
+
|
|
3057
|
+
export function __wbg_stringify_d6471d300ded9b68() { return handleError(function (arg0) {
|
|
3058
|
+
const ret = JSON.stringify(getObject(arg0));
|
|
3059
|
+
return addHeapObject(ret);
|
|
3060
|
+
}, arguments) };
|
|
3061
|
+
|
|
3048
3062
|
export function __wbindgen_throw(arg0, arg1) {
|
|
3049
3063
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
3050
3064
|
};
|
|
Binary file
|
|
@@ -147,7 +147,7 @@ export function ship_damage_state(a: number): number;
|
|
|
147
147
|
export function ship_morale_state(a: number): number;
|
|
148
148
|
export function ship_category(a: number): number;
|
|
149
149
|
export function ship_has_attr(a: number, b: number): number;
|
|
150
|
-
export function ship_gear_keys(a: number):
|
|
150
|
+
export function ship_gear_keys(a: number, b: number): void;
|
|
151
151
|
export function ship_get_gear(a: number, b: number, c: number): number;
|
|
152
152
|
export function ship_get_damage_bound(a: number, b: number): number;
|
|
153
153
|
export function ship_get_remaining_fuel(a: number, b: number, c: number): number;
|