fleethub-core 1.8.11 → 1.9.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 +412 -414
- package/node/fleethub_core.js +131 -189
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +33 -32
- package/package.json +2 -2
- package/pkg/fleethub_core.d.ts +412 -414
- package/pkg/fleethub_core_bg.js +130 -188
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +33 -32
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { createEquipmentBonuses } from 'equipment-bonus';
|
|
2
2
|
import * as wasm from './fleethub_core_bg.wasm';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const heap = new Array(32).fill(undefined);
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
heap.push(undefined, null, true, false);
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
function getObject(idx) { return heap[idx]; }
|
|
9
|
+
|
|
10
|
+
let WASM_VECTOR_LEN = 0;
|
|
9
11
|
|
|
10
12
|
let cachedUint8Memory0 = new Uint8Array();
|
|
11
13
|
|
|
@@ -16,41 +18,6 @@ function getUint8Memory0() {
|
|
|
16
18
|
return cachedUint8Memory0;
|
|
17
19
|
}
|
|
18
20
|
|
|
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
|
-
|
|
54
21
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
55
22
|
|
|
56
23
|
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
@@ -114,33 +81,45 @@ function getInt32Memory0() {
|
|
|
114
81
|
}
|
|
115
82
|
return cachedInt32Memory0;
|
|
116
83
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
84
|
+
|
|
85
|
+
let heap_next = heap.length;
|
|
86
|
+
|
|
87
|
+
function dropObject(idx) {
|
|
88
|
+
if (idx < 36) return;
|
|
89
|
+
heap[idx] = heap_next;
|
|
90
|
+
heap_next = idx;
|
|
121
91
|
}
|
|
122
92
|
|
|
123
|
-
|
|
93
|
+
function takeObject(idx) {
|
|
94
|
+
const ret = getObject(idx);
|
|
95
|
+
dropObject(idx);
|
|
96
|
+
return ret;
|
|
97
|
+
}
|
|
124
98
|
|
|
125
|
-
const
|
|
99
|
+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
126
100
|
|
|
127
|
-
let
|
|
101
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
128
102
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
return cachedUint32Memory0;
|
|
103
|
+
cachedTextDecoder.decode();
|
|
104
|
+
|
|
105
|
+
function getStringFromWasm0(ptr, len) {
|
|
106
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
134
107
|
}
|
|
135
108
|
|
|
136
|
-
function
|
|
137
|
-
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
109
|
+
function addHeapObject(obj) {
|
|
110
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
111
|
+
const idx = heap_next;
|
|
112
|
+
heap_next = heap[idx];
|
|
113
|
+
|
|
114
|
+
heap[idx] = obj;
|
|
115
|
+
return idx;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function _assertClass(instance, klass) {
|
|
119
|
+
if (!(instance instanceof klass)) {
|
|
120
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
142
121
|
}
|
|
143
|
-
return
|
|
122
|
+
return instance.ptr;
|
|
144
123
|
}
|
|
145
124
|
|
|
146
125
|
let cachedFloat64Memory0 = new Float64Array();
|
|
@@ -152,13 +131,6 @@ function getFloat64Memory0() {
|
|
|
152
131
|
return cachedFloat64Memory0;
|
|
153
132
|
}
|
|
154
133
|
|
|
155
|
-
function _assertClass(instance, klass) {
|
|
156
|
-
if (!(instance instanceof klass)) {
|
|
157
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
158
|
-
}
|
|
159
|
-
return instance.ptr;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
134
|
function isLikeNone(x) {
|
|
163
135
|
return x === undefined || x === null;
|
|
164
136
|
}
|
|
@@ -179,6 +151,25 @@ function passArray16ToWasm0(arg, malloc) {
|
|
|
179
151
|
return ptr;
|
|
180
152
|
}
|
|
181
153
|
|
|
154
|
+
let cachedUint32Memory0 = new Uint32Array();
|
|
155
|
+
|
|
156
|
+
function getUint32Memory0() {
|
|
157
|
+
if (cachedUint32Memory0.byteLength === 0) {
|
|
158
|
+
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
159
|
+
}
|
|
160
|
+
return cachedUint32Memory0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
164
|
+
const mem = getUint32Memory0();
|
|
165
|
+
const slice = mem.subarray(ptr / 4, ptr / 4 + len);
|
|
166
|
+
const result = [];
|
|
167
|
+
for (let i = 0; i < slice.length; i++) {
|
|
168
|
+
result.push(takeObject(slice[i]));
|
|
169
|
+
}
|
|
170
|
+
return result;
|
|
171
|
+
}
|
|
172
|
+
|
|
182
173
|
function getArrayU16FromWasm0(ptr, len) {
|
|
183
174
|
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
184
175
|
}
|
|
@@ -201,6 +192,11 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
201
192
|
WASM_VECTOR_LEN = arg.length;
|
|
202
193
|
return ptr;
|
|
203
194
|
}
|
|
195
|
+
/**
|
|
196
|
+
*/
|
|
197
|
+
export function set_panic_hook() {
|
|
198
|
+
wasm.set_panic_hook();
|
|
199
|
+
}
|
|
204
200
|
|
|
205
201
|
function handleError(f, args) {
|
|
206
202
|
try {
|
|
@@ -260,27 +256,14 @@ export class AirSquadron {
|
|
|
260
256
|
* @returns {bigint}
|
|
261
257
|
*/
|
|
262
258
|
get hash() {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
wasm.__wbg_get_airsquadron_hash(retptr, this.ptr);
|
|
266
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
267
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
268
|
-
u32CvtShim[0] = r0;
|
|
269
|
-
u32CvtShim[1] = r1;
|
|
270
|
-
const n0 = uint64CvtShim[0];
|
|
271
|
-
return n0;
|
|
272
|
-
} finally {
|
|
273
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
274
|
-
}
|
|
259
|
+
const ret = wasm.__wbg_get_airsquadron_hash(this.ptr);
|
|
260
|
+
return BigInt.asUintN(64, ret);
|
|
275
261
|
}
|
|
276
262
|
/**
|
|
277
263
|
* @param {bigint} arg0
|
|
278
264
|
*/
|
|
279
265
|
set hash(arg0) {
|
|
280
|
-
|
|
281
|
-
const low0 = u32CvtShim[0];
|
|
282
|
-
const high0 = u32CvtShim[1];
|
|
283
|
-
wasm.__wbg_set_airsquadron_hash(this.ptr, low0, high0);
|
|
266
|
+
wasm.__wbg_set_airsquadron_hash(this.ptr, arg0);
|
|
284
267
|
}
|
|
285
268
|
/**
|
|
286
269
|
* @returns {AirSquadronMode}
|
|
@@ -420,21 +403,6 @@ export class Analyzer {
|
|
|
420
403
|
return takeObject(ret);
|
|
421
404
|
}
|
|
422
405
|
/**
|
|
423
|
-
* @param {NodeAttackAnalyzerConfig} config
|
|
424
|
-
* @param {Comp} left_comp
|
|
425
|
-
* @param {Comp} right_comp
|
|
426
|
-
* @param {string} attacker_id
|
|
427
|
-
* @returns {NodeAttackAnalysis2 | undefined}
|
|
428
|
-
*/
|
|
429
|
-
analyze_node_attack2(config, left_comp, right_comp, attacker_id) {
|
|
430
|
-
_assertClass(left_comp, Comp);
|
|
431
|
-
_assertClass(right_comp, Comp);
|
|
432
|
-
const ptr0 = passStringToWasm0(attacker_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
433
|
-
const len0 = WASM_VECTOR_LEN;
|
|
434
|
-
const ret = wasm.analyzer_analyze_node_attack2(this.ptr, addHeapObject(config), left_comp.ptr, right_comp.ptr, ptr0, len0);
|
|
435
|
-
return takeObject(ret);
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
406
|
* @param {Comp} comp
|
|
439
407
|
* @param {CompAnalyzerConfig} config
|
|
440
408
|
* @returns {CompAnalysis}
|
|
@@ -941,18 +909,8 @@ export class Fleet {
|
|
|
941
909
|
* @returns {bigint}
|
|
942
910
|
*/
|
|
943
911
|
get hash() {
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
wasm.__wbg_get_fleet_hash(retptr, this.ptr);
|
|
947
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
948
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
949
|
-
u32CvtShim[0] = r0;
|
|
950
|
-
u32CvtShim[1] = r1;
|
|
951
|
-
const n0 = uint64CvtShim[0];
|
|
952
|
-
return n0;
|
|
953
|
-
} finally {
|
|
954
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
955
|
-
}
|
|
912
|
+
const ret = wasm.__wbg_get_fleet_hash(this.ptr);
|
|
913
|
+
return BigInt.asUintN(64, ret);
|
|
956
914
|
}
|
|
957
915
|
/**
|
|
958
916
|
* @returns {number}
|
|
@@ -1225,18 +1183,8 @@ export class Gear {
|
|
|
1225
1183
|
* @returns {bigint}
|
|
1226
1184
|
*/
|
|
1227
1185
|
get hash() {
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
wasm.__wbg_get_airsquadron_hash(retptr, this.ptr);
|
|
1231
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1232
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1233
|
-
u32CvtShim[0] = r0;
|
|
1234
|
-
u32CvtShim[1] = r1;
|
|
1235
|
-
const n0 = uint64CvtShim[0];
|
|
1236
|
-
return n0;
|
|
1237
|
-
} finally {
|
|
1238
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1239
|
-
}
|
|
1186
|
+
const ret = wasm.__wbg_get_airsquadron_hash(this.ptr);
|
|
1187
|
+
return BigInt.asUintN(64, ret);
|
|
1240
1188
|
}
|
|
1241
1189
|
/**
|
|
1242
1190
|
* @returns {number}
|
|
@@ -1716,18 +1664,8 @@ export class Org {
|
|
|
1716
1664
|
* @returns {bigint}
|
|
1717
1665
|
*/
|
|
1718
1666
|
get hash() {
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
wasm.__wbg_get_org_hash(retptr, this.ptr);
|
|
1722
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1723
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1724
|
-
u32CvtShim[0] = r0;
|
|
1725
|
-
u32CvtShim[1] = r1;
|
|
1726
|
-
const n0 = uint64CvtShim[0];
|
|
1727
|
-
return n0;
|
|
1728
|
-
} finally {
|
|
1729
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1730
|
-
}
|
|
1667
|
+
const ret = wasm.__wbg_get_org_hash(this.ptr);
|
|
1668
|
+
return BigInt.asUintN(64, ret);
|
|
1731
1669
|
}
|
|
1732
1670
|
/**
|
|
1733
1671
|
* @returns {number}
|
|
@@ -2149,18 +2087,8 @@ export class Ship {
|
|
|
2149
2087
|
* @returns {bigint}
|
|
2150
2088
|
*/
|
|
2151
2089
|
get hash() {
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
wasm.__wbg_get_ship_hash(retptr, this.ptr);
|
|
2155
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2156
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2157
|
-
u32CvtShim[0] = r0;
|
|
2158
|
-
u32CvtShim[1] = r1;
|
|
2159
|
-
const n0 = uint64CvtShim[0];
|
|
2160
|
-
return n0;
|
|
2161
|
-
} finally {
|
|
2162
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2163
|
-
}
|
|
2090
|
+
const ret = wasm.__wbg_get_ship_hash(this.ptr);
|
|
2091
|
+
return BigInt.asUintN(64, ret);
|
|
2164
2092
|
}
|
|
2165
2093
|
/**
|
|
2166
2094
|
* @returns {number}
|
|
@@ -2596,6 +2524,13 @@ export class Ship {
|
|
|
2596
2524
|
return ret !== 0;
|
|
2597
2525
|
}
|
|
2598
2526
|
/**
|
|
2527
|
+
* @returns {boolean}
|
|
2528
|
+
*/
|
|
2529
|
+
is_amagiri() {
|
|
2530
|
+
const ret = wasm.ship_is_amagiri(this.ptr);
|
|
2531
|
+
return ret !== 0;
|
|
2532
|
+
}
|
|
2533
|
+
/**
|
|
2599
2534
|
* @param {Gear} gear
|
|
2600
2535
|
* @param {string} key
|
|
2601
2536
|
* @returns {boolean}
|
|
@@ -2692,6 +2627,13 @@ export class Ship {
|
|
|
2692
2627
|
return ret !== 0;
|
|
2693
2628
|
}
|
|
2694
2629
|
/**
|
|
2630
|
+
* @returns {SpecialEnemyType}
|
|
2631
|
+
*/
|
|
2632
|
+
special_enemy_type() {
|
|
2633
|
+
const ret = wasm.ship_special_enemy_type(this.ptr);
|
|
2634
|
+
return takeObject(ret);
|
|
2635
|
+
}
|
|
2636
|
+
/**
|
|
2695
2637
|
* @returns {boolean}
|
|
2696
2638
|
*/
|
|
2697
2639
|
is_attackable_by_torpedo() {
|
|
@@ -2887,15 +2829,6 @@ export class Ship {
|
|
|
2887
2829
|
}
|
|
2888
2830
|
}
|
|
2889
2831
|
|
|
2890
|
-
export function __wbindgen_string_new(arg0, arg1) {
|
|
2891
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2892
|
-
return addHeapObject(ret);
|
|
2893
|
-
};
|
|
2894
|
-
|
|
2895
|
-
export function __wbindgen_object_drop_ref(arg0) {
|
|
2896
|
-
takeObject(arg0);
|
|
2897
|
-
};
|
|
2898
|
-
|
|
2899
2832
|
export function __wbindgen_json_serialize(arg0, arg1) {
|
|
2900
2833
|
const obj = getObject(arg1);
|
|
2901
2834
|
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -2905,13 +2838,17 @@ export function __wbindgen_json_serialize(arg0, arg1) {
|
|
|
2905
2838
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
2906
2839
|
};
|
|
2907
2840
|
|
|
2908
|
-
export function
|
|
2909
|
-
|
|
2841
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
|
2842
|
+
takeObject(arg0);
|
|
2843
|
+
};
|
|
2844
|
+
|
|
2845
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
2846
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2910
2847
|
return addHeapObject(ret);
|
|
2911
2848
|
};
|
|
2912
2849
|
|
|
2913
|
-
export function
|
|
2914
|
-
const ret =
|
|
2850
|
+
export function __wbg_createEquipmentBonuses_5c614c7c244139f5(arg0, arg1) {
|
|
2851
|
+
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2915
2852
|
return addHeapObject(ret);
|
|
2916
2853
|
};
|
|
2917
2854
|
|
|
@@ -2920,12 +2857,17 @@ export function __wbindgen_json_parse(arg0, arg1) {
|
|
|
2920
2857
|
return addHeapObject(ret);
|
|
2921
2858
|
};
|
|
2922
2859
|
|
|
2923
|
-
export function
|
|
2860
|
+
export function __wbg_ship_new(arg0) {
|
|
2861
|
+
const ret = Ship.__wrap(arg0);
|
|
2862
|
+
return addHeapObject(ret);
|
|
2863
|
+
};
|
|
2864
|
+
|
|
2865
|
+
export function __wbg_new_abda76e883ba8a5f() {
|
|
2924
2866
|
const ret = new Error();
|
|
2925
2867
|
return addHeapObject(ret);
|
|
2926
2868
|
};
|
|
2927
2869
|
|
|
2928
|
-
export function
|
|
2870
|
+
export function __wbg_stack_658279fe44541cf6(arg0, arg1) {
|
|
2929
2871
|
const ret = getObject(arg1).stack;
|
|
2930
2872
|
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2931
2873
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -2933,7 +2875,7 @@ export function __wbg_stack_0ddaca5d1abfb52f(arg0, arg1) {
|
|
|
2933
2875
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
2934
2876
|
};
|
|
2935
2877
|
|
|
2936
|
-
export function
|
|
2878
|
+
export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
|
|
2937
2879
|
try {
|
|
2938
2880
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
2939
2881
|
} finally {
|
|
@@ -2941,15 +2883,7 @@ export function __wbg_error_09919627ac0992f5(arg0, arg1) {
|
|
|
2941
2883
|
}
|
|
2942
2884
|
};
|
|
2943
2885
|
|
|
2944
|
-
export function
|
|
2945
|
-
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
2946
|
-
}, arguments) };
|
|
2947
|
-
|
|
2948
|
-
export function __wbg_getRandomValues_b14734aa289bc356() { return handleError(function (arg0, arg1) {
|
|
2949
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
2950
|
-
}, arguments) };
|
|
2951
|
-
|
|
2952
|
-
export function __wbg_process_e56fd54cf6319b6c(arg0) {
|
|
2886
|
+
export function __wbg_process_0cc2ada8524d6f83(arg0) {
|
|
2953
2887
|
const ret = getObject(arg0).process;
|
|
2954
2888
|
return addHeapObject(ret);
|
|
2955
2889
|
};
|
|
@@ -2960,12 +2894,12 @@ export function __wbindgen_is_object(arg0) {
|
|
|
2960
2894
|
return ret;
|
|
2961
2895
|
};
|
|
2962
2896
|
|
|
2963
|
-
export function
|
|
2897
|
+
export function __wbg_versions_c11acceab27a6c87(arg0) {
|
|
2964
2898
|
const ret = getObject(arg0).versions;
|
|
2965
2899
|
return addHeapObject(ret);
|
|
2966
2900
|
};
|
|
2967
2901
|
|
|
2968
|
-
export function
|
|
2902
|
+
export function __wbg_node_7ff1ce49caf23815(arg0) {
|
|
2969
2903
|
const ret = getObject(arg0).node;
|
|
2970
2904
|
return addHeapObject(ret);
|
|
2971
2905
|
};
|
|
@@ -2975,37 +2909,45 @@ export function __wbindgen_is_string(arg0) {
|
|
|
2975
2909
|
return ret;
|
|
2976
2910
|
};
|
|
2977
2911
|
|
|
2978
|
-
export function
|
|
2912
|
+
export function __wbg_static_accessor_NODE_MODULE_cf6401cc1091279e() {
|
|
2979
2913
|
const ret = module;
|
|
2980
2914
|
return addHeapObject(ret);
|
|
2981
2915
|
};
|
|
2982
2916
|
|
|
2983
|
-
export function
|
|
2917
|
+
export function __wbg_require_a746e79b322b9336() { return handleError(function (arg0, arg1, arg2) {
|
|
2984
2918
|
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
|
|
2985
2919
|
return addHeapObject(ret);
|
|
2986
2920
|
}, arguments) };
|
|
2987
2921
|
|
|
2988
|
-
export function
|
|
2922
|
+
export function __wbg_crypto_2036bed7c44c25e7(arg0) {
|
|
2989
2923
|
const ret = getObject(arg0).crypto;
|
|
2990
2924
|
return addHeapObject(ret);
|
|
2991
2925
|
};
|
|
2992
2926
|
|
|
2993
|
-
export function
|
|
2927
|
+
export function __wbg_msCrypto_a21fc88caf1ecdc8(arg0) {
|
|
2994
2928
|
const ret = getObject(arg0).msCrypto;
|
|
2995
2929
|
return addHeapObject(ret);
|
|
2996
2930
|
};
|
|
2997
2931
|
|
|
2998
|
-
export function
|
|
2932
|
+
export function __wbg_getRandomValues_b99eec4244a475bb() { return handleError(function (arg0, arg1) {
|
|
2933
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
2934
|
+
}, arguments) };
|
|
2935
|
+
|
|
2936
|
+
export function __wbg_randomFillSync_065afffde01daa66() { return handleError(function (arg0, arg1, arg2) {
|
|
2937
|
+
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
2938
|
+
}, arguments) };
|
|
2939
|
+
|
|
2940
|
+
export function __wbg_new_1d9a920c6bfc44a8() {
|
|
2999
2941
|
const ret = new Array();
|
|
3000
2942
|
return addHeapObject(ret);
|
|
3001
2943
|
};
|
|
3002
2944
|
|
|
3003
|
-
export function
|
|
2945
|
+
export function __wbg_newnoargs_b5b063fc6c2f0376(arg0, arg1) {
|
|
3004
2946
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3005
2947
|
return addHeapObject(ret);
|
|
3006
2948
|
};
|
|
3007
2949
|
|
|
3008
|
-
export function
|
|
2950
|
+
export function __wbg_call_97ae9d8645dc388b() { return handleError(function (arg0, arg1) {
|
|
3009
2951
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
3010
2952
|
return addHeapObject(ret);
|
|
3011
2953
|
}, arguments) };
|
|
@@ -3015,22 +2957,22 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
3015
2957
|
return addHeapObject(ret);
|
|
3016
2958
|
};
|
|
3017
2959
|
|
|
3018
|
-
export function
|
|
2960
|
+
export function __wbg_self_6d479506f72c6a71() { return handleError(function () {
|
|
3019
2961
|
const ret = self.self;
|
|
3020
2962
|
return addHeapObject(ret);
|
|
3021
2963
|
}, arguments) };
|
|
3022
2964
|
|
|
3023
|
-
export function
|
|
2965
|
+
export function __wbg_window_f2557cc78490aceb() { return handleError(function () {
|
|
3024
2966
|
const ret = window.window;
|
|
3025
2967
|
return addHeapObject(ret);
|
|
3026
2968
|
}, arguments) };
|
|
3027
2969
|
|
|
3028
|
-
export function
|
|
2970
|
+
export function __wbg_globalThis_7f206bda628d5286() { return handleError(function () {
|
|
3029
2971
|
const ret = globalThis.globalThis;
|
|
3030
2972
|
return addHeapObject(ret);
|
|
3031
2973
|
}, arguments) };
|
|
3032
2974
|
|
|
3033
|
-
export function
|
|
2975
|
+
export function __wbg_global_ba75c50d1cf384f4() { return handleError(function () {
|
|
3034
2976
|
const ret = global.global;
|
|
3035
2977
|
return addHeapObject(ret);
|
|
3036
2978
|
}, arguments) };
|
|
@@ -3040,36 +2982,36 @@ export function __wbindgen_is_undefined(arg0) {
|
|
|
3040
2982
|
return ret;
|
|
3041
2983
|
};
|
|
3042
2984
|
|
|
3043
|
-
export function
|
|
2985
|
+
export function __wbg_push_740e4b286702d964(arg0, arg1) {
|
|
3044
2986
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
3045
2987
|
return ret;
|
|
3046
2988
|
};
|
|
3047
2989
|
|
|
3048
|
-
export function
|
|
2990
|
+
export function __wbg_buffer_3f3d764d4747d564(arg0) {
|
|
3049
2991
|
const ret = getObject(arg0).buffer;
|
|
3050
2992
|
return addHeapObject(ret);
|
|
3051
2993
|
};
|
|
3052
2994
|
|
|
3053
|
-
export function
|
|
2995
|
+
export function __wbg_new_8c3f0052272a457a(arg0) {
|
|
3054
2996
|
const ret = new Uint8Array(getObject(arg0));
|
|
3055
2997
|
return addHeapObject(ret);
|
|
3056
2998
|
};
|
|
3057
2999
|
|
|
3058
|
-
export function
|
|
3000
|
+
export function __wbg_set_83db9690f9353e79(arg0, arg1, arg2) {
|
|
3059
3001
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3060
3002
|
};
|
|
3061
3003
|
|
|
3062
|
-
export function
|
|
3004
|
+
export function __wbg_length_9e1ae1900cb0fbd5(arg0) {
|
|
3063
3005
|
const ret = getObject(arg0).length;
|
|
3064
3006
|
return ret;
|
|
3065
3007
|
};
|
|
3066
3008
|
|
|
3067
|
-
export function
|
|
3009
|
+
export function __wbg_newwithlength_f5933855e4f48a19(arg0) {
|
|
3068
3010
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
3069
3011
|
return addHeapObject(ret);
|
|
3070
3012
|
};
|
|
3071
3013
|
|
|
3072
|
-
export function
|
|
3014
|
+
export function __wbg_subarray_58ad4efbb5bcb886(arg0, arg1, arg2) {
|
|
3073
3015
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3074
3016
|
return addHeapObject(ret);
|
|
3075
3017
|
};
|
|
Binary file
|
|
@@ -1,38 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function __wbg_fleet_free(a: number): void;
|
|
5
|
-
export function __wbg_get_fleet_id(a: number, b: number): void;
|
|
6
|
-
export function __wbg_set_fleet_id(a: number, b: number, c: number): void;
|
|
7
|
-
export function __wbg_get_fleet_hash(a: number, b: number): void;
|
|
8
|
-
export function __wbg_get_fleet_len(a: number): number;
|
|
9
|
-
export function fleet_meta(a: number): number;
|
|
10
|
-
export function fleet_ship_keys(a: number, b: number): void;
|
|
11
|
-
export function fleet_ship_ids(a: number, b: number): void;
|
|
12
|
-
export function fleet_get_gear_ids_by_improvable(a: number, b: number): void;
|
|
13
|
-
export function fleet_get_gear_ids_by_proficiency(a: number, b: number): void;
|
|
14
|
-
export function fleet_get_damage_bound(a: number, b: number, c: number, d: number): number;
|
|
15
|
-
export function fleet_get_remaining_fuel(a: number, b: number, c: number, d: number, e: number): number;
|
|
16
|
-
export function fleet_get_remaining_ammo(a: number, b: number, c: number, d: number, e: number): number;
|
|
17
|
-
export function fleet_count_ships(a: number): number;
|
|
18
|
-
export function fleet_get_ship(a: number, b: number): number;
|
|
19
|
-
export function fleet_fleet_los_mod(a: number, b: number): void;
|
|
20
|
-
export function fleet_fighter_power(a: number, b: number, c: number): void;
|
|
21
|
-
export function fleet_elos(a: number, b: number, c: number, d: number): void;
|
|
22
|
-
export function fleet_aviation_detection_score(a: number, b: number): void;
|
|
23
|
-
export function fleet_expedition_bonus(a: number): number;
|
|
24
|
-
export function fleet_sum_ship_stat_by(a: number, b: number, c: number, d: number): void;
|
|
25
|
-
export function fleet_reset_battle_state(a: number): void;
|
|
26
|
-
export function ship_state_day_gunfit_accuracy(a: number, b: number): void;
|
|
27
|
-
export function ship_state_night_gunfit_accuracy(a: number, b: number): void;
|
|
28
|
-
export function ship_gunfit_accuracy(a: number, b: number): number;
|
|
29
|
-
export function set_panic_hook(): void;
|
|
30
4
|
export function __wbg_analyzer_free(a: number): void;
|
|
31
5
|
export function analyzer_analyze_ship_attack(a: number, b: number, c: number, d: number, e: number): number;
|
|
32
6
|
export function analyzer_analyze_node_attack(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
33
|
-
export function analyzer_analyze_node_attack2(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
34
7
|
export function analyzer_analyze_comp(a: number, b: number, c: number): number;
|
|
35
8
|
export function analyzer_simulate_support_shelling(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
9
|
+
export function ship_state_day_gunfit_accuracy(a: number, b: number): void;
|
|
10
|
+
export function ship_state_night_gunfit_accuracy(a: number, b: number): void;
|
|
11
|
+
export function ship_gunfit_accuracy(a: number, b: number): number;
|
|
36
12
|
export function __wbg_fhcore_free(a: number): void;
|
|
37
13
|
export function fhcore_new(a: number, b: number): void;
|
|
38
14
|
export function fhcore_create_gear(a: number, b: number): number;
|
|
@@ -48,7 +24,7 @@ export function fhcore_create_analyzer(a: number): number;
|
|
|
48
24
|
export function __wbg_org_free(a: number): void;
|
|
49
25
|
export function __wbg_get_org_id(a: number, b: number): void;
|
|
50
26
|
export function __wbg_set_org_id(a: number, b: number, c: number): void;
|
|
51
|
-
export function __wbg_get_org_hash(a: number
|
|
27
|
+
export function __wbg_get_org_hash(a: number): number;
|
|
52
28
|
export function __wbg_get_org_hq_level(a: number): number;
|
|
53
29
|
export function __wbg_get_org_org_type(a: number): number;
|
|
54
30
|
export function __wbg_get_org_sortie(a: number): number;
|
|
@@ -110,7 +86,7 @@ export function comp_fleet_los_mod(a: number, b: number, c: number): void;
|
|
|
110
86
|
export function __wbg_ship_free(a: number): void;
|
|
111
87
|
export function __wbg_get_ship_id(a: number, b: number): void;
|
|
112
88
|
export function __wbg_set_ship_id(a: number, b: number, c: number): void;
|
|
113
|
-
export function __wbg_get_ship_hash(a: number
|
|
89
|
+
export function __wbg_get_ship_hash(a: number): number;
|
|
114
90
|
export function __wbg_get_ship_ship_id(a: number): number;
|
|
115
91
|
export function __wbg_get_ship_level(a: number): number;
|
|
116
92
|
export function __wbg_get_ship_current_hp(a: number): number;
|
|
@@ -166,6 +142,7 @@ export function ship_get_ebonus(a: number, b: number, c: number): number;
|
|
|
166
142
|
export function ship_get_stat_mod(a: number, b: number, c: number): number;
|
|
167
143
|
export function ship_is_abyssal(a: number): number;
|
|
168
144
|
export function ship_is_submarine(a: number): number;
|
|
145
|
+
export function ship_is_amagiri(a: number): number;
|
|
169
146
|
export function ship_can_equip(a: number, b: number, c: number, d: number): number;
|
|
170
147
|
export function ship_max_hp(a: number): number;
|
|
171
148
|
export function ship_max_ammo(a: number): number;
|
|
@@ -179,6 +156,7 @@ export function ship_accuracy(a: number): number;
|
|
|
179
156
|
export function ship_innate_torpedo_accuracy(a: number): number;
|
|
180
157
|
export function ship_is_installation(a: number): number;
|
|
181
158
|
export function ship_is_pt_imp(a: number): number;
|
|
159
|
+
export function ship_special_enemy_type(a: number): number;
|
|
182
160
|
export function ship_is_attackable_by_torpedo(a: number): number;
|
|
183
161
|
export function ship_get_slot_size(a: number, b: number): number;
|
|
184
162
|
export function ship_get_max_slot_size(a: number, b: number): number;
|
|
@@ -200,8 +178,8 @@ export function parse_ship_conditions(a: number): number;
|
|
|
200
178
|
export function __wbg_airsquadron_free(a: number): void;
|
|
201
179
|
export function __wbg_get_airsquadron_id(a: number, b: number): void;
|
|
202
180
|
export function __wbg_set_airsquadron_id(a: number, b: number, c: number): void;
|
|
203
|
-
export function __wbg_get_airsquadron_hash(a: number
|
|
204
|
-
export function __wbg_set_airsquadron_hash(a: number, b: number
|
|
181
|
+
export function __wbg_get_airsquadron_hash(a: number): number;
|
|
182
|
+
export function __wbg_set_airsquadron_hash(a: number, b: number): void;
|
|
205
183
|
export function __wbg_get_airsquadron_mode(a: number): number;
|
|
206
184
|
export function __wbg_set_airsquadron_mode(a: number, b: number): void;
|
|
207
185
|
export function airsquadron_get_gear(a: number, b: number, c: number): number;
|
|
@@ -269,8 +247,31 @@ export function gear_is_abyssal_cuttlefish_torpedo(a: number): number;
|
|
|
269
247
|
export function gear_is_abyssal_patrolling_attack_hawk(a: number): number;
|
|
270
248
|
export function gear_expedition_bonus(a: number): number;
|
|
271
249
|
export function gear_can_be_deployed_to_land_base(a: number): number;
|
|
272
|
-
export function __wbg_get_gear_hash(a: number
|
|
250
|
+
export function __wbg_get_gear_hash(a: number): number;
|
|
273
251
|
export function gear_has_proficiency(a: number): number;
|
|
252
|
+
export function set_panic_hook(): void;
|
|
253
|
+
export function __wbg_fleet_free(a: number): void;
|
|
254
|
+
export function __wbg_get_fleet_id(a: number, b: number): void;
|
|
255
|
+
export function __wbg_set_fleet_id(a: number, b: number, c: number): void;
|
|
256
|
+
export function __wbg_get_fleet_hash(a: number): number;
|
|
257
|
+
export function __wbg_get_fleet_len(a: number): number;
|
|
258
|
+
export function fleet_meta(a: number): number;
|
|
259
|
+
export function fleet_ship_keys(a: number, b: number): void;
|
|
260
|
+
export function fleet_ship_ids(a: number, b: number): void;
|
|
261
|
+
export function fleet_get_gear_ids_by_improvable(a: number, b: number): void;
|
|
262
|
+
export function fleet_get_gear_ids_by_proficiency(a: number, b: number): void;
|
|
263
|
+
export function fleet_get_damage_bound(a: number, b: number, c: number, d: number): number;
|
|
264
|
+
export function fleet_get_remaining_fuel(a: number, b: number, c: number, d: number, e: number): number;
|
|
265
|
+
export function fleet_get_remaining_ammo(a: number, b: number, c: number, d: number, e: number): number;
|
|
266
|
+
export function fleet_count_ships(a: number): number;
|
|
267
|
+
export function fleet_get_ship(a: number, b: number): number;
|
|
268
|
+
export function fleet_fleet_los_mod(a: number, b: number): void;
|
|
269
|
+
export function fleet_fighter_power(a: number, b: number, c: number): void;
|
|
270
|
+
export function fleet_elos(a: number, b: number, c: number, d: number): void;
|
|
271
|
+
export function fleet_aviation_detection_score(a: number, b: number): void;
|
|
272
|
+
export function fleet_expedition_bonus(a: number): number;
|
|
273
|
+
export function fleet_sum_ship_stat_by(a: number, b: number, c: number, d: number): void;
|
|
274
|
+
export function fleet_reset_battle_state(a: number): void;
|
|
274
275
|
export function __wbindgen_malloc(a: number): number;
|
|
275
276
|
export function __wbindgen_realloc(a: number, b: number, c: number): number;
|
|
276
277
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|