fleethub-core 1.12.16 → 1.12.17
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 +712 -709
- package/node/fleethub_core.js +50 -50
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +67 -67
- package/package.json +2 -2
- package/pkg/fleethub_core.d.ts +712 -709
- package/pkg/fleethub_core_bg.js +49 -49
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +67 -67
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,10 +140,6 @@ function _assertClass(instance, klass) {
|
|
|
124
140
|
}
|
|
125
141
|
}
|
|
126
142
|
|
|
127
|
-
exports.set_panic_hook = function() {
|
|
128
|
-
wasm.set_panic_hook();
|
|
129
|
-
};
|
|
130
|
-
|
|
131
143
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
132
144
|
ptr = ptr >>> 0;
|
|
133
145
|
const mem = getDataViewMemory0();
|
|
@@ -138,15 +150,18 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
138
150
|
wasm.__externref_drop_slice(ptr, len);
|
|
139
151
|
return result;
|
|
140
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* @param {ShipConditions} value
|
|
155
|
+
* @returns {ShipConditions}
|
|
156
|
+
*/
|
|
157
|
+
exports.parse_ship_conditions = function(value) {
|
|
158
|
+
const ret = wasm.parse_ship_conditions(value);
|
|
159
|
+
return ret;
|
|
160
|
+
};
|
|
141
161
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
|
|
146
|
-
cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
|
|
147
|
-
}
|
|
148
|
-
return cachedUint16ArrayMemory0;
|
|
149
|
-
}
|
|
162
|
+
exports.set_panic_hook = function() {
|
|
163
|
+
wasm.set_panic_hook();
|
|
164
|
+
};
|
|
150
165
|
|
|
151
166
|
function getArrayU16FromWasm0(ptr, len) {
|
|
152
167
|
ptr = ptr >>> 0;
|
|
@@ -159,21 +174,6 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
159
174
|
WASM_VECTOR_LEN = arg.length;
|
|
160
175
|
return ptr;
|
|
161
176
|
}
|
|
162
|
-
/**
|
|
163
|
-
* @param {ShipConditions} value
|
|
164
|
-
* @returns {ShipConditions}
|
|
165
|
-
*/
|
|
166
|
-
exports.parse_ship_conditions = function(value) {
|
|
167
|
-
const ret = wasm.parse_ship_conditions(value);
|
|
168
|
-
return ret;
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
function passArray16ToWasm0(arg, malloc) {
|
|
172
|
-
const ptr = malloc(arg.length * 2, 2) >>> 0;
|
|
173
|
-
getUint16ArrayMemory0().set(arg, ptr / 2);
|
|
174
|
-
WASM_VECTOR_LEN = arg.length;
|
|
175
|
-
return ptr;
|
|
176
|
-
}
|
|
177
177
|
|
|
178
178
|
const AirSquadronFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
179
179
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1874,29 +1874,6 @@ class Ship {
|
|
|
1874
1874
|
const ptr = this.__destroy_into_raw();
|
|
1875
1875
|
wasm.__wbg_ship_free(ptr, 0);
|
|
1876
1876
|
}
|
|
1877
|
-
/**
|
|
1878
|
-
* フィット砲補正
|
|
1879
|
-
* @param {boolean} is_night
|
|
1880
|
-
* @returns {number}
|
|
1881
|
-
*/
|
|
1882
|
-
gunfit_accuracy(is_night) {
|
|
1883
|
-
const ret = wasm.ship_gunfit_accuracy(this.__wbg_ptr, is_night);
|
|
1884
|
-
return ret;
|
|
1885
|
-
}
|
|
1886
|
-
/**
|
|
1887
|
-
* @returns {number | undefined}
|
|
1888
|
-
*/
|
|
1889
|
-
state_day_gunfit_accuracy() {
|
|
1890
|
-
const ret = wasm.ship_state_day_gunfit_accuracy(this.__wbg_ptr);
|
|
1891
|
-
return ret[0] === 0 ? undefined : ret[1];
|
|
1892
|
-
}
|
|
1893
|
-
/**
|
|
1894
|
-
* @returns {number | undefined}
|
|
1895
|
-
*/
|
|
1896
|
-
state_night_gunfit_accuracy() {
|
|
1897
|
-
const ret = wasm.ship_state_night_gunfit_accuracy(this.__wbg_ptr);
|
|
1898
|
-
return ret[0] === 0 ? undefined : ret[1];
|
|
1899
|
-
}
|
|
1900
1877
|
/**
|
|
1901
1878
|
* @returns {string}
|
|
1902
1879
|
*/
|
|
@@ -2603,6 +2580,29 @@ class Ship {
|
|
|
2603
2580
|
const ret = wasm.ship_naked_los(this.__wbg_ptr);
|
|
2604
2581
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2605
2582
|
}
|
|
2583
|
+
/**
|
|
2584
|
+
* フィット砲補正
|
|
2585
|
+
* @param {boolean} is_night
|
|
2586
|
+
* @returns {number}
|
|
2587
|
+
*/
|
|
2588
|
+
gunfit_accuracy(is_night) {
|
|
2589
|
+
const ret = wasm.ship_gunfit_accuracy(this.__wbg_ptr, is_night);
|
|
2590
|
+
return ret;
|
|
2591
|
+
}
|
|
2592
|
+
/**
|
|
2593
|
+
* @returns {number | undefined}
|
|
2594
|
+
*/
|
|
2595
|
+
state_day_gunfit_accuracy() {
|
|
2596
|
+
const ret = wasm.ship_state_day_gunfit_accuracy(this.__wbg_ptr);
|
|
2597
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
2598
|
+
}
|
|
2599
|
+
/**
|
|
2600
|
+
* @returns {number | undefined}
|
|
2601
|
+
*/
|
|
2602
|
+
state_night_gunfit_accuracy() {
|
|
2603
|
+
const ret = wasm.ship_state_night_gunfit_accuracy(this.__wbg_ptr);
|
|
2604
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
2605
|
+
}
|
|
2606
2606
|
}
|
|
2607
2607
|
if (Symbol.dispose) Ship.prototype[Symbol.dispose] = Ship.prototype.free;
|
|
2608
2608
|
|
|
Binary file
|
|
@@ -1,54 +1,24 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
13
|
-
export const
|
|
14
|
-
export const
|
|
15
|
-
export const
|
|
16
|
-
export const
|
|
17
|
-
export const
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
export const
|
|
21
|
-
export const
|
|
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
|
-
export const set_panic_hook: () => void;
|
|
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];
|
|
52
22
|
export const __wbg_get_ship_ammo: (a: number) => number;
|
|
53
23
|
export const __wbg_get_ship_ctype: (a: number) => number;
|
|
54
24
|
export const __wbg_get_ship_current_hp: (a: number) => number;
|
|
@@ -140,6 +110,55 @@ export const ship_torpedo: (a: number) => number;
|
|
|
140
110
|
export const ship_transport_point: (a: number) => number;
|
|
141
111
|
export const ship_useful: (a: number) => number;
|
|
142
112
|
export const ship_yomi: (a: number) => [number, number];
|
|
113
|
+
export const __wbg_airsquadron_free: (a: number, b: number) => void;
|
|
114
|
+
export const __wbg_comp_free: (a: number, b: number) => void;
|
|
115
|
+
export const __wbg_get_airsquadron_hash: (a: number) => bigint;
|
|
116
|
+
export const __wbg_get_airsquadron_id: (a: number) => [number, number];
|
|
117
|
+
export const __wbg_get_airsquadron_mode: (a: number) => any;
|
|
118
|
+
export const __wbg_get_comp_boss_sup: (a: number) => number;
|
|
119
|
+
export const __wbg_get_comp_escort: (a: number) => number;
|
|
120
|
+
export const __wbg_get_comp_hq_level: (a: number) => number;
|
|
121
|
+
export const __wbg_get_comp_main: (a: number) => number;
|
|
122
|
+
export const __wbg_get_comp_org_type: (a: number) => any;
|
|
123
|
+
export const __wbg_get_comp_route_sup: (a: number) => number;
|
|
124
|
+
export const __wbg_set_airsquadron_hash: (a: number, b: bigint) => void;
|
|
125
|
+
export const __wbg_set_airsquadron_id: (a: number, b: number, c: number) => void;
|
|
126
|
+
export const __wbg_set_airsquadron_mode: (a: number, b: any) => void;
|
|
127
|
+
export const __wbg_set_comp_boss_sup: (a: number, b: number) => void;
|
|
128
|
+
export const __wbg_set_comp_escort: (a: number, b: number) => void;
|
|
129
|
+
export const __wbg_set_comp_main: (a: number, b: number) => void;
|
|
130
|
+
export const __wbg_set_comp_route_sup: (a: number, b: number) => void;
|
|
131
|
+
export const airsquadron_fighter_power: (a: number) => number;
|
|
132
|
+
export const airsquadron_get_gear: (a: number, b: number, c: number) => number;
|
|
133
|
+
export const airsquadron_get_max_slot_size: (a: number, b: number) => [number, number, number];
|
|
134
|
+
export const airsquadron_get_slot_size: (a: number, b: number) => [number, number, number];
|
|
135
|
+
export const airsquadron_interception_power: (a: number) => number;
|
|
136
|
+
export const airsquadron_radius: (a: number) => number;
|
|
137
|
+
export const comp_adjusted_anti_air: (a: number, b: number) => number;
|
|
138
|
+
export const comp_balloons: (a: number) => number;
|
|
139
|
+
export const comp_default_formation: (a: number) => any;
|
|
140
|
+
export const comp_elos: (a: number, b: number) => [number, number];
|
|
141
|
+
export const comp_fighter_power: (a: number, b: number, c: any) => number;
|
|
142
|
+
export const comp_first_ship_id: (a: number) => [number, number];
|
|
143
|
+
export const comp_fleet_los_mod: (a: number, b: any) => [number, number];
|
|
144
|
+
export const comp_get_fleet_id: (a: number, b: any) => [number, number];
|
|
145
|
+
export const comp_get_ship_by_eid_with_clone: (a: number, b: number, c: number) => number;
|
|
146
|
+
export const comp_get_ship_conditions: (a: number, b: number, c: number) => any;
|
|
147
|
+
export const comp_get_ship_entity_id: (a: number, b: any, c: any) => [number, number];
|
|
148
|
+
export const comp_get_ship_with_clone: (a: number, b: any, c: any) => number;
|
|
149
|
+
export const comp_has_route_sup: (a: number) => number;
|
|
150
|
+
export const comp_has_ship_eid: (a: number, b: number, c: number) => number;
|
|
151
|
+
export const comp_is_combined: (a: number) => number;
|
|
152
|
+
export const comp_is_enemy: (a: number) => number;
|
|
153
|
+
export const comp_is_player: (a: number) => number;
|
|
154
|
+
export const comp_meta: (a: number) => any;
|
|
155
|
+
export const comp_side: (a: number) => any;
|
|
156
|
+
export const comp_transport_point: (a: number) => number;
|
|
157
|
+
export const parse_ship_conditions: (a: any) => any;
|
|
158
|
+
export const ship_gunfit_accuracy: (a: number, b: number) => number;
|
|
159
|
+
export const ship_state_day_gunfit_accuracy: (a: number) => [number, number];
|
|
160
|
+
export const ship_state_night_gunfit_accuracy: (a: number) => [number, number];
|
|
161
|
+
export const set_panic_hook: () => void;
|
|
143
162
|
export const __wbg_fleet_free: (a: number, b: number) => void;
|
|
144
163
|
export const __wbg_gear_free: (a: number, b: number) => void;
|
|
145
164
|
export const __wbg_get_fleet_hash: (a: number) => bigint;
|
|
@@ -258,27 +277,8 @@ export const org_is_single: (a: number) => number;
|
|
|
258
277
|
export const org_main_ship_ids: (a: number) => [number, number];
|
|
259
278
|
export const org_ship_keys: (a: number, b: any) => [number, number];
|
|
260
279
|
export const org_side: (a: number) => any;
|
|
261
|
-
export const parse_ship_conditions: (a: any) => any;
|
|
262
280
|
export const gear_has_proficiency: (a: number) => number;
|
|
263
281
|
export const __wbg_get_org_hash: (a: number) => bigint;
|
|
264
|
-
export const __wbg_analyzer_free: (a: number, b: number) => void;
|
|
265
|
-
export const __wbg_fhcore_free: (a: number, b: number) => void;
|
|
266
|
-
export const analyzer_analyze_comp: (a: number, b: number, c: any) => any;
|
|
267
|
-
export const analyzer_analyze_node_attack: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
|
|
268
|
-
export const analyzer_analyze_ship_attack: (a: number, b: any, c: number, d: number, e: number) => any;
|
|
269
|
-
export const analyzer_simulate_support_shelling: (a: number, b: number, c: number, d: any, e: number) => [number, number, number];
|
|
270
|
-
export const fhcore_create_air_squadron: (a: number, b: number) => number;
|
|
271
|
-
export const fhcore_create_all_ships: (a: number) => any;
|
|
272
|
-
export const fhcore_create_analyzer: (a: number) => number;
|
|
273
|
-
export const fhcore_create_comp_by_map_enemy: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
274
|
-
export const fhcore_create_default_ship: (a: number) => number;
|
|
275
|
-
export const fhcore_create_fleet: (a: number, b: number) => number;
|
|
276
|
-
export const fhcore_create_gear: (a: number, b: number) => number;
|
|
277
|
-
export const fhcore_create_org: (a: number, b: number) => number;
|
|
278
|
-
export const fhcore_create_ship: (a: number, b: number) => number;
|
|
279
|
-
export const fhcore_create_ship_by_id: (a: number, b: number) => number;
|
|
280
|
-
export const fhcore_create_ship_state_by_id: (a: number, b: number) => any;
|
|
281
|
-
export const fhcore_new: (a: any) => [number, number, number];
|
|
282
282
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
283
283
|
export const __externref_table_alloc: () => number;
|
|
284
284
|
export const __wbindgen_export_2: WebAssembly.Table;
|
package/package.json
CHANGED