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/pkg/fleethub_core_bg.js
CHANGED
|
@@ -121,6 +121,22 @@ function isLikeNone(x) {
|
|
|
121
121
|
return x === undefined || x === null;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
let cachedUint16ArrayMemory0 = null;
|
|
125
|
+
|
|
126
|
+
function getUint16ArrayMemory0() {
|
|
127
|
+
if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
|
|
128
|
+
cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
|
|
129
|
+
}
|
|
130
|
+
return cachedUint16ArrayMemory0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function passArray16ToWasm0(arg, malloc) {
|
|
134
|
+
const ptr = malloc(arg.length * 2, 2) >>> 0;
|
|
135
|
+
getUint16ArrayMemory0().set(arg, ptr / 2);
|
|
136
|
+
WASM_VECTOR_LEN = arg.length;
|
|
137
|
+
return ptr;
|
|
138
|
+
}
|
|
139
|
+
|
|
124
140
|
function takeFromExternrefTable0(idx) {
|
|
125
141
|
const value = wasm.__wbindgen_export_2.get(idx);
|
|
126
142
|
wasm.__externref_table_dealloc(idx);
|
|
@@ -133,15 +149,6 @@ function _assertClass(instance, klass) {
|
|
|
133
149
|
}
|
|
134
150
|
}
|
|
135
151
|
|
|
136
|
-
let cachedUint16ArrayMemory0 = null;
|
|
137
|
-
|
|
138
|
-
function getUint16ArrayMemory0() {
|
|
139
|
-
if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
|
|
140
|
-
cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
|
|
141
|
-
}
|
|
142
|
-
return cachedUint16ArrayMemory0;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
152
|
function getArrayU16FromWasm0(ptr, len) {
|
|
146
153
|
ptr = ptr >>> 0;
|
|
147
154
|
return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
|
|
@@ -173,13 +180,6 @@ export function parse_ship_conditions(value) {
|
|
|
173
180
|
return ret;
|
|
174
181
|
}
|
|
175
182
|
|
|
176
|
-
function passArray16ToWasm0(arg, malloc) {
|
|
177
|
-
const ptr = malloc(arg.length * 2, 2) >>> 0;
|
|
178
|
-
getUint16ArrayMemory0().set(arg, ptr / 2);
|
|
179
|
-
WASM_VECTOR_LEN = arg.length;
|
|
180
|
-
return ptr;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
183
|
export function set_panic_hook() {
|
|
184
184
|
wasm.set_panic_hook();
|
|
185
185
|
}
|
|
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;
|