fleethub-core 1.12.13 → 1.12.15
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 +717 -709
- package/node/fleethub_core.js +16 -16
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +19 -19
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +717 -709
- package/pkg/fleethub_core_bg.js +16 -16
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +19 -19
package/node/fleethub_core.js
CHANGED
|
@@ -112,6 +112,22 @@ function isLikeNone(x) {
|
|
|
112
112
|
return x === undefined || x === null;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
let cachedUint16ArrayMemory0 = null;
|
|
116
|
+
|
|
117
|
+
function getUint16ArrayMemory0() {
|
|
118
|
+
if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
|
|
119
|
+
cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
|
|
120
|
+
}
|
|
121
|
+
return cachedUint16ArrayMemory0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function passArray16ToWasm0(arg, malloc) {
|
|
125
|
+
const ptr = malloc(arg.length * 2, 2) >>> 0;
|
|
126
|
+
getUint16ArrayMemory0().set(arg, ptr / 2);
|
|
127
|
+
WASM_VECTOR_LEN = arg.length;
|
|
128
|
+
return ptr;
|
|
129
|
+
}
|
|
130
|
+
|
|
115
131
|
function takeFromExternrefTable0(idx) {
|
|
116
132
|
const value = wasm.__wbindgen_export_2.get(idx);
|
|
117
133
|
wasm.__externref_table_dealloc(idx);
|
|
@@ -124,15 +140,6 @@ function _assertClass(instance, klass) {
|
|
|
124
140
|
}
|
|
125
141
|
}
|
|
126
142
|
|
|
127
|
-
let cachedUint16ArrayMemory0 = null;
|
|
128
|
-
|
|
129
|
-
function getUint16ArrayMemory0() {
|
|
130
|
-
if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
|
|
131
|
-
cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
|
|
132
|
-
}
|
|
133
|
-
return cachedUint16ArrayMemory0;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
143
|
function getArrayU16FromWasm0(ptr, len) {
|
|
137
144
|
ptr = ptr >>> 0;
|
|
138
145
|
return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
|
|
@@ -164,13 +171,6 @@ exports.parse_ship_conditions = function(value) {
|
|
|
164
171
|
return ret;
|
|
165
172
|
};
|
|
166
173
|
|
|
167
|
-
function passArray16ToWasm0(arg, malloc) {
|
|
168
|
-
const ptr = malloc(arg.length * 2, 2) >>> 0;
|
|
169
|
-
getUint16ArrayMemory0().set(arg, ptr / 2);
|
|
170
|
-
WASM_VECTOR_LEN = arg.length;
|
|
171
|
-
return ptr;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
174
|
exports.set_panic_hook = function() {
|
|
175
175
|
wasm.set_panic_hook();
|
|
176
176
|
};
|
|
Binary file
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const __wbg_analyzer_free: (a: number, b: number) => void;
|
|
5
|
+
export const __wbg_fhcore_free: (a: number, b: number) => void;
|
|
6
|
+
export const analyzer_analyze_comp: (a: number, b: number, c: any) => any;
|
|
7
|
+
export const analyzer_analyze_node_attack: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
|
|
8
|
+
export const analyzer_analyze_ship_attack: (a: number, b: any, c: number, d: number, e: number) => any;
|
|
9
|
+
export const analyzer_simulate_support_shelling: (a: number, b: number, c: number, d: any, e: number) => [number, number, number];
|
|
10
|
+
export const fhcore_create_air_squadron: (a: number, b: number) => number;
|
|
11
|
+
export const fhcore_create_all_ships: (a: number) => any;
|
|
12
|
+
export const fhcore_create_analyzer: (a: number) => number;
|
|
13
|
+
export const fhcore_create_comp_by_map_enemy: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
14
|
+
export const fhcore_create_default_ship: (a: number) => number;
|
|
15
|
+
export const fhcore_create_fleet: (a: number, b: number) => number;
|
|
16
|
+
export const fhcore_create_gear: (a: number, b: number) => number;
|
|
17
|
+
export const fhcore_create_org: (a: number, b: number) => number;
|
|
18
|
+
export const fhcore_create_ship: (a: number, b: number) => number;
|
|
19
|
+
export const fhcore_create_ship_by_id: (a: number, b: number) => number;
|
|
20
|
+
export const fhcore_create_ship_state_by_id: (a: number, b: number) => any;
|
|
21
|
+
export const fhcore_new: (a: any) => [number, number, number];
|
|
4
22
|
export const __wbg_airsquadron_free: (a: number, b: number) => void;
|
|
5
23
|
export const __wbg_comp_free: (a: number, b: number) => void;
|
|
6
24
|
export const __wbg_get_airsquadron_hash: (a: number) => bigint;
|
|
@@ -166,6 +184,7 @@ export const org_main_ship_ids: (a: number) => [number, number];
|
|
|
166
184
|
export const org_ship_keys: (a: number, b: any) => [number, number];
|
|
167
185
|
export const org_side: (a: number) => any;
|
|
168
186
|
export const parse_ship_conditions: (a: any) => any;
|
|
187
|
+
export const set_panic_hook: () => void;
|
|
169
188
|
export const gear_has_proficiency: (a: number) => number;
|
|
170
189
|
export const __wbg_get_org_hash: (a: number) => bigint;
|
|
171
190
|
export const __wbg_get_ship_ammo: (a: number) => number;
|
|
@@ -259,25 +278,6 @@ export const ship_torpedo: (a: number) => number;
|
|
|
259
278
|
export const ship_transport_point: (a: number) => number;
|
|
260
279
|
export const ship_useful: (a: number) => number;
|
|
261
280
|
export const ship_yomi: (a: number) => [number, number];
|
|
262
|
-
export const __wbg_analyzer_free: (a: number, b: number) => void;
|
|
263
|
-
export const __wbg_fhcore_free: (a: number, b: number) => void;
|
|
264
|
-
export const analyzer_analyze_comp: (a: number, b: number, c: any) => any;
|
|
265
|
-
export const analyzer_analyze_node_attack: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
|
|
266
|
-
export const analyzer_analyze_ship_attack: (a: number, b: any, c: number, d: number, e: number) => any;
|
|
267
|
-
export const analyzer_simulate_support_shelling: (a: number, b: number, c: number, d: any, e: number) => [number, number, number];
|
|
268
|
-
export const fhcore_create_air_squadron: (a: number, b: number) => number;
|
|
269
|
-
export const fhcore_create_all_ships: (a: number) => any;
|
|
270
|
-
export const fhcore_create_analyzer: (a: number) => number;
|
|
271
|
-
export const fhcore_create_comp_by_map_enemy: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
272
|
-
export const fhcore_create_default_ship: (a: number) => number;
|
|
273
|
-
export const fhcore_create_fleet: (a: number, b: number) => number;
|
|
274
|
-
export const fhcore_create_gear: (a: number, b: number) => number;
|
|
275
|
-
export const fhcore_create_org: (a: number, b: number) => number;
|
|
276
|
-
export const fhcore_create_ship: (a: number, b: number) => number;
|
|
277
|
-
export const fhcore_create_ship_by_id: (a: number, b: number) => number;
|
|
278
|
-
export const fhcore_create_ship_state_by_id: (a: number, b: number) => any;
|
|
279
|
-
export const fhcore_new: (a: any) => [number, number, number];
|
|
280
|
-
export const set_panic_hook: () => void;
|
|
281
281
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
282
282
|
export const __externref_table_alloc: () => number;
|
|
283
283
|
export const __wbindgen_export_2: WebAssembly.Table;
|