fleethub-core 1.12.13 → 1.12.14
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 +463 -455
- package/node/fleethub_core.js +35 -35
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +66 -66
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +463 -455
- package/pkg/fleethub_core_bg.js +35 -35
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +66 -66
package/node/fleethub_core.js
CHANGED
|
@@ -112,18 +112,6 @@ function isLikeNone(x) {
|
|
|
112
112
|
return x === undefined || x === null;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
function takeFromExternrefTable0(idx) {
|
|
116
|
-
const value = wasm.__wbindgen_export_2.get(idx);
|
|
117
|
-
wasm.__externref_table_dealloc(idx);
|
|
118
|
-
return value;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function _assertClass(instance, klass) {
|
|
122
|
-
if (!(instance instanceof klass)) {
|
|
123
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
115
|
let cachedUint16ArrayMemory0 = null;
|
|
128
116
|
|
|
129
117
|
function getUint16ArrayMemory0() {
|
|
@@ -149,6 +137,12 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
149
137
|
return result;
|
|
150
138
|
}
|
|
151
139
|
|
|
140
|
+
function takeFromExternrefTable0(idx) {
|
|
141
|
+
const value = wasm.__wbindgen_export_2.get(idx);
|
|
142
|
+
wasm.__externref_table_dealloc(idx);
|
|
143
|
+
return value;
|
|
144
|
+
}
|
|
145
|
+
|
|
152
146
|
function passArray8ToWasm0(arg, malloc) {
|
|
153
147
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
154
148
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -171,6 +165,12 @@ function passArray16ToWasm0(arg, malloc) {
|
|
|
171
165
|
return ptr;
|
|
172
166
|
}
|
|
173
167
|
|
|
168
|
+
function _assertClass(instance, klass) {
|
|
169
|
+
if (!(instance instanceof klass)) {
|
|
170
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
174
|
exports.set_panic_hook = function() {
|
|
175
175
|
wasm.set_panic_hook();
|
|
176
176
|
};
|
|
@@ -1867,29 +1867,6 @@ class Ship {
|
|
|
1867
1867
|
const ptr = this.__destroy_into_raw();
|
|
1868
1868
|
wasm.__wbg_ship_free(ptr, 0);
|
|
1869
1869
|
}
|
|
1870
|
-
/**
|
|
1871
|
-
* フィット砲補正
|
|
1872
|
-
* @param {boolean} is_night
|
|
1873
|
-
* @returns {number}
|
|
1874
|
-
*/
|
|
1875
|
-
gunfit_accuracy(is_night) {
|
|
1876
|
-
const ret = wasm.ship_gunfit_accuracy(this.__wbg_ptr, is_night);
|
|
1877
|
-
return ret;
|
|
1878
|
-
}
|
|
1879
|
-
/**
|
|
1880
|
-
* @returns {number | undefined}
|
|
1881
|
-
*/
|
|
1882
|
-
state_day_gunfit_accuracy() {
|
|
1883
|
-
const ret = wasm.ship_state_day_gunfit_accuracy(this.__wbg_ptr);
|
|
1884
|
-
return ret[0] === 0 ? undefined : ret[1];
|
|
1885
|
-
}
|
|
1886
|
-
/**
|
|
1887
|
-
* @returns {number | undefined}
|
|
1888
|
-
*/
|
|
1889
|
-
state_night_gunfit_accuracy() {
|
|
1890
|
-
const ret = wasm.ship_state_night_gunfit_accuracy(this.__wbg_ptr);
|
|
1891
|
-
return ret[0] === 0 ? undefined : ret[1];
|
|
1892
|
-
}
|
|
1893
1870
|
/**
|
|
1894
1871
|
* @returns {string}
|
|
1895
1872
|
*/
|
|
@@ -2596,6 +2573,29 @@ class Ship {
|
|
|
2596
2573
|
const ret = wasm.ship_naked_los(this.__wbg_ptr);
|
|
2597
2574
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2598
2575
|
}
|
|
2576
|
+
/**
|
|
2577
|
+
* フィット砲補正
|
|
2578
|
+
* @param {boolean} is_night
|
|
2579
|
+
* @returns {number}
|
|
2580
|
+
*/
|
|
2581
|
+
gunfit_accuracy(is_night) {
|
|
2582
|
+
const ret = wasm.ship_gunfit_accuracy(this.__wbg_ptr, is_night);
|
|
2583
|
+
return ret;
|
|
2584
|
+
}
|
|
2585
|
+
/**
|
|
2586
|
+
* @returns {number | undefined}
|
|
2587
|
+
*/
|
|
2588
|
+
state_day_gunfit_accuracy() {
|
|
2589
|
+
const ret = wasm.ship_state_day_gunfit_accuracy(this.__wbg_ptr);
|
|
2590
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
2591
|
+
}
|
|
2592
|
+
/**
|
|
2593
|
+
* @returns {number | undefined}
|
|
2594
|
+
*/
|
|
2595
|
+
state_night_gunfit_accuracy() {
|
|
2596
|
+
const ret = wasm.ship_state_night_gunfit_accuracy(this.__wbg_ptr);
|
|
2597
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
2598
|
+
}
|
|
2599
2599
|
}
|
|
2600
2600
|
if (Symbol.dispose) Ship.prototype[Symbol.dispose] = Ship.prototype.free;
|
|
2601
2601
|
|
|
Binary file
|
|
@@ -1,53 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const __wbg_airsquadron_free: (a: number, b: number) => void;
|
|
5
|
-
export const __wbg_comp_free: (a: number, b: number) => void;
|
|
6
|
-
export const __wbg_get_airsquadron_hash: (a: number) => bigint;
|
|
7
|
-
export const __wbg_get_airsquadron_id: (a: number) => [number, number];
|
|
8
|
-
export const __wbg_get_airsquadron_mode: (a: number) => any;
|
|
9
|
-
export const __wbg_get_comp_boss_sup: (a: number) => number;
|
|
10
|
-
export const __wbg_get_comp_escort: (a: number) => number;
|
|
11
|
-
export const __wbg_get_comp_hq_level: (a: number) => number;
|
|
12
|
-
export const __wbg_get_comp_main: (a: number) => number;
|
|
13
|
-
export const __wbg_get_comp_org_type: (a: number) => any;
|
|
14
|
-
export const __wbg_get_comp_route_sup: (a: number) => number;
|
|
15
|
-
export const __wbg_set_airsquadron_hash: (a: number, b: bigint) => void;
|
|
16
|
-
export const __wbg_set_airsquadron_id: (a: number, b: number, c: number) => void;
|
|
17
|
-
export const __wbg_set_airsquadron_mode: (a: number, b: any) => void;
|
|
18
|
-
export const __wbg_set_comp_boss_sup: (a: number, b: number) => void;
|
|
19
|
-
export const __wbg_set_comp_escort: (a: number, b: number) => void;
|
|
20
|
-
export const __wbg_set_comp_main: (a: number, b: number) => void;
|
|
21
|
-
export const __wbg_set_comp_route_sup: (a: number, b: number) => void;
|
|
22
|
-
export const airsquadron_fighter_power: (a: number) => number;
|
|
23
|
-
export const airsquadron_get_gear: (a: number, b: number, c: number) => number;
|
|
24
|
-
export const airsquadron_get_max_slot_size: (a: number, b: number) => [number, number, number];
|
|
25
|
-
export const airsquadron_get_slot_size: (a: number, b: number) => [number, number, number];
|
|
26
|
-
export const airsquadron_interception_power: (a: number) => number;
|
|
27
|
-
export const airsquadron_radius: (a: number) => number;
|
|
28
|
-
export const comp_adjusted_anti_air: (a: number, b: number) => number;
|
|
29
|
-
export const comp_balloons: (a: number) => number;
|
|
30
|
-
export const comp_default_formation: (a: number) => any;
|
|
31
|
-
export const comp_elos: (a: number, b: number) => [number, number];
|
|
32
|
-
export const comp_fighter_power: (a: number, b: number, c: any) => number;
|
|
33
|
-
export const comp_first_ship_id: (a: number) => [number, number];
|
|
34
|
-
export const comp_fleet_los_mod: (a: number, b: any) => [number, number];
|
|
35
|
-
export const comp_get_fleet_id: (a: number, b: any) => [number, number];
|
|
36
|
-
export const comp_get_ship_by_eid_with_clone: (a: number, b: number, c: number) => number;
|
|
37
|
-
export const comp_get_ship_conditions: (a: number, b: number, c: number) => any;
|
|
38
|
-
export const comp_get_ship_entity_id: (a: number, b: any, c: any) => [number, number];
|
|
39
|
-
export const comp_get_ship_with_clone: (a: number, b: any, c: any) => number;
|
|
40
|
-
export const comp_has_route_sup: (a: number) => number;
|
|
41
|
-
export const comp_has_ship_eid: (a: number, b: number, c: number) => number;
|
|
42
|
-
export const comp_is_combined: (a: number) => number;
|
|
43
|
-
export const comp_is_enemy: (a: number) => number;
|
|
44
|
-
export const comp_is_player: (a: number) => number;
|
|
45
|
-
export const comp_meta: (a: number) => any;
|
|
46
|
-
export const comp_side: (a: number) => any;
|
|
47
|
-
export const comp_transport_point: (a: number) => number;
|
|
48
|
-
export const ship_gunfit_accuracy: (a: number, b: number) => number;
|
|
49
|
-
export const ship_state_day_gunfit_accuracy: (a: number) => [number, number];
|
|
50
|
-
export const ship_state_night_gunfit_accuracy: (a: number) => [number, number];
|
|
51
4
|
export const __wbg_fleet_free: (a: number, b: number) => void;
|
|
52
5
|
export const __wbg_gear_free: (a: number, b: number) => void;
|
|
53
6
|
export const __wbg_get_fleet_hash: (a: number) => bigint;
|
|
@@ -168,6 +121,24 @@ export const org_side: (a: number) => any;
|
|
|
168
121
|
export const parse_ship_conditions: (a: any) => any;
|
|
169
122
|
export const gear_has_proficiency: (a: number) => number;
|
|
170
123
|
export const __wbg_get_org_hash: (a: number) => bigint;
|
|
124
|
+
export const __wbg_analyzer_free: (a: number, b: number) => void;
|
|
125
|
+
export const __wbg_fhcore_free: (a: number, b: number) => void;
|
|
126
|
+
export const analyzer_analyze_comp: (a: number, b: number, c: any) => any;
|
|
127
|
+
export const analyzer_analyze_node_attack: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
|
|
128
|
+
export const analyzer_analyze_ship_attack: (a: number, b: any, c: number, d: number, e: number) => any;
|
|
129
|
+
export const analyzer_simulate_support_shelling: (a: number, b: number, c: number, d: any, e: number) => [number, number, number];
|
|
130
|
+
export const fhcore_create_air_squadron: (a: number, b: number) => number;
|
|
131
|
+
export const fhcore_create_all_ships: (a: number) => any;
|
|
132
|
+
export const fhcore_create_analyzer: (a: number) => number;
|
|
133
|
+
export const fhcore_create_comp_by_map_enemy: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
134
|
+
export const fhcore_create_default_ship: (a: number) => number;
|
|
135
|
+
export const fhcore_create_fleet: (a: number, b: number) => number;
|
|
136
|
+
export const fhcore_create_gear: (a: number, b: number) => number;
|
|
137
|
+
export const fhcore_create_org: (a: number, b: number) => number;
|
|
138
|
+
export const fhcore_create_ship: (a: number, b: number) => number;
|
|
139
|
+
export const fhcore_create_ship_by_id: (a: number, b: number) => number;
|
|
140
|
+
export const fhcore_create_ship_state_by_id: (a: number, b: number) => any;
|
|
141
|
+
export const fhcore_new: (a: any) => [number, number, number];
|
|
171
142
|
export const __wbg_get_ship_ammo: (a: number) => number;
|
|
172
143
|
export const __wbg_get_ship_ctype: (a: number) => number;
|
|
173
144
|
export const __wbg_get_ship_current_hp: (a: number) => number;
|
|
@@ -259,31 +230,60 @@ export const ship_torpedo: (a: number) => number;
|
|
|
259
230
|
export const ship_transport_point: (a: number) => number;
|
|
260
231
|
export const ship_useful: (a: number) => number;
|
|
261
232
|
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
233
|
export const set_panic_hook: () => void;
|
|
234
|
+
export const __wbg_airsquadron_free: (a: number, b: number) => void;
|
|
235
|
+
export const __wbg_comp_free: (a: number, b: number) => void;
|
|
236
|
+
export const __wbg_get_airsquadron_hash: (a: number) => bigint;
|
|
237
|
+
export const __wbg_get_airsquadron_id: (a: number) => [number, number];
|
|
238
|
+
export const __wbg_get_airsquadron_mode: (a: number) => any;
|
|
239
|
+
export const __wbg_get_comp_boss_sup: (a: number) => number;
|
|
240
|
+
export const __wbg_get_comp_escort: (a: number) => number;
|
|
241
|
+
export const __wbg_get_comp_hq_level: (a: number) => number;
|
|
242
|
+
export const __wbg_get_comp_main: (a: number) => number;
|
|
243
|
+
export const __wbg_get_comp_org_type: (a: number) => any;
|
|
244
|
+
export const __wbg_get_comp_route_sup: (a: number) => number;
|
|
245
|
+
export const __wbg_set_airsquadron_hash: (a: number, b: bigint) => void;
|
|
246
|
+
export const __wbg_set_airsquadron_id: (a: number, b: number, c: number) => void;
|
|
247
|
+
export const __wbg_set_airsquadron_mode: (a: number, b: any) => void;
|
|
248
|
+
export const __wbg_set_comp_boss_sup: (a: number, b: number) => void;
|
|
249
|
+
export const __wbg_set_comp_escort: (a: number, b: number) => void;
|
|
250
|
+
export const __wbg_set_comp_main: (a: number, b: number) => void;
|
|
251
|
+
export const __wbg_set_comp_route_sup: (a: number, b: number) => void;
|
|
252
|
+
export const airsquadron_fighter_power: (a: number) => number;
|
|
253
|
+
export const airsquadron_get_gear: (a: number, b: number, c: number) => number;
|
|
254
|
+
export const airsquadron_get_max_slot_size: (a: number, b: number) => [number, number, number];
|
|
255
|
+
export const airsquadron_get_slot_size: (a: number, b: number) => [number, number, number];
|
|
256
|
+
export const airsquadron_interception_power: (a: number) => number;
|
|
257
|
+
export const airsquadron_radius: (a: number) => number;
|
|
258
|
+
export const comp_adjusted_anti_air: (a: number, b: number) => number;
|
|
259
|
+
export const comp_balloons: (a: number) => number;
|
|
260
|
+
export const comp_default_formation: (a: number) => any;
|
|
261
|
+
export const comp_elos: (a: number, b: number) => [number, number];
|
|
262
|
+
export const comp_fighter_power: (a: number, b: number, c: any) => number;
|
|
263
|
+
export const comp_first_ship_id: (a: number) => [number, number];
|
|
264
|
+
export const comp_fleet_los_mod: (a: number, b: any) => [number, number];
|
|
265
|
+
export const comp_get_fleet_id: (a: number, b: any) => [number, number];
|
|
266
|
+
export const comp_get_ship_by_eid_with_clone: (a: number, b: number, c: number) => number;
|
|
267
|
+
export const comp_get_ship_conditions: (a: number, b: number, c: number) => any;
|
|
268
|
+
export const comp_get_ship_entity_id: (a: number, b: any, c: any) => [number, number];
|
|
269
|
+
export const comp_get_ship_with_clone: (a: number, b: any, c: any) => number;
|
|
270
|
+
export const comp_has_route_sup: (a: number) => number;
|
|
271
|
+
export const comp_has_ship_eid: (a: number, b: number, c: number) => number;
|
|
272
|
+
export const comp_is_combined: (a: number) => number;
|
|
273
|
+
export const comp_is_enemy: (a: number) => number;
|
|
274
|
+
export const comp_is_player: (a: number) => number;
|
|
275
|
+
export const comp_meta: (a: number) => any;
|
|
276
|
+
export const comp_side: (a: number) => any;
|
|
277
|
+
export const comp_transport_point: (a: number) => number;
|
|
278
|
+
export const ship_gunfit_accuracy: (a: number, b: number) => number;
|
|
279
|
+
export const ship_state_day_gunfit_accuracy: (a: number) => [number, number];
|
|
280
|
+
export const ship_state_night_gunfit_accuracy: (a: number) => [number, number];
|
|
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;
|
|
284
284
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
285
285
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
286
286
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
287
|
-
export const __externref_table_dealloc: (a: number) => void;
|
|
288
287
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
288
|
+
export const __externref_table_dealloc: (a: number) => void;
|
|
289
289
|
export const __wbindgen_start: () => void;
|