fleethub-core 1.10.6 → 1.10.8
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 +552 -551
- package/node/fleethub_core.js +33 -33
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +15 -15
- package/package.json +2 -2
- package/pkg/fleethub_core.d.ts +552 -551
- package/pkg/fleethub_core_bg.js +33 -33
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +15 -15
package/node/fleethub_core.js
CHANGED
|
@@ -4,6 +4,23 @@ let wasm;
|
|
|
4
4
|
const { createEquipmentBonuses } = require(`equipment-bonus`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
|
+
const heap = new Array(32).fill(undefined);
|
|
8
|
+
|
|
9
|
+
heap.push(undefined, null, true, false);
|
|
10
|
+
|
|
11
|
+
function getObject(idx) { return heap[idx]; }
|
|
12
|
+
|
|
13
|
+
let heap_next = heap.length;
|
|
14
|
+
|
|
15
|
+
function addHeapObject(obj) {
|
|
16
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
17
|
+
const idx = heap_next;
|
|
18
|
+
heap_next = heap[idx];
|
|
19
|
+
|
|
20
|
+
heap[idx] = obj;
|
|
21
|
+
return idx;
|
|
22
|
+
}
|
|
23
|
+
|
|
7
24
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
8
25
|
|
|
9
26
|
cachedTextDecoder.decode();
|
|
@@ -21,23 +38,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
21
38
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
22
39
|
}
|
|
23
40
|
|
|
24
|
-
const heap = new Array(32).fill(undefined);
|
|
25
|
-
|
|
26
|
-
heap.push(undefined, null, true, false);
|
|
27
|
-
|
|
28
|
-
let heap_next = heap.length;
|
|
29
|
-
|
|
30
|
-
function addHeapObject(obj) {
|
|
31
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
32
|
-
const idx = heap_next;
|
|
33
|
-
heap_next = heap[idx];
|
|
34
|
-
|
|
35
|
-
heap[idx] = obj;
|
|
36
|
-
return idx;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function getObject(idx) { return heap[idx]; }
|
|
40
|
-
|
|
41
41
|
function dropObject(idx) {
|
|
42
42
|
if (idx < 36) return;
|
|
43
43
|
heap[idx] = heap_next;
|
|
@@ -117,11 +117,6 @@ function getInt32Memory0() {
|
|
|
117
117
|
}
|
|
118
118
|
return cachedInt32Memory0;
|
|
119
119
|
}
|
|
120
|
-
/**
|
|
121
|
-
*/
|
|
122
|
-
module.exports.set_panic_hook = function() {
|
|
123
|
-
wasm.set_panic_hook();
|
|
124
|
-
};
|
|
125
120
|
|
|
126
121
|
let cachedFloat64Memory0 = new Float64Array();
|
|
127
122
|
|
|
@@ -196,6 +191,11 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
196
191
|
WASM_VECTOR_LEN = arg.length;
|
|
197
192
|
return ptr;
|
|
198
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
*/
|
|
196
|
+
module.exports.set_panic_hook = function() {
|
|
197
|
+
wasm.set_panic_hook();
|
|
198
|
+
};
|
|
199
199
|
|
|
200
200
|
function handleError(f, args) {
|
|
201
201
|
try {
|
|
@@ -1216,7 +1216,7 @@ class Gear {
|
|
|
1216
1216
|
* @returns {bigint}
|
|
1217
1217
|
*/
|
|
1218
1218
|
get hash() {
|
|
1219
|
-
const ret = wasm.
|
|
1219
|
+
const ret = wasm.__wbg_get_airsquadron_hash(this.ptr);
|
|
1220
1220
|
return BigInt.asUintN(64, ret);
|
|
1221
1221
|
}
|
|
1222
1222
|
/**
|
|
@@ -2874,6 +2874,11 @@ class Ship {
|
|
|
2874
2874
|
}
|
|
2875
2875
|
module.exports.Ship = Ship;
|
|
2876
2876
|
|
|
2877
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2878
|
+
const ret = getObject(arg0);
|
|
2879
|
+
return addHeapObject(ret);
|
|
2880
|
+
};
|
|
2881
|
+
|
|
2877
2882
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2878
2883
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2879
2884
|
return addHeapObject(ret);
|
|
@@ -2888,16 +2893,16 @@ module.exports.__wbg_ship_new = function(arg0) {
|
|
|
2888
2893
|
return addHeapObject(ret);
|
|
2889
2894
|
};
|
|
2890
2895
|
|
|
2896
|
+
module.exports.__wbg_createEquipmentBonuses_73d7564a4928cb02 = function(arg0, arg1) {
|
|
2897
|
+
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2898
|
+
return addHeapObject(ret);
|
|
2899
|
+
};
|
|
2900
|
+
|
|
2891
2901
|
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2892
2902
|
const ret = getObject(arg0) === undefined;
|
|
2893
2903
|
return ret;
|
|
2894
2904
|
};
|
|
2895
2905
|
|
|
2896
|
-
module.exports.__wbg_createEquipmentBonuses_c94896c127cc586a = function(arg0, arg1) {
|
|
2897
|
-
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2898
|
-
return addHeapObject(ret);
|
|
2899
|
-
};
|
|
2900
|
-
|
|
2901
2906
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
2902
2907
|
const ret = new Error();
|
|
2903
2908
|
return addHeapObject(ret);
|
|
@@ -2997,11 +3002,6 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2997
3002
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
2998
3003
|
};
|
|
2999
3004
|
|
|
3000
|
-
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
3001
|
-
const ret = getObject(arg0);
|
|
3002
|
-
return addHeapObject(ret);
|
|
3003
|
-
};
|
|
3004
|
-
|
|
3005
3005
|
module.exports.__wbg_self_6d479506f72c6a71 = function() { return handleError(function () {
|
|
3006
3006
|
const ret = self.self;
|
|
3007
3007
|
return addHeapObject(ret);
|
|
Binary file
|
|
@@ -16,7 +16,6 @@ export function fhcore_create_all_ships(a: number): number;
|
|
|
16
16
|
export function fhcore_create_comp_by_map_enemy(a: number, b: number, c: number, d: number, e: number): number;
|
|
17
17
|
export function fhcore_create_default_ship(a: number): number;
|
|
18
18
|
export function fhcore_create_analyzer(a: number): number;
|
|
19
|
-
export function set_panic_hook(): void;
|
|
20
19
|
export function __wbg_comp_free(a: number): void;
|
|
21
20
|
export function __wbg_get_comp_org_type(a: number): number;
|
|
22
21
|
export function __wbg_get_comp_hq_level(a: number): number;
|
|
@@ -178,10 +177,22 @@ export function analyzer_analyze_node_attack(a: number, b: number, c: number, d:
|
|
|
178
177
|
export function analyzer_analyze_comp(a: number, b: number, c: number): number;
|
|
179
178
|
export function analyzer_simulate_support_shelling(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
180
179
|
export function parse_ship_conditions(a: number): number;
|
|
180
|
+
export function __wbg_airsquadron_free(a: number): void;
|
|
181
|
+
export function __wbg_get_airsquadron_id(a: number, b: number): void;
|
|
182
|
+
export function __wbg_set_airsquadron_id(a: number, b: number, c: number): void;
|
|
183
|
+
export function __wbg_get_airsquadron_hash(a: number): number;
|
|
184
|
+
export function __wbg_set_airsquadron_hash(a: number, b: number): void;
|
|
185
|
+
export function __wbg_get_airsquadron_mode(a: number): number;
|
|
186
|
+
export function __wbg_set_airsquadron_mode(a: number, b: number): void;
|
|
187
|
+
export function airsquadron_get_gear(a: number, b: number, c: number): number;
|
|
188
|
+
export function airsquadron_get_slot_size(a: number, b: number, c: number): void;
|
|
189
|
+
export function airsquadron_get_max_slot_size(a: number, b: number, c: number): void;
|
|
190
|
+
export function airsquadron_fighter_power(a: number): number;
|
|
191
|
+
export function airsquadron_interception_power(a: number): number;
|
|
192
|
+
export function airsquadron_radius(a: number): number;
|
|
181
193
|
export function __wbg_gear_free(a: number): void;
|
|
182
194
|
export function __wbg_get_gear_id(a: number, b: number): void;
|
|
183
195
|
export function __wbg_set_gear_id(a: number, b: number, c: number): void;
|
|
184
|
-
export function __wbg_get_gear_hash(a: number): number;
|
|
185
196
|
export function __wbg_get_gear_gear_id(a: number): number;
|
|
186
197
|
export function __wbg_get_gear_stars(a: number): number;
|
|
187
198
|
export function __wbg_get_gear_exp(a: number): number;
|
|
@@ -238,20 +249,8 @@ export function gear_is_abyssal_cuttlefish_torpedo(a: number): number;
|
|
|
238
249
|
export function gear_is_abyssal_patrolling_attack_hawk(a: number): number;
|
|
239
250
|
export function gear_expedition_bonus(a: number): number;
|
|
240
251
|
export function gear_can_be_deployed_to_land_base(a: number): number;
|
|
252
|
+
export function __wbg_get_gear_hash(a: number): number;
|
|
241
253
|
export function gear_has_proficiency(a: number): number;
|
|
242
|
-
export function __wbg_airsquadron_free(a: number): void;
|
|
243
|
-
export function __wbg_get_airsquadron_id(a: number, b: number): void;
|
|
244
|
-
export function __wbg_set_airsquadron_id(a: number, b: number, c: number): void;
|
|
245
|
-
export function __wbg_get_airsquadron_hash(a: number): number;
|
|
246
|
-
export function __wbg_set_airsquadron_hash(a: number, b: number): void;
|
|
247
|
-
export function __wbg_get_airsquadron_mode(a: number): number;
|
|
248
|
-
export function __wbg_set_airsquadron_mode(a: number, b: number): void;
|
|
249
|
-
export function airsquadron_get_gear(a: number, b: number, c: number): number;
|
|
250
|
-
export function airsquadron_get_slot_size(a: number, b: number, c: number): void;
|
|
251
|
-
export function airsquadron_get_max_slot_size(a: number, b: number, c: number): void;
|
|
252
|
-
export function airsquadron_fighter_power(a: number): number;
|
|
253
|
-
export function airsquadron_interception_power(a: number): number;
|
|
254
|
-
export function airsquadron_radius(a: number): number;
|
|
255
254
|
export function __wbg_fleet_free(a: number): void;
|
|
256
255
|
export function __wbg_get_fleet_id(a: number, b: number): void;
|
|
257
256
|
export function __wbg_set_fleet_id(a: number, b: number, c: number): void;
|
|
@@ -274,6 +273,7 @@ export function fleet_aviation_detection_score(a: number, b: number): void;
|
|
|
274
273
|
export function fleet_expedition_bonus(a: number): number;
|
|
275
274
|
export function fleet_sum_ship_stat_by(a: number, b: number, c: number, d: number): void;
|
|
276
275
|
export function fleet_reset_battle_state(a: number): void;
|
|
276
|
+
export function set_panic_hook(): void;
|
|
277
277
|
export function __wbindgen_malloc(a: number): number;
|
|
278
278
|
export function __wbindgen_realloc(a: number, b: number, c: number): number;
|
|
279
279
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fleethub-core",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.8",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
"まどの <madonoharu@gmail.com>"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"equipment-bonus": "
|
|
20
|
+
"equipment-bonus": "npm:latest"
|
|
21
21
|
}
|
|
22
22
|
}
|