fleethub-core 1.6.0 → 1.7.0
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 +342 -343
- package/node/fleethub_core.js +46 -46
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +8 -8
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +342 -343
- package/pkg/fleethub_core_bg.js +46 -46
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +8 -8
package/node/fleethub_core.js
CHANGED
|
@@ -2,15 +2,11 @@ let imports = {};
|
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
4
|
const { createEquipmentBonuses } = require(`equipment-bonus`);
|
|
5
|
-
const {
|
|
5
|
+
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
heap.push(undefined, null, true, false);
|
|
10
|
-
|
|
11
|
-
function getObject(idx) { return heap[idx]; }
|
|
7
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
12
8
|
|
|
13
|
-
|
|
9
|
+
cachedTextDecoder.decode();
|
|
14
10
|
|
|
15
11
|
let cachegetUint8Memory0 = null;
|
|
16
12
|
function getUint8Memory0() {
|
|
@@ -20,6 +16,41 @@ function getUint8Memory0() {
|
|
|
20
16
|
return cachegetUint8Memory0;
|
|
21
17
|
}
|
|
22
18
|
|
|
19
|
+
function getStringFromWasm0(ptr, len) {
|
|
20
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const heap = new Array(32).fill(undefined);
|
|
24
|
+
|
|
25
|
+
heap.push(undefined, null, true, false);
|
|
26
|
+
|
|
27
|
+
let heap_next = heap.length;
|
|
28
|
+
|
|
29
|
+
function addHeapObject(obj) {
|
|
30
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
31
|
+
const idx = heap_next;
|
|
32
|
+
heap_next = heap[idx];
|
|
33
|
+
|
|
34
|
+
heap[idx] = obj;
|
|
35
|
+
return idx;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function getObject(idx) { return heap[idx]; }
|
|
39
|
+
|
|
40
|
+
function dropObject(idx) {
|
|
41
|
+
if (idx < 36) return;
|
|
42
|
+
heap[idx] = heap_next;
|
|
43
|
+
heap_next = idx;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function takeObject(idx) {
|
|
47
|
+
const ret = getObject(idx);
|
|
48
|
+
dropObject(idx);
|
|
49
|
+
return ret;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
let WASM_VECTOR_LEN = 0;
|
|
53
|
+
|
|
23
54
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
24
55
|
|
|
25
56
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -81,37 +112,6 @@ function getInt32Memory0() {
|
|
|
81
112
|
return cachegetInt32Memory0;
|
|
82
113
|
}
|
|
83
114
|
|
|
84
|
-
let heap_next = heap.length;
|
|
85
|
-
|
|
86
|
-
function dropObject(idx) {
|
|
87
|
-
if (idx < 36) return;
|
|
88
|
-
heap[idx] = heap_next;
|
|
89
|
-
heap_next = idx;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function takeObject(idx) {
|
|
93
|
-
const ret = getObject(idx);
|
|
94
|
-
dropObject(idx);
|
|
95
|
-
return ret;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
99
|
-
|
|
100
|
-
cachedTextDecoder.decode();
|
|
101
|
-
|
|
102
|
-
function getStringFromWasm0(ptr, len) {
|
|
103
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function addHeapObject(obj) {
|
|
107
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
108
|
-
const idx = heap_next;
|
|
109
|
-
heap_next = heap[idx];
|
|
110
|
-
|
|
111
|
-
heap[idx] = obj;
|
|
112
|
-
return idx;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
115
|
const u32CvtShim = new Uint32Array(2);
|
|
116
116
|
|
|
117
117
|
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
|
|
@@ -3244,11 +3244,15 @@ class Ship {
|
|
|
3244
3244
|
}
|
|
3245
3245
|
module.exports.Ship = Ship;
|
|
3246
3246
|
|
|
3247
|
-
module.exports.
|
|
3248
|
-
const ret =
|
|
3247
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
3248
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3249
3249
|
return addHeapObject(ret);
|
|
3250
3250
|
};
|
|
3251
3251
|
|
|
3252
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
3253
|
+
takeObject(arg0);
|
|
3254
|
+
};
|
|
3255
|
+
|
|
3252
3256
|
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
3253
3257
|
const obj = getObject(arg1);
|
|
3254
3258
|
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -3258,12 +3262,8 @@ module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
|
3258
3262
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3259
3263
|
};
|
|
3260
3264
|
|
|
3261
|
-
module.exports.
|
|
3262
|
-
takeObject(arg0);
|
|
3263
|
-
};
|
|
3264
|
-
|
|
3265
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
3266
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
3265
|
+
module.exports.__wbg_createEquipmentBonuses_6cd0de83fb0e4aaa = function(arg0, arg1) {
|
|
3266
|
+
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
3267
3267
|
return addHeapObject(ret);
|
|
3268
3268
|
};
|
|
3269
3269
|
|
|
Binary file
|
|
@@ -96,13 +96,6 @@ export function ship_basic_defense_power(a: number, b: number, c: number): void;
|
|
|
96
96
|
export function ship_transport_point(a: number): number;
|
|
97
97
|
export function ship_elos(a: number, b: number, c: number): void;
|
|
98
98
|
export function ship_take_damage(a: number, b: number): void;
|
|
99
|
-
export function __wbg_analyzer_free(a: number): void;
|
|
100
|
-
export function analyzer_analyze_anti_air(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
101
|
-
export function analyzer_analyze_day_cutin(a: number, b: number): number;
|
|
102
|
-
export function analyzer_analyze_night_cutin(a: number, b: number, c: number, d: number): number;
|
|
103
|
-
export function analyzer_analyze_contact_chance(a: number, b: number): number;
|
|
104
|
-
export function analyzer_analyze_warfare(a: number, b: number, c: number, d: number): number;
|
|
105
|
-
export function analyzer_analyze_fleet_cutin(a: number, b: number, c: number): number;
|
|
106
99
|
export function __wbg_org_free(a: number): void;
|
|
107
100
|
export function __wbg_get_org_id(a: number, b: number): void;
|
|
108
101
|
export function __wbg_set_org_id(a: number, b: number, c: number): void;
|
|
@@ -142,6 +135,13 @@ export function org_interception_power(a: number): number;
|
|
|
142
135
|
export function org_high_altitude_interception_power(a: number): number;
|
|
143
136
|
export function org_create_warfare_ship_environment(a: number, b: number, c: number): number;
|
|
144
137
|
export function org_default(): number;
|
|
138
|
+
export function __wbg_analyzer_free(a: number): void;
|
|
139
|
+
export function analyzer_analyze_anti_air(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
140
|
+
export function analyzer_analyze_day_cutin(a: number, b: number): number;
|
|
141
|
+
export function analyzer_analyze_night_cutin(a: number, b: number, c: number, d: number): number;
|
|
142
|
+
export function analyzer_analyze_contact_chance(a: number, b: number): number;
|
|
143
|
+
export function analyzer_analyze_warfare(a: number, b: number, c: number, d: number): number;
|
|
144
|
+
export function analyzer_analyze_fleet_cutin(a: number, b: number, c: number): number;
|
|
145
145
|
export function __wbg_comp_free(a: number): void;
|
|
146
146
|
export function __wbg_get_comp_org_type(a: number): number;
|
|
147
147
|
export function __wbg_set_comp_org_type(a: number, b: number): void;
|
|
@@ -207,7 +207,6 @@ export function fleet_aviation_detection_score(a: number, b: number): void;
|
|
|
207
207
|
export function fleet_expedition_bonus(a: number): number;
|
|
208
208
|
export function fleet_sum_ship_stat_by(a: number, b: number, c: number, d: number): void;
|
|
209
209
|
export function fleet_reset_battle_state(a: number): void;
|
|
210
|
-
export function set_panic_hook(): void;
|
|
211
210
|
export function __wbg_fhcore_free(a: number): void;
|
|
212
211
|
export function fhcore_new(a: number, b: number): void;
|
|
213
212
|
export function fhcore_create_gear(a: number, b: number): number;
|
|
@@ -221,6 +220,7 @@ export function fhcore_create_comp_by_map_enemy(a: number, b: number, c: number,
|
|
|
221
220
|
export function fhcore_create_default_ship(a: number): number;
|
|
222
221
|
export function fhcore_create_analyzer(a: number): number;
|
|
223
222
|
export function fhcore_simulate_shelling_support(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
223
|
+
export function set_panic_hook(): void;
|
|
224
224
|
export function __wbg_ibonuses_free(a: number): void;
|
|
225
225
|
export function __wbg_get_ibonuses_shelling_power(a: number): number;
|
|
226
226
|
export function __wbg_set_ibonuses_shelling_power(a: number, b: number): void;
|