fleethub-core 1.3.2 → 1.4.1
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 +551 -500
- package/node/fleethub_core.js +75 -123
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +52 -50
- package/package.json +5 -2
- package/pkg/fleethub_core.d.ts +551 -500
- package/pkg/fleethub_core_bg.js +74 -122
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +52 -50
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createEquipmentBonuses } from 'equipment-bonus';
|
|
1
2
|
import * as wasm from './fleethub_core_bg.wasm';
|
|
2
3
|
|
|
3
4
|
const heap = new Array(32).fill(undefined);
|
|
@@ -6,6 +7,20 @@ heap.push(undefined, null, true, false);
|
|
|
6
7
|
|
|
7
8
|
function getObject(idx) { return heap[idx]; }
|
|
8
9
|
|
|
10
|
+
let heap_next = heap.length;
|
|
11
|
+
|
|
12
|
+
function dropObject(idx) {
|
|
13
|
+
if (idx < 36) return;
|
|
14
|
+
heap[idx] = heap_next;
|
|
15
|
+
heap_next = idx;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function takeObject(idx) {
|
|
19
|
+
const ret = getObject(idx);
|
|
20
|
+
dropObject(idx);
|
|
21
|
+
return ret;
|
|
22
|
+
}
|
|
23
|
+
|
|
9
24
|
let WASM_VECTOR_LEN = 0;
|
|
10
25
|
|
|
11
26
|
let cachegetUint8Memory0 = null;
|
|
@@ -79,20 +94,6 @@ function getInt32Memory0() {
|
|
|
79
94
|
return cachegetInt32Memory0;
|
|
80
95
|
}
|
|
81
96
|
|
|
82
|
-
let heap_next = heap.length;
|
|
83
|
-
|
|
84
|
-
function dropObject(idx) {
|
|
85
|
-
if (idx < 36) return;
|
|
86
|
-
heap[idx] = heap_next;
|
|
87
|
-
heap_next = idx;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
function takeObject(idx) {
|
|
91
|
-
const ret = getObject(idx);
|
|
92
|
-
dropObject(idx);
|
|
93
|
-
return ret;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
97
|
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
97
98
|
|
|
98
99
|
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
@@ -112,94 +113,14 @@ function addHeapObject(obj) {
|
|
|
112
113
|
return idx;
|
|
113
114
|
}
|
|
114
115
|
|
|
115
|
-
function debugString(val) {
|
|
116
|
-
// primitive types
|
|
117
|
-
const type = typeof val;
|
|
118
|
-
if (type == 'number' || type == 'boolean' || val == null) {
|
|
119
|
-
return `${val}`;
|
|
120
|
-
}
|
|
121
|
-
if (type == 'string') {
|
|
122
|
-
return `"${val}"`;
|
|
123
|
-
}
|
|
124
|
-
if (type == 'symbol') {
|
|
125
|
-
const description = val.description;
|
|
126
|
-
if (description == null) {
|
|
127
|
-
return 'Symbol';
|
|
128
|
-
} else {
|
|
129
|
-
return `Symbol(${description})`;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
if (type == 'function') {
|
|
133
|
-
const name = val.name;
|
|
134
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
135
|
-
return `Function(${name})`;
|
|
136
|
-
} else {
|
|
137
|
-
return 'Function';
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
// objects
|
|
141
|
-
if (Array.isArray(val)) {
|
|
142
|
-
const length = val.length;
|
|
143
|
-
let debug = '[';
|
|
144
|
-
if (length > 0) {
|
|
145
|
-
debug += debugString(val[0]);
|
|
146
|
-
}
|
|
147
|
-
for(let i = 1; i < length; i++) {
|
|
148
|
-
debug += ', ' + debugString(val[i]);
|
|
149
|
-
}
|
|
150
|
-
debug += ']';
|
|
151
|
-
return debug;
|
|
152
|
-
}
|
|
153
|
-
// Test for built-in
|
|
154
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
155
|
-
let className;
|
|
156
|
-
if (builtInMatches.length > 1) {
|
|
157
|
-
className = builtInMatches[1];
|
|
158
|
-
} else {
|
|
159
|
-
// Failed to match the standard '[object ClassName]'
|
|
160
|
-
return toString.call(val);
|
|
161
|
-
}
|
|
162
|
-
if (className == 'Object') {
|
|
163
|
-
// we're a user defined class or Object
|
|
164
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
165
|
-
// easier than looping through ownProperties of `val`.
|
|
166
|
-
try {
|
|
167
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
168
|
-
} catch (_) {
|
|
169
|
-
return 'Object';
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
// errors
|
|
173
|
-
if (val instanceof Error) {
|
|
174
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
175
|
-
}
|
|
176
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
177
|
-
return className;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
116
|
const u32CvtShim = new Uint32Array(2);
|
|
181
117
|
|
|
182
118
|
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
|
|
183
119
|
|
|
184
|
-
function _assertClass(instance, klass) {
|
|
185
|
-
if (!(instance instanceof klass)) {
|
|
186
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
187
|
-
}
|
|
188
|
-
return instance.ptr;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
120
|
function isLikeNone(x) {
|
|
192
121
|
return x === undefined || x === null;
|
|
193
122
|
}
|
|
194
123
|
|
|
195
|
-
let cachegetFloat64Memory0 = null;
|
|
196
|
-
function getFloat64Memory0() {
|
|
197
|
-
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
198
|
-
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
199
|
-
}
|
|
200
|
-
return cachegetFloat64Memory0;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
124
|
let cachegetUint32Memory0 = null;
|
|
204
125
|
function getUint32Memory0() {
|
|
205
126
|
if (cachegetUint32Memory0 === null || cachegetUint32Memory0.buffer !== wasm.memory.buffer) {
|
|
@@ -218,6 +139,14 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
218
139
|
return result;
|
|
219
140
|
}
|
|
220
141
|
|
|
142
|
+
let cachegetFloat64Memory0 = null;
|
|
143
|
+
function getFloat64Memory0() {
|
|
144
|
+
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
145
|
+
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
146
|
+
}
|
|
147
|
+
return cachegetFloat64Memory0;
|
|
148
|
+
}
|
|
149
|
+
|
|
221
150
|
let cachegetUint16Memory0 = null;
|
|
222
151
|
function getUint16Memory0() {
|
|
223
152
|
if (cachegetUint16Memory0 === null || cachegetUint16Memory0.buffer !== wasm.memory.buffer) {
|
|
@@ -229,10 +158,12 @@ function getUint16Memory0() {
|
|
|
229
158
|
function getArrayU16FromWasm0(ptr, len) {
|
|
230
159
|
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
231
160
|
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
161
|
+
|
|
162
|
+
function _assertClass(instance, klass) {
|
|
163
|
+
if (!(instance instanceof klass)) {
|
|
164
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
165
|
+
}
|
|
166
|
+
return instance.ptr;
|
|
236
167
|
}
|
|
237
168
|
|
|
238
169
|
function passArray16ToWasm0(arg, malloc) {
|
|
@@ -252,6 +183,11 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
252
183
|
WASM_VECTOR_LEN = arg.length;
|
|
253
184
|
return ptr;
|
|
254
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
*/
|
|
188
|
+
export function set_panic_hook() {
|
|
189
|
+
wasm.set_panic_hook();
|
|
190
|
+
}
|
|
255
191
|
|
|
256
192
|
function handleError(f, args) {
|
|
257
193
|
try {
|
|
@@ -812,13 +748,12 @@ export class FhCore {
|
|
|
812
748
|
wasm.__wbg_fhcore_free(ptr);
|
|
813
749
|
}
|
|
814
750
|
/**
|
|
815
|
-
* @param {
|
|
816
|
-
* @param {Function} js_fn
|
|
751
|
+
* @param {MasterData} js_master
|
|
817
752
|
*/
|
|
818
|
-
constructor(js_master
|
|
753
|
+
constructor(js_master) {
|
|
819
754
|
try {
|
|
820
755
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
821
|
-
wasm.fhcore_new(retptr, addHeapObject(js_master)
|
|
756
|
+
wasm.fhcore_new(retptr, addHeapObject(js_master));
|
|
822
757
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
823
758
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
824
759
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -879,6 +814,13 @@ export class FhCore {
|
|
|
879
814
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
880
815
|
}
|
|
881
816
|
/**
|
|
817
|
+
* @returns {Ship[]}
|
|
818
|
+
*/
|
|
819
|
+
create_all_ships() {
|
|
820
|
+
const ret = wasm.fhcore_create_all_ships(this.ptr);
|
|
821
|
+
return takeObject(ret);
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
882
824
|
* @param {Uint16Array} main
|
|
883
825
|
* @param {Uint16Array | undefined} escort
|
|
884
826
|
* @returns {Comp}
|
|
@@ -3096,6 +3038,13 @@ export class Ship {
|
|
|
3096
3038
|
return ret;
|
|
3097
3039
|
}
|
|
3098
3040
|
/**
|
|
3041
|
+
* @returns {number}
|
|
3042
|
+
*/
|
|
3043
|
+
get torpedo_accuracy_mod() {
|
|
3044
|
+
const ret = wasm.ship_torpedo_accuracy_mod(this.ptr);
|
|
3045
|
+
return ret;
|
|
3046
|
+
}
|
|
3047
|
+
/**
|
|
3099
3048
|
* @returns {boolean}
|
|
3100
3049
|
*/
|
|
3101
3050
|
is_installation() {
|
|
@@ -3273,6 +3222,20 @@ export class Ship {
|
|
|
3273
3222
|
}
|
|
3274
3223
|
}
|
|
3275
3224
|
|
|
3225
|
+
export function __wbg_ship_new(arg0) {
|
|
3226
|
+
const ret = Ship.__wrap(arg0);
|
|
3227
|
+
return addHeapObject(ret);
|
|
3228
|
+
};
|
|
3229
|
+
|
|
3230
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
|
3231
|
+
takeObject(arg0);
|
|
3232
|
+
};
|
|
3233
|
+
|
|
3234
|
+
export function __wbg_createEquipmentBonuses_d374fed5e2951497(arg0, arg1) {
|
|
3235
|
+
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
3236
|
+
return addHeapObject(ret);
|
|
3237
|
+
};
|
|
3238
|
+
|
|
3276
3239
|
export function __wbindgen_json_serialize(arg0, arg1) {
|
|
3277
3240
|
const obj = getObject(arg1);
|
|
3278
3241
|
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -3282,10 +3245,6 @@ export function __wbindgen_json_serialize(arg0, arg1) {
|
|
|
3282
3245
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3283
3246
|
};
|
|
3284
3247
|
|
|
3285
|
-
export function __wbindgen_object_drop_ref(arg0) {
|
|
3286
|
-
takeObject(arg0);
|
|
3287
|
-
};
|
|
3288
|
-
|
|
3289
3248
|
export function __wbindgen_string_new(arg0, arg1) {
|
|
3290
3249
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
3291
3250
|
return addHeapObject(ret);
|
|
@@ -3296,10 +3255,6 @@ export function __wbindgen_json_parse(arg0, arg1) {
|
|
|
3296
3255
|
return addHeapObject(ret);
|
|
3297
3256
|
};
|
|
3298
3257
|
|
|
3299
|
-
export function __wbg_error_8ff19d586a987aef(arg0) {
|
|
3300
|
-
console.error(getObject(arg0));
|
|
3301
|
-
};
|
|
3302
|
-
|
|
3303
3258
|
export function __wbg_new_693216e109162396() {
|
|
3304
3259
|
const ret = new Error();
|
|
3305
3260
|
return addHeapObject(ret);
|
|
@@ -3375,6 +3330,11 @@ export function __wbg_msCrypto_d07655bf62361f21(arg0) {
|
|
|
3375
3330
|
return addHeapObject(ret);
|
|
3376
3331
|
};
|
|
3377
3332
|
|
|
3333
|
+
export function __wbg_new_94fb1279cf6afea5() {
|
|
3334
|
+
const ret = new Array();
|
|
3335
|
+
return addHeapObject(ret);
|
|
3336
|
+
};
|
|
3337
|
+
|
|
3378
3338
|
export function __wbg_newnoargs_e23b458e372830de(arg0, arg1) {
|
|
3379
3339
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3380
3340
|
return addHeapObject(ret);
|
|
@@ -3390,10 +3350,10 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
3390
3350
|
return addHeapObject(ret);
|
|
3391
3351
|
};
|
|
3392
3352
|
|
|
3393
|
-
export function
|
|
3394
|
-
const ret = getObject(arg0).
|
|
3395
|
-
return
|
|
3396
|
-
}
|
|
3353
|
+
export function __wbg_push_40c6a90f1805aa90(arg0, arg1) {
|
|
3354
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
3355
|
+
return ret;
|
|
3356
|
+
};
|
|
3397
3357
|
|
|
3398
3358
|
export function __wbg_self_99737b4dcdf6f0d8() { return handleError(function () {
|
|
3399
3359
|
const ret = self.self;
|
|
@@ -3449,14 +3409,6 @@ export function __wbg_subarray_da527dbd24eafb6b(arg0, arg1, arg2) {
|
|
|
3449
3409
|
return addHeapObject(ret);
|
|
3450
3410
|
};
|
|
3451
3411
|
|
|
3452
|
-
export function __wbindgen_debug_string(arg0, arg1) {
|
|
3453
|
-
const ret = debugString(getObject(arg1));
|
|
3454
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3455
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3456
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3457
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3458
|
-
};
|
|
3459
|
-
|
|
3460
3412
|
export function __wbindgen_throw(arg0, arg1) {
|
|
3461
3413
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
3462
3414
|
};
|
|
Binary file
|
|
@@ -1,54 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function __wbg_airsquadron_free(a: number): void;
|
|
5
|
-
export function __wbg_get_airsquadron_id(a: number, b: number): void;
|
|
6
|
-
export function __wbg_set_airsquadron_id(a: number, b: number, c: number): void;
|
|
7
|
-
export function __wbg_get_airsquadron_xxh3(a: number, b: number): void;
|
|
8
|
-
export function __wbg_set_airsquadron_xxh3(a: number, b: number, c: number): void;
|
|
9
|
-
export function __wbg_get_airsquadron_mode(a: number): number;
|
|
10
|
-
export function __wbg_set_airsquadron_mode(a: number, b: number): void;
|
|
11
|
-
export function airsquadron_get_gear(a: number, b: number, c: number): number;
|
|
12
|
-
export function airsquadron_get_slot_size(a: number, b: number, c: number): void;
|
|
13
|
-
export function airsquadron_get_max_slot_size(a: number, b: number, c: number): void;
|
|
14
|
-
export function airsquadron_fighter_power(a: number): number;
|
|
15
|
-
export function airsquadron_interception_power(a: number): number;
|
|
16
|
-
export function airsquadron_radius(a: number): number;
|
|
17
|
-
export function __wbg_analyzer_free(a: number): void;
|
|
18
|
-
export function analyzer_analyze_anti_air(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
19
|
-
export function analyzer_analyze_day_cutin(a: number, b: number): number;
|
|
20
|
-
export function analyzer_analyze_night_cutin(a: number, b: number, c: number, d: number): number;
|
|
21
|
-
export function analyzer_analyze_contact_chance(a: number, b: number): number;
|
|
22
|
-
export function analyzer_analyze_warfare(a: number, b: number, c: number, d: number): number;
|
|
23
|
-
export function analyzer_analyze_fleet_cutin(a: number, b: number, c: number): number;
|
|
24
|
-
export function __wbg_comp_free(a: number): void;
|
|
25
|
-
export function __wbg_get_comp_org_type(a: number): number;
|
|
26
|
-
export function __wbg_set_comp_org_type(a: number, b: number): void;
|
|
27
|
-
export function __wbg_get_comp_hq_level(a: number): number;
|
|
28
|
-
export function __wbg_set_comp_hq_level(a: number, b: number): void;
|
|
29
|
-
export function __wbg_get_comp_main(a: number): number;
|
|
30
|
-
export function __wbg_set_comp_main(a: number, b: number): void;
|
|
31
|
-
export function __wbg_get_comp_escort(a: number): number;
|
|
32
|
-
export function __wbg_set_comp_escort(a: number, b: number): void;
|
|
33
|
-
export function __wbg_get_comp_route_sup(a: number): number;
|
|
34
|
-
export function __wbg_set_comp_route_sup(a: number, b: number): void;
|
|
35
|
-
export function __wbg_get_comp_boss_sup(a: number): number;
|
|
36
|
-
export function __wbg_set_comp_boss_sup(a: number, b: number): void;
|
|
37
|
-
export function comp_side(a: number): number;
|
|
38
|
-
export function comp_is_combined(a: number): number;
|
|
39
|
-
export function comp_is_player(a: number): number;
|
|
40
|
-
export function comp_is_enemy(a: number): number;
|
|
41
|
-
export function comp_meta(a: number): number;
|
|
42
|
-
export function comp_get_fleet_id(a: number, b: number, c: number): void;
|
|
43
|
-
export function comp_get_ship_with_clone(a: number, b: number, c: number, d: number): number;
|
|
44
|
-
export function comp_get_ship_entity_id(a: number, b: number, c: number, d: number, e: number): void;
|
|
45
|
-
export function comp_get_ship_by_eid_with_clone(a: number, b: number, c: number): number;
|
|
46
|
-
export function comp_default_formation(a: number): number;
|
|
47
|
-
export function comp_adjusted_anti_air(a: number, b: number): number;
|
|
48
|
-
export function comp_fighter_power(a: number, b: number, c: number, d: number): void;
|
|
49
|
-
export function comp_elos(a: number, b: number, c: number): void;
|
|
50
|
-
export function comp_transport_point(a: number): number;
|
|
51
|
-
export function comp_create_warfare_ship_environment(a: number, b: number, c: number): number;
|
|
52
4
|
export function __wbg_org_free(a: number): void;
|
|
53
5
|
export function __wbg_get_org_id(a: number, b: number): void;
|
|
54
6
|
export function __wbg_set_org_id(a: number, b: number, c: number): void;
|
|
@@ -88,6 +40,54 @@ export function org_interception_power(a: number): number;
|
|
|
88
40
|
export function org_high_altitude_interception_power(a: number): number;
|
|
89
41
|
export function org_create_warfare_ship_environment(a: number, b: number, c: number): number;
|
|
90
42
|
export function org_default(): number;
|
|
43
|
+
export function __wbg_analyzer_free(a: number): void;
|
|
44
|
+
export function analyzer_analyze_anti_air(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
45
|
+
export function analyzer_analyze_day_cutin(a: number, b: number): number;
|
|
46
|
+
export function analyzer_analyze_night_cutin(a: number, b: number, c: number, d: number): number;
|
|
47
|
+
export function analyzer_analyze_contact_chance(a: number, b: number): number;
|
|
48
|
+
export function analyzer_analyze_warfare(a: number, b: number, c: number, d: number): number;
|
|
49
|
+
export function analyzer_analyze_fleet_cutin(a: number, b: number, c: number): number;
|
|
50
|
+
export function __wbg_comp_free(a: number): void;
|
|
51
|
+
export function __wbg_get_comp_org_type(a: number): number;
|
|
52
|
+
export function __wbg_set_comp_org_type(a: number, b: number): void;
|
|
53
|
+
export function __wbg_get_comp_hq_level(a: number): number;
|
|
54
|
+
export function __wbg_set_comp_hq_level(a: number, b: number): void;
|
|
55
|
+
export function __wbg_get_comp_main(a: number): number;
|
|
56
|
+
export function __wbg_set_comp_main(a: number, b: number): void;
|
|
57
|
+
export function __wbg_get_comp_escort(a: number): number;
|
|
58
|
+
export function __wbg_set_comp_escort(a: number, b: number): void;
|
|
59
|
+
export function __wbg_get_comp_route_sup(a: number): number;
|
|
60
|
+
export function __wbg_set_comp_route_sup(a: number, b: number): void;
|
|
61
|
+
export function __wbg_get_comp_boss_sup(a: number): number;
|
|
62
|
+
export function __wbg_set_comp_boss_sup(a: number, b: number): void;
|
|
63
|
+
export function comp_side(a: number): number;
|
|
64
|
+
export function comp_is_combined(a: number): number;
|
|
65
|
+
export function comp_is_player(a: number): number;
|
|
66
|
+
export function comp_is_enemy(a: number): number;
|
|
67
|
+
export function comp_meta(a: number): number;
|
|
68
|
+
export function comp_get_fleet_id(a: number, b: number, c: number): void;
|
|
69
|
+
export function comp_get_ship_with_clone(a: number, b: number, c: number, d: number): number;
|
|
70
|
+
export function comp_get_ship_entity_id(a: number, b: number, c: number, d: number, e: number): void;
|
|
71
|
+
export function comp_get_ship_by_eid_with_clone(a: number, b: number, c: number): number;
|
|
72
|
+
export function comp_default_formation(a: number): number;
|
|
73
|
+
export function comp_adjusted_anti_air(a: number, b: number): number;
|
|
74
|
+
export function comp_fighter_power(a: number, b: number, c: number, d: number): void;
|
|
75
|
+
export function comp_elos(a: number, b: number, c: number): void;
|
|
76
|
+
export function comp_transport_point(a: number): number;
|
|
77
|
+
export function comp_create_warfare_ship_environment(a: number, b: number, c: number): number;
|
|
78
|
+
export function __wbg_airsquadron_free(a: number): void;
|
|
79
|
+
export function __wbg_get_airsquadron_id(a: number, b: number): void;
|
|
80
|
+
export function __wbg_set_airsquadron_id(a: number, b: number, c: number): void;
|
|
81
|
+
export function __wbg_get_airsquadron_xxh3(a: number, b: number): void;
|
|
82
|
+
export function __wbg_set_airsquadron_xxh3(a: number, b: number, c: number): void;
|
|
83
|
+
export function __wbg_get_airsquadron_mode(a: number): number;
|
|
84
|
+
export function __wbg_set_airsquadron_mode(a: number, b: number): void;
|
|
85
|
+
export function airsquadron_get_gear(a: number, b: number, c: number): number;
|
|
86
|
+
export function airsquadron_get_slot_size(a: number, b: number, c: number): void;
|
|
87
|
+
export function airsquadron_get_max_slot_size(a: number, b: number, c: number): void;
|
|
88
|
+
export function airsquadron_fighter_power(a: number): number;
|
|
89
|
+
export function airsquadron_interception_power(a: number): number;
|
|
90
|
+
export function airsquadron_radius(a: number): number;
|
|
91
91
|
export function __wbg_fleet_free(a: number): void;
|
|
92
92
|
export function __wbg_get_fleet_id(a: number, b: number): void;
|
|
93
93
|
export function __wbg_set_fleet_id(a: number, b: number, c: number): void;
|
|
@@ -113,18 +113,18 @@ export function fleet_expedition_bonus(a: number): number;
|
|
|
113
113
|
export function fleet_sum_ship_stat_by(a: number, b: number, c: number, d: number): void;
|
|
114
114
|
export function fleet_reset_battle_state(a: number): void;
|
|
115
115
|
export function __wbg_fhcore_free(a: number): void;
|
|
116
|
-
export function fhcore_new(a: number, b: number
|
|
116
|
+
export function fhcore_new(a: number, b: number): void;
|
|
117
117
|
export function fhcore_create_gear(a: number, b: number): number;
|
|
118
118
|
export function fhcore_create_ship(a: number, b: number): number;
|
|
119
119
|
export function fhcore_create_air_squadron(a: number, b: number): number;
|
|
120
120
|
export function fhcore_create_fleet(a: number, b: number): number;
|
|
121
121
|
export function fhcore_create_org(a: number, b: number): number;
|
|
122
122
|
export function fhcore_create_ship_by_id(a: number, b: number): number;
|
|
123
|
+
export function fhcore_create_all_ships(a: number): number;
|
|
123
124
|
export function fhcore_create_comp_by_map_enemy(a: number, b: number, c: number, d: number, e: number): number;
|
|
124
125
|
export function fhcore_create_default_ship(a: number): number;
|
|
125
126
|
export function fhcore_create_analyzer(a: number): number;
|
|
126
127
|
export function fhcore_simulate_shelling_support(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
127
|
-
export function set_panic_hook(): void;
|
|
128
128
|
export function __wbg_ibonuses_free(a: number): void;
|
|
129
129
|
export function __wbg_get_ibonuses_shelling_power(a: number): number;
|
|
130
130
|
export function __wbg_set_ibonuses_shelling_power(a: number, b: number): void;
|
|
@@ -241,6 +241,7 @@ export function gear_is_abyssal_patrolling_attack_hawk(a: number): number;
|
|
|
241
241
|
export function gear_expedition_bonus(a: number): number;
|
|
242
242
|
export function gear_can_be_deployed_to_land_base(a: number): number;
|
|
243
243
|
export function gear_has_proficiency(a: number): number;
|
|
244
|
+
export function set_panic_hook(): void;
|
|
244
245
|
export function __wbg_ship_free(a: number): void;
|
|
245
246
|
export function __wbg_get_ship_id(a: number, b: number): void;
|
|
246
247
|
export function __wbg_set_ship_id(a: number, b: number, c: number): void;
|
|
@@ -318,6 +319,7 @@ export function ship_luck(a: number): number;
|
|
|
318
319
|
export function ship_range(a: number): number;
|
|
319
320
|
export function ship_speed(a: number): number;
|
|
320
321
|
export function ship_accuracy(a: number): number;
|
|
322
|
+
export function ship_torpedo_accuracy_mod(a: number): number;
|
|
321
323
|
export function ship_is_installation(a: number): number;
|
|
322
324
|
export function ship_get_slot_size(a: number, b: number): number;
|
|
323
325
|
export function ship_get_max_slot_size(a: number, b: number): number;
|