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/node/fleethub_core.js
CHANGED
|
@@ -2,11 +2,15 @@ let imports = {};
|
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
4
|
const { createEquipmentBonuses } = require(`equipment-bonus`);
|
|
5
|
-
const {
|
|
5
|
+
const { TextEncoder, TextDecoder } = require(`util`);
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const heap = new Array(32).fill(undefined);
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
heap.push(undefined, null, true, false);
|
|
10
|
+
|
|
11
|
+
function getObject(idx) { return heap[idx]; }
|
|
12
|
+
|
|
13
|
+
let WASM_VECTOR_LEN = 0;
|
|
10
14
|
|
|
11
15
|
let cachedUint8Memory0 = new Uint8Array();
|
|
12
16
|
|
|
@@ -17,41 +21,6 @@ function getUint8Memory0() {
|
|
|
17
21
|
return cachedUint8Memory0;
|
|
18
22
|
}
|
|
19
23
|
|
|
20
|
-
function getStringFromWasm0(ptr, len) {
|
|
21
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const heap = new Array(32).fill(undefined);
|
|
25
|
-
|
|
26
|
-
heap.push(undefined, null, true, false);
|
|
27
|
-
|
|
28
|
-
let heap_next = heap.length;
|
|
29
|
-
|
|
30
|
-
function addHeapObject(obj) {
|
|
31
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
32
|
-
const idx = heap_next;
|
|
33
|
-
heap_next = heap[idx];
|
|
34
|
-
|
|
35
|
-
heap[idx] = obj;
|
|
36
|
-
return idx;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function getObject(idx) { return heap[idx]; }
|
|
40
|
-
|
|
41
|
-
function dropObject(idx) {
|
|
42
|
-
if (idx < 36) return;
|
|
43
|
-
heap[idx] = heap_next;
|
|
44
|
-
heap_next = idx;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function takeObject(idx) {
|
|
48
|
-
const ret = getObject(idx);
|
|
49
|
-
dropObject(idx);
|
|
50
|
-
return ret;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
let WASM_VECTOR_LEN = 0;
|
|
54
|
-
|
|
55
24
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
56
25
|
|
|
57
26
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -113,33 +82,43 @@ function getInt32Memory0() {
|
|
|
113
82
|
}
|
|
114
83
|
return cachedInt32Memory0;
|
|
115
84
|
}
|
|
116
|
-
/**
|
|
117
|
-
*/
|
|
118
|
-
module.exports.set_panic_hook = function() {
|
|
119
|
-
wasm.set_panic_hook();
|
|
120
|
-
};
|
|
121
85
|
|
|
122
|
-
|
|
86
|
+
let heap_next = heap.length;
|
|
87
|
+
|
|
88
|
+
function dropObject(idx) {
|
|
89
|
+
if (idx < 36) return;
|
|
90
|
+
heap[idx] = heap_next;
|
|
91
|
+
heap_next = idx;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function takeObject(idx) {
|
|
95
|
+
const ret = getObject(idx);
|
|
96
|
+
dropObject(idx);
|
|
97
|
+
return ret;
|
|
98
|
+
}
|
|
123
99
|
|
|
124
|
-
|
|
100
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
125
101
|
|
|
126
|
-
|
|
102
|
+
cachedTextDecoder.decode();
|
|
127
103
|
|
|
128
|
-
function
|
|
129
|
-
|
|
130
|
-
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
131
|
-
}
|
|
132
|
-
return cachedUint32Memory0;
|
|
104
|
+
function getStringFromWasm0(ptr, len) {
|
|
105
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
133
106
|
}
|
|
134
107
|
|
|
135
|
-
function
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
108
|
+
function addHeapObject(obj) {
|
|
109
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
110
|
+
const idx = heap_next;
|
|
111
|
+
heap_next = heap[idx];
|
|
112
|
+
|
|
113
|
+
heap[idx] = obj;
|
|
114
|
+
return idx;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function _assertClass(instance, klass) {
|
|
118
|
+
if (!(instance instanceof klass)) {
|
|
119
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
141
120
|
}
|
|
142
|
-
return
|
|
121
|
+
return instance.ptr;
|
|
143
122
|
}
|
|
144
123
|
|
|
145
124
|
let cachedFloat64Memory0 = new Float64Array();
|
|
@@ -151,13 +130,6 @@ function getFloat64Memory0() {
|
|
|
151
130
|
return cachedFloat64Memory0;
|
|
152
131
|
}
|
|
153
132
|
|
|
154
|
-
function _assertClass(instance, klass) {
|
|
155
|
-
if (!(instance instanceof klass)) {
|
|
156
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
157
|
-
}
|
|
158
|
-
return instance.ptr;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
133
|
function isLikeNone(x) {
|
|
162
134
|
return x === undefined || x === null;
|
|
163
135
|
}
|
|
@@ -178,6 +150,25 @@ function passArray16ToWasm0(arg, malloc) {
|
|
|
178
150
|
return ptr;
|
|
179
151
|
}
|
|
180
152
|
|
|
153
|
+
let cachedUint32Memory0 = new Uint32Array();
|
|
154
|
+
|
|
155
|
+
function getUint32Memory0() {
|
|
156
|
+
if (cachedUint32Memory0.byteLength === 0) {
|
|
157
|
+
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
158
|
+
}
|
|
159
|
+
return cachedUint32Memory0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
163
|
+
const mem = getUint32Memory0();
|
|
164
|
+
const slice = mem.subarray(ptr / 4, ptr / 4 + len);
|
|
165
|
+
const result = [];
|
|
166
|
+
for (let i = 0; i < slice.length; i++) {
|
|
167
|
+
result.push(takeObject(slice[i]));
|
|
168
|
+
}
|
|
169
|
+
return result;
|
|
170
|
+
}
|
|
171
|
+
|
|
181
172
|
function getArrayU16FromWasm0(ptr, len) {
|
|
182
173
|
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
183
174
|
}
|
|
@@ -200,6 +191,11 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
200
191
|
WASM_VECTOR_LEN = arg.length;
|
|
201
192
|
return ptr;
|
|
202
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
*/
|
|
196
|
+
module.exports.set_panic_hook = function() {
|
|
197
|
+
wasm.set_panic_hook();
|
|
198
|
+
};
|
|
203
199
|
|
|
204
200
|
function handleError(f, args) {
|
|
205
201
|
try {
|
|
@@ -259,27 +255,14 @@ class AirSquadron {
|
|
|
259
255
|
* @returns {bigint}
|
|
260
256
|
*/
|
|
261
257
|
get hash() {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
wasm.__wbg_get_airsquadron_hash(retptr, this.ptr);
|
|
265
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
266
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
267
|
-
u32CvtShim[0] = r0;
|
|
268
|
-
u32CvtShim[1] = r1;
|
|
269
|
-
const n0 = uint64CvtShim[0];
|
|
270
|
-
return n0;
|
|
271
|
-
} finally {
|
|
272
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
273
|
-
}
|
|
258
|
+
const ret = wasm.__wbg_get_airsquadron_hash(this.ptr);
|
|
259
|
+
return BigInt.asUintN(64, ret);
|
|
274
260
|
}
|
|
275
261
|
/**
|
|
276
262
|
* @param {bigint} arg0
|
|
277
263
|
*/
|
|
278
264
|
set hash(arg0) {
|
|
279
|
-
|
|
280
|
-
const low0 = u32CvtShim[0];
|
|
281
|
-
const high0 = u32CvtShim[1];
|
|
282
|
-
wasm.__wbg_set_airsquadron_hash(this.ptr, low0, high0);
|
|
265
|
+
wasm.__wbg_set_airsquadron_hash(this.ptr, arg0);
|
|
283
266
|
}
|
|
284
267
|
/**
|
|
285
268
|
* @returns {AirSquadronMode}
|
|
@@ -420,21 +403,6 @@ 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}
|
|
@@ -944,18 +912,8 @@ class Fleet {
|
|
|
944
912
|
* @returns {bigint}
|
|
945
913
|
*/
|
|
946
914
|
get hash() {
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
wasm.__wbg_get_fleet_hash(retptr, this.ptr);
|
|
950
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
951
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
952
|
-
u32CvtShim[0] = r0;
|
|
953
|
-
u32CvtShim[1] = r1;
|
|
954
|
-
const n0 = uint64CvtShim[0];
|
|
955
|
-
return n0;
|
|
956
|
-
} finally {
|
|
957
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
958
|
-
}
|
|
915
|
+
const ret = wasm.__wbg_get_fleet_hash(this.ptr);
|
|
916
|
+
return BigInt.asUintN(64, ret);
|
|
959
917
|
}
|
|
960
918
|
/**
|
|
961
919
|
* @returns {number}
|
|
@@ -1229,18 +1187,8 @@ class Gear {
|
|
|
1229
1187
|
* @returns {bigint}
|
|
1230
1188
|
*/
|
|
1231
1189
|
get hash() {
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
wasm.__wbg_get_airsquadron_hash(retptr, this.ptr);
|
|
1235
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1236
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1237
|
-
u32CvtShim[0] = r0;
|
|
1238
|
-
u32CvtShim[1] = r1;
|
|
1239
|
-
const n0 = uint64CvtShim[0];
|
|
1240
|
-
return n0;
|
|
1241
|
-
} finally {
|
|
1242
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1243
|
-
}
|
|
1190
|
+
const ret = wasm.__wbg_get_airsquadron_hash(this.ptr);
|
|
1191
|
+
return BigInt.asUintN(64, ret);
|
|
1244
1192
|
}
|
|
1245
1193
|
/**
|
|
1246
1194
|
* @returns {number}
|
|
@@ -1721,18 +1669,8 @@ class Org {
|
|
|
1721
1669
|
* @returns {bigint}
|
|
1722
1670
|
*/
|
|
1723
1671
|
get hash() {
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
wasm.__wbg_get_org_hash(retptr, this.ptr);
|
|
1727
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1728
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1729
|
-
u32CvtShim[0] = r0;
|
|
1730
|
-
u32CvtShim[1] = r1;
|
|
1731
|
-
const n0 = uint64CvtShim[0];
|
|
1732
|
-
return n0;
|
|
1733
|
-
} finally {
|
|
1734
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1735
|
-
}
|
|
1672
|
+
const ret = wasm.__wbg_get_org_hash(this.ptr);
|
|
1673
|
+
return BigInt.asUintN(64, ret);
|
|
1736
1674
|
}
|
|
1737
1675
|
/**
|
|
1738
1676
|
* @returns {number}
|
|
@@ -2155,18 +2093,8 @@ class Ship {
|
|
|
2155
2093
|
* @returns {bigint}
|
|
2156
2094
|
*/
|
|
2157
2095
|
get hash() {
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
wasm.__wbg_get_ship_hash(retptr, this.ptr);
|
|
2161
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2162
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2163
|
-
u32CvtShim[0] = r0;
|
|
2164
|
-
u32CvtShim[1] = r1;
|
|
2165
|
-
const n0 = uint64CvtShim[0];
|
|
2166
|
-
return n0;
|
|
2167
|
-
} finally {
|
|
2168
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2169
|
-
}
|
|
2096
|
+
const ret = wasm.__wbg_get_ship_hash(this.ptr);
|
|
2097
|
+
return BigInt.asUintN(64, ret);
|
|
2170
2098
|
}
|
|
2171
2099
|
/**
|
|
2172
2100
|
* @returns {number}
|
|
@@ -2602,6 +2530,13 @@ class Ship {
|
|
|
2602
2530
|
return ret !== 0;
|
|
2603
2531
|
}
|
|
2604
2532
|
/**
|
|
2533
|
+
* @returns {boolean}
|
|
2534
|
+
*/
|
|
2535
|
+
is_amagiri() {
|
|
2536
|
+
const ret = wasm.ship_is_amagiri(this.ptr);
|
|
2537
|
+
return ret !== 0;
|
|
2538
|
+
}
|
|
2539
|
+
/**
|
|
2605
2540
|
* @param {Gear} gear
|
|
2606
2541
|
* @param {string} key
|
|
2607
2542
|
* @returns {boolean}
|
|
@@ -2698,6 +2633,13 @@ class Ship {
|
|
|
2698
2633
|
return ret !== 0;
|
|
2699
2634
|
}
|
|
2700
2635
|
/**
|
|
2636
|
+
* @returns {SpecialEnemyType}
|
|
2637
|
+
*/
|
|
2638
|
+
special_enemy_type() {
|
|
2639
|
+
const ret = wasm.ship_special_enemy_type(this.ptr);
|
|
2640
|
+
return takeObject(ret);
|
|
2641
|
+
}
|
|
2642
|
+
/**
|
|
2701
2643
|
* @returns {boolean}
|
|
2702
2644
|
*/
|
|
2703
2645
|
is_attackable_by_torpedo() {
|
|
@@ -2894,15 +2836,6 @@ class Ship {
|
|
|
2894
2836
|
}
|
|
2895
2837
|
module.exports.Ship = Ship;
|
|
2896
2838
|
|
|
2897
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2898
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2899
|
-
return addHeapObject(ret);
|
|
2900
|
-
};
|
|
2901
|
-
|
|
2902
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2903
|
-
takeObject(arg0);
|
|
2904
|
-
};
|
|
2905
|
-
|
|
2906
2839
|
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
2907
2840
|
const obj = getObject(arg1);
|
|
2908
2841
|
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -2912,13 +2845,17 @@ module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
|
2912
2845
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
2913
2846
|
};
|
|
2914
2847
|
|
|
2915
|
-
module.exports.
|
|
2916
|
-
|
|
2848
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2849
|
+
takeObject(arg0);
|
|
2850
|
+
};
|
|
2851
|
+
|
|
2852
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2853
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2917
2854
|
return addHeapObject(ret);
|
|
2918
2855
|
};
|
|
2919
2856
|
|
|
2920
|
-
module.exports.
|
|
2921
|
-
const ret =
|
|
2857
|
+
module.exports.__wbg_createEquipmentBonuses_5c614c7c244139f5 = function(arg0, arg1) {
|
|
2858
|
+
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2922
2859
|
return addHeapObject(ret);
|
|
2923
2860
|
};
|
|
2924
2861
|
|
|
@@ -2927,12 +2864,17 @@ module.exports.__wbindgen_json_parse = function(arg0, arg1) {
|
|
|
2927
2864
|
return addHeapObject(ret);
|
|
2928
2865
|
};
|
|
2929
2866
|
|
|
2930
|
-
module.exports.
|
|
2867
|
+
module.exports.__wbg_ship_new = function(arg0) {
|
|
2868
|
+
const ret = Ship.__wrap(arg0);
|
|
2869
|
+
return addHeapObject(ret);
|
|
2870
|
+
};
|
|
2871
|
+
|
|
2872
|
+
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
2931
2873
|
const ret = new Error();
|
|
2932
2874
|
return addHeapObject(ret);
|
|
2933
2875
|
};
|
|
2934
2876
|
|
|
2935
|
-
module.exports.
|
|
2877
|
+
module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
2936
2878
|
const ret = getObject(arg1).stack;
|
|
2937
2879
|
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2938
2880
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -2940,7 +2882,7 @@ module.exports.__wbg_stack_0ddaca5d1abfb52f = function(arg0, arg1) {
|
|
|
2940
2882
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
2941
2883
|
};
|
|
2942
2884
|
|
|
2943
|
-
module.exports.
|
|
2885
|
+
module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
2944
2886
|
try {
|
|
2945
2887
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
2946
2888
|
} finally {
|
|
@@ -2948,15 +2890,7 @@ module.exports.__wbg_error_09919627ac0992f5 = function(arg0, arg1) {
|
|
|
2948
2890
|
}
|
|
2949
2891
|
};
|
|
2950
2892
|
|
|
2951
|
-
module.exports.
|
|
2952
|
-
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
2953
|
-
}, arguments) };
|
|
2954
|
-
|
|
2955
|
-
module.exports.__wbg_getRandomValues_b14734aa289bc356 = function() { return handleError(function (arg0, arg1) {
|
|
2956
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
2957
|
-
}, arguments) };
|
|
2958
|
-
|
|
2959
|
-
module.exports.__wbg_process_e56fd54cf6319b6c = function(arg0) {
|
|
2893
|
+
module.exports.__wbg_process_0cc2ada8524d6f83 = function(arg0) {
|
|
2960
2894
|
const ret = getObject(arg0).process;
|
|
2961
2895
|
return addHeapObject(ret);
|
|
2962
2896
|
};
|
|
@@ -2967,12 +2901,12 @@ module.exports.__wbindgen_is_object = function(arg0) {
|
|
|
2967
2901
|
return ret;
|
|
2968
2902
|
};
|
|
2969
2903
|
|
|
2970
|
-
module.exports.
|
|
2904
|
+
module.exports.__wbg_versions_c11acceab27a6c87 = function(arg0) {
|
|
2971
2905
|
const ret = getObject(arg0).versions;
|
|
2972
2906
|
return addHeapObject(ret);
|
|
2973
2907
|
};
|
|
2974
2908
|
|
|
2975
|
-
module.exports.
|
|
2909
|
+
module.exports.__wbg_node_7ff1ce49caf23815 = function(arg0) {
|
|
2976
2910
|
const ret = getObject(arg0).node;
|
|
2977
2911
|
return addHeapObject(ret);
|
|
2978
2912
|
};
|
|
@@ -2982,37 +2916,45 @@ module.exports.__wbindgen_is_string = function(arg0) {
|
|
|
2982
2916
|
return ret;
|
|
2983
2917
|
};
|
|
2984
2918
|
|
|
2985
|
-
module.exports.
|
|
2919
|
+
module.exports.__wbg_static_accessor_NODE_MODULE_cf6401cc1091279e = function() {
|
|
2986
2920
|
const ret = module;
|
|
2987
2921
|
return addHeapObject(ret);
|
|
2988
2922
|
};
|
|
2989
2923
|
|
|
2990
|
-
module.exports.
|
|
2924
|
+
module.exports.__wbg_require_a746e79b322b9336 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2991
2925
|
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
|
|
2992
2926
|
return addHeapObject(ret);
|
|
2993
2927
|
}, arguments) };
|
|
2994
2928
|
|
|
2995
|
-
module.exports.
|
|
2929
|
+
module.exports.__wbg_crypto_2036bed7c44c25e7 = function(arg0) {
|
|
2996
2930
|
const ret = getObject(arg0).crypto;
|
|
2997
2931
|
return addHeapObject(ret);
|
|
2998
2932
|
};
|
|
2999
2933
|
|
|
3000
|
-
module.exports.
|
|
2934
|
+
module.exports.__wbg_msCrypto_a21fc88caf1ecdc8 = function(arg0) {
|
|
3001
2935
|
const ret = getObject(arg0).msCrypto;
|
|
3002
2936
|
return addHeapObject(ret);
|
|
3003
2937
|
};
|
|
3004
2938
|
|
|
3005
|
-
module.exports.
|
|
2939
|
+
module.exports.__wbg_getRandomValues_b99eec4244a475bb = function() { return handleError(function (arg0, arg1) {
|
|
2940
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
2941
|
+
}, arguments) };
|
|
2942
|
+
|
|
2943
|
+
module.exports.__wbg_randomFillSync_065afffde01daa66 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2944
|
+
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
2945
|
+
}, arguments) };
|
|
2946
|
+
|
|
2947
|
+
module.exports.__wbg_new_1d9a920c6bfc44a8 = function() {
|
|
3006
2948
|
const ret = new Array();
|
|
3007
2949
|
return addHeapObject(ret);
|
|
3008
2950
|
};
|
|
3009
2951
|
|
|
3010
|
-
module.exports.
|
|
2952
|
+
module.exports.__wbg_newnoargs_b5b063fc6c2f0376 = function(arg0, arg1) {
|
|
3011
2953
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3012
2954
|
return addHeapObject(ret);
|
|
3013
2955
|
};
|
|
3014
2956
|
|
|
3015
|
-
module.exports.
|
|
2957
|
+
module.exports.__wbg_call_97ae9d8645dc388b = function() { return handleError(function (arg0, arg1) {
|
|
3016
2958
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
3017
2959
|
return addHeapObject(ret);
|
|
3018
2960
|
}, arguments) };
|
|
@@ -3022,22 +2964,22 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
|
3022
2964
|
return addHeapObject(ret);
|
|
3023
2965
|
};
|
|
3024
2966
|
|
|
3025
|
-
module.exports.
|
|
2967
|
+
module.exports.__wbg_self_6d479506f72c6a71 = function() { return handleError(function () {
|
|
3026
2968
|
const ret = self.self;
|
|
3027
2969
|
return addHeapObject(ret);
|
|
3028
2970
|
}, arguments) };
|
|
3029
2971
|
|
|
3030
|
-
module.exports.
|
|
2972
|
+
module.exports.__wbg_window_f2557cc78490aceb = function() { return handleError(function () {
|
|
3031
2973
|
const ret = window.window;
|
|
3032
2974
|
return addHeapObject(ret);
|
|
3033
2975
|
}, arguments) };
|
|
3034
2976
|
|
|
3035
|
-
module.exports.
|
|
2977
|
+
module.exports.__wbg_globalThis_7f206bda628d5286 = function() { return handleError(function () {
|
|
3036
2978
|
const ret = globalThis.globalThis;
|
|
3037
2979
|
return addHeapObject(ret);
|
|
3038
2980
|
}, arguments) };
|
|
3039
2981
|
|
|
3040
|
-
module.exports.
|
|
2982
|
+
module.exports.__wbg_global_ba75c50d1cf384f4 = function() { return handleError(function () {
|
|
3041
2983
|
const ret = global.global;
|
|
3042
2984
|
return addHeapObject(ret);
|
|
3043
2985
|
}, arguments) };
|
|
@@ -3047,36 +2989,36 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
|
3047
2989
|
return ret;
|
|
3048
2990
|
};
|
|
3049
2991
|
|
|
3050
|
-
module.exports.
|
|
2992
|
+
module.exports.__wbg_push_740e4b286702d964 = function(arg0, arg1) {
|
|
3051
2993
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
3052
2994
|
return ret;
|
|
3053
2995
|
};
|
|
3054
2996
|
|
|
3055
|
-
module.exports.
|
|
2997
|
+
module.exports.__wbg_buffer_3f3d764d4747d564 = function(arg0) {
|
|
3056
2998
|
const ret = getObject(arg0).buffer;
|
|
3057
2999
|
return addHeapObject(ret);
|
|
3058
3000
|
};
|
|
3059
3001
|
|
|
3060
|
-
module.exports.
|
|
3002
|
+
module.exports.__wbg_new_8c3f0052272a457a = function(arg0) {
|
|
3061
3003
|
const ret = new Uint8Array(getObject(arg0));
|
|
3062
3004
|
return addHeapObject(ret);
|
|
3063
3005
|
};
|
|
3064
3006
|
|
|
3065
|
-
module.exports.
|
|
3007
|
+
module.exports.__wbg_set_83db9690f9353e79 = function(arg0, arg1, arg2) {
|
|
3066
3008
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3067
3009
|
};
|
|
3068
3010
|
|
|
3069
|
-
module.exports.
|
|
3011
|
+
module.exports.__wbg_length_9e1ae1900cb0fbd5 = function(arg0) {
|
|
3070
3012
|
const ret = getObject(arg0).length;
|
|
3071
3013
|
return ret;
|
|
3072
3014
|
};
|
|
3073
3015
|
|
|
3074
|
-
module.exports.
|
|
3016
|
+
module.exports.__wbg_newwithlength_f5933855e4f48a19 = function(arg0) {
|
|
3075
3017
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
3076
3018
|
return addHeapObject(ret);
|
|
3077
3019
|
};
|
|
3078
3020
|
|
|
3079
|
-
module.exports.
|
|
3021
|
+
module.exports.__wbg_subarray_58ad4efbb5bcb886 = function(arg0, arg1, arg2) {
|
|
3080
3022
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3081
3023
|
return addHeapObject(ret);
|
|
3082
3024
|
};
|
|
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;
|