fleethub-core 0.7.3 → 0.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/README.md +69 -0
- package/bindings.d.ts +31 -26
- package/node/{fh_core.d.ts → fleethub_core.d.ts} +20 -24
- package/node/{fh_core.js → fleethub_core.js} +303 -192
- package/node/fleethub_core_bg.wasm +0 -0
- package/{pkg/fh_core_bg.wasm.d.ts → node/fleethub_core_bg.wasm.d.ts} +122 -117
- package/package.json +5 -5
- package/pkg/{fh_core.d.ts → fleethub_core.d.ts} +20 -24
- package/pkg/fleethub_core.js +2 -0
- package/pkg/{fh_core_bg.js → fleethub_core_bg.js} +303 -192
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/{node/fh_core_bg.wasm.d.ts → pkg/fleethub_core_bg.wasm.d.ts} +122 -117
- package/node/fh_core_bg.wasm +0 -0
- package/pkg/fh_core.js +0 -2
- package/pkg/fh_core_bg.wasm +0 -0
|
@@ -181,12 +181,47 @@ module.exports.set_panic_hook = function() {
|
|
|
181
181
|
wasm.set_panic_hook();
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
+
const u32CvtShim = new Uint32Array(2);
|
|
185
|
+
|
|
186
|
+
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
|
|
187
|
+
|
|
188
|
+
function isLikeNone(x) {
|
|
189
|
+
return x === undefined || x === null;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
let cachegetUint16Memory0 = null;
|
|
193
|
+
function getUint16Memory0() {
|
|
194
|
+
if (cachegetUint16Memory0 === null || cachegetUint16Memory0.buffer !== wasm.memory.buffer) {
|
|
195
|
+
cachegetUint16Memory0 = new Uint16Array(wasm.memory.buffer);
|
|
196
|
+
}
|
|
197
|
+
return cachegetUint16Memory0;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
function passArray16ToWasm0(arg, malloc) {
|
|
201
|
+
const ptr = malloc(arg.length * 2);
|
|
202
|
+
getUint16Memory0().set(arg, ptr / 2);
|
|
203
|
+
WASM_VECTOR_LEN = arg.length;
|
|
204
|
+
return ptr;
|
|
205
|
+
}
|
|
206
|
+
|
|
184
207
|
function _assertClass(instance, klass) {
|
|
185
208
|
if (!(instance instanceof klass)) {
|
|
186
209
|
throw new Error(`expected instance of ${klass.name}`);
|
|
187
210
|
}
|
|
188
211
|
return instance.ptr;
|
|
189
212
|
}
|
|
213
|
+
|
|
214
|
+
let cachegetFloat64Memory0 = null;
|
|
215
|
+
function getFloat64Memory0() {
|
|
216
|
+
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
217
|
+
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
218
|
+
}
|
|
219
|
+
return cachegetFloat64Memory0;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
223
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
224
|
+
}
|
|
190
225
|
/**
|
|
191
226
|
* @param {Gear} gear
|
|
192
227
|
* @returns {boolean}
|
|
@@ -197,18 +232,6 @@ module.exports.air_squadron_can_equip = function(gear) {
|
|
|
197
232
|
return ret !== 0;
|
|
198
233
|
};
|
|
199
234
|
|
|
200
|
-
function isLikeNone(x) {
|
|
201
|
-
return x === undefined || x === null;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
let cachegetFloat64Memory0 = null;
|
|
205
|
-
function getFloat64Memory0() {
|
|
206
|
-
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
207
|
-
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
208
|
-
}
|
|
209
|
-
return cachegetFloat64Memory0;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
235
|
let cachegetUint32Memory0 = null;
|
|
213
236
|
function getUint32Memory0() {
|
|
214
237
|
if (cachegetUint32Memory0 === null || cachegetUint32Memory0.buffer !== wasm.memory.buffer) {
|
|
@@ -226,21 +249,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
226
249
|
}
|
|
227
250
|
return result;
|
|
228
251
|
}
|
|
229
|
-
|
|
230
|
-
let cachegetUint16Memory0 = null;
|
|
231
|
-
function getUint16Memory0() {
|
|
232
|
-
if (cachegetUint16Memory0 === null || cachegetUint16Memory0.buffer !== wasm.memory.buffer) {
|
|
233
|
-
cachegetUint16Memory0 = new Uint16Array(wasm.memory.buffer);
|
|
234
|
-
}
|
|
235
|
-
return cachegetUint16Memory0;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
function passArray16ToWasm0(arg, malloc) {
|
|
239
|
-
const ptr = malloc(arg.length * 2);
|
|
240
|
-
getUint16Memory0().set(arg, ptr / 2);
|
|
241
|
-
WASM_VECTOR_LEN = arg.length;
|
|
242
|
-
return ptr;
|
|
243
|
-
}
|
|
244
252
|
/**
|
|
245
253
|
* @param {bindings.OrgType} org_type
|
|
246
254
|
* @returns {boolean}
|
|
@@ -281,10 +289,6 @@ function getArrayU16FromWasm0(ptr, len) {
|
|
|
281
289
|
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
282
290
|
}
|
|
283
291
|
|
|
284
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
285
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
292
|
function handleError(f, args) {
|
|
289
293
|
try {
|
|
290
294
|
return f.apply(this, args);
|
|
@@ -340,6 +344,31 @@ class AirSquadron {
|
|
|
340
344
|
}
|
|
341
345
|
/**
|
|
342
346
|
*/
|
|
347
|
+
get xxh3() {
|
|
348
|
+
try {
|
|
349
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
350
|
+
wasm.__wbg_get_airsquadron_xxh3(retptr, this.ptr);
|
|
351
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
352
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
353
|
+
u32CvtShim[0] = r0;
|
|
354
|
+
u32CvtShim[1] = r1;
|
|
355
|
+
const n0 = uint64CvtShim[0];
|
|
356
|
+
return n0;
|
|
357
|
+
} finally {
|
|
358
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* @param {BigInt} arg0
|
|
363
|
+
*/
|
|
364
|
+
set xxh3(arg0) {
|
|
365
|
+
uint64CvtShim[0] = arg0;
|
|
366
|
+
const low0 = u32CvtShim[0];
|
|
367
|
+
const high0 = u32CvtShim[1];
|
|
368
|
+
wasm.__wbg_set_airsquadron_xxh3(this.ptr, low0, high0);
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
*/
|
|
343
372
|
get mode() {
|
|
344
373
|
var ret = wasm.__wbg_get_airsquadron_mode(this.ptr);
|
|
345
374
|
return takeObject(ret);
|
|
@@ -351,21 +380,6 @@ class AirSquadron {
|
|
|
351
380
|
wasm.__wbg_set_airsquadron_mode(this.ptr, addHeapObject(arg0));
|
|
352
381
|
}
|
|
353
382
|
/**
|
|
354
|
-
* @returns {string}
|
|
355
|
-
*/
|
|
356
|
-
get xxh3() {
|
|
357
|
-
try {
|
|
358
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
359
|
-
wasm.airsquadron_xxh3(retptr, this.ptr);
|
|
360
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
361
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
362
|
-
return getStringFromWasm0(r0, r1);
|
|
363
|
-
} finally {
|
|
364
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
365
|
-
wasm.__wbindgen_free(r0, r1);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
383
|
* @param {string} key
|
|
370
384
|
* @returns {Gear | undefined}
|
|
371
385
|
*/
|
|
@@ -389,16 +403,38 @@ class AirSquadron {
|
|
|
389
403
|
* @returns {number}
|
|
390
404
|
*/
|
|
391
405
|
get_slot_size(index) {
|
|
392
|
-
|
|
393
|
-
|
|
406
|
+
try {
|
|
407
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
408
|
+
wasm.airsquadron_get_slot_size(retptr, this.ptr, index);
|
|
409
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
410
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
411
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
412
|
+
if (r2) {
|
|
413
|
+
throw takeObject(r1);
|
|
414
|
+
}
|
|
415
|
+
return r0;
|
|
416
|
+
} finally {
|
|
417
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
418
|
+
}
|
|
394
419
|
}
|
|
395
420
|
/**
|
|
396
421
|
* @param {number} index
|
|
397
422
|
* @returns {number}
|
|
398
423
|
*/
|
|
399
424
|
get_max_slot_size(index) {
|
|
400
|
-
|
|
401
|
-
|
|
425
|
+
try {
|
|
426
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
427
|
+
wasm.airsquadron_get_max_slot_size(retptr, this.ptr, index);
|
|
428
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
429
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
430
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
431
|
+
if (r2) {
|
|
432
|
+
throw takeObject(r1);
|
|
433
|
+
}
|
|
434
|
+
return r0;
|
|
435
|
+
} finally {
|
|
436
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
437
|
+
}
|
|
402
438
|
}
|
|
403
439
|
/**
|
|
404
440
|
* @returns {number}
|
|
@@ -451,14 +487,14 @@ class Analyzer {
|
|
|
451
487
|
/**
|
|
452
488
|
* @param {Comp} comp
|
|
453
489
|
* @param {bindings.Formation} formation
|
|
454
|
-
* @param {number
|
|
455
|
-
* @param {number
|
|
490
|
+
* @param {number} adjusted_anti_air_resist
|
|
491
|
+
* @param {number} fleet_anti_air_resist
|
|
456
492
|
* @param {number | undefined} aaci
|
|
457
493
|
* @returns {bindings.CompAntiAirInfo}
|
|
458
494
|
*/
|
|
459
495
|
analyze_anti_air(comp, formation, adjusted_anti_air_resist, fleet_anti_air_resist, aaci) {
|
|
460
496
|
_assertClass(comp, Comp);
|
|
461
|
-
var ret = wasm.analyzer_analyze_anti_air(this.ptr, comp.ptr, addHeapObject(formation),
|
|
497
|
+
var ret = wasm.analyzer_analyze_anti_air(this.ptr, comp.ptr, addHeapObject(formation), adjusted_anti_air_resist, fleet_anti_air_resist, isLikeNone(aaci) ? 0xFFFFFF : aaci);
|
|
462
498
|
return takeObject(ret);
|
|
463
499
|
}
|
|
464
500
|
/**
|
|
@@ -741,14 +777,14 @@ class Comp {
|
|
|
741
777
|
}
|
|
742
778
|
/**
|
|
743
779
|
* 制空値
|
|
744
|
-
* @param {boolean}
|
|
745
|
-
* @param {boolean}
|
|
780
|
+
* @param {boolean} escort_participates
|
|
781
|
+
* @param {boolean} recon_participates
|
|
746
782
|
* @returns {number | undefined}
|
|
747
783
|
*/
|
|
748
|
-
fighter_power(
|
|
784
|
+
fighter_power(escort_participates, recon_participates) {
|
|
749
785
|
try {
|
|
750
786
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
751
|
-
wasm.comp_fighter_power(retptr, this.ptr,
|
|
787
|
+
wasm.comp_fighter_power(retptr, this.ptr, escort_participates, recon_participates);
|
|
752
788
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
753
789
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
754
790
|
return r0 === 0 ? undefined : r1;
|
|
@@ -766,8 +802,8 @@ class Comp {
|
|
|
766
802
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
767
803
|
wasm.comp_elos(retptr, this.ptr, node_divaricated_factor);
|
|
768
804
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
769
|
-
var
|
|
770
|
-
return r0 === 0 ? undefined :
|
|
805
|
+
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
806
|
+
return r0 === 0 ? undefined : r2;
|
|
771
807
|
} finally {
|
|
772
808
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
773
809
|
}
|
|
@@ -811,8 +847,19 @@ class FhCore {
|
|
|
811
847
|
* @param {Function} js_fn
|
|
812
848
|
*/
|
|
813
849
|
constructor(js_master, js_fn) {
|
|
814
|
-
|
|
815
|
-
|
|
850
|
+
try {
|
|
851
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
852
|
+
wasm.fhcore_new(retptr, addHeapObject(js_master), addHeapObject(js_fn));
|
|
853
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
854
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
855
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
856
|
+
if (r2) {
|
|
857
|
+
throw takeObject(r1);
|
|
858
|
+
}
|
|
859
|
+
return FhCore.__wrap(r0);
|
|
860
|
+
} finally {
|
|
861
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
862
|
+
}
|
|
816
863
|
}
|
|
817
864
|
/**
|
|
818
865
|
* @param {bindings.GearState | undefined} input
|
|
@@ -897,10 +944,21 @@ class FhCore {
|
|
|
897
944
|
* @returns {bindings.SimulatorResult}
|
|
898
945
|
*/
|
|
899
946
|
simulate_shelling_support(player, enemy, params, times) {
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
947
|
+
try {
|
|
948
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
949
|
+
_assertClass(player, Comp);
|
|
950
|
+
_assertClass(enemy, Comp);
|
|
951
|
+
wasm.fhcore_simulate_shelling_support(retptr, this.ptr, player.ptr, enemy.ptr, addHeapObject(params), times);
|
|
952
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
953
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
954
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
955
|
+
if (r2) {
|
|
956
|
+
throw takeObject(r1);
|
|
957
|
+
}
|
|
958
|
+
return takeObject(r0);
|
|
959
|
+
} finally {
|
|
960
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
961
|
+
}
|
|
904
962
|
}
|
|
905
963
|
}
|
|
906
964
|
module.exports.FhCore = FhCore;
|
|
@@ -952,6 +1010,31 @@ class Fleet {
|
|
|
952
1010
|
}
|
|
953
1011
|
/**
|
|
954
1012
|
*/
|
|
1013
|
+
get xxh3() {
|
|
1014
|
+
try {
|
|
1015
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1016
|
+
wasm.__wbg_get_fleet_xxh3(retptr, this.ptr);
|
|
1017
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1018
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1019
|
+
u32CvtShim[0] = r0;
|
|
1020
|
+
u32CvtShim[1] = r1;
|
|
1021
|
+
const n0 = uint64CvtShim[0];
|
|
1022
|
+
return n0;
|
|
1023
|
+
} finally {
|
|
1024
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
/**
|
|
1028
|
+
* @param {BigInt} arg0
|
|
1029
|
+
*/
|
|
1030
|
+
set xxh3(arg0) {
|
|
1031
|
+
uint64CvtShim[0] = arg0;
|
|
1032
|
+
const low0 = u32CvtShim[0];
|
|
1033
|
+
const high0 = u32CvtShim[1];
|
|
1034
|
+
wasm.__wbg_set_fleet_xxh3(this.ptr, low0, high0);
|
|
1035
|
+
}
|
|
1036
|
+
/**
|
|
1037
|
+
*/
|
|
955
1038
|
get len() {
|
|
956
1039
|
var ret = wasm.__wbg_get_fleet_len(this.ptr);
|
|
957
1040
|
return ret >>> 0;
|
|
@@ -963,21 +1046,6 @@ class Fleet {
|
|
|
963
1046
|
wasm.__wbg_set_fleet_len(this.ptr, arg0);
|
|
964
1047
|
}
|
|
965
1048
|
/**
|
|
966
|
-
* @returns {string}
|
|
967
|
-
*/
|
|
968
|
-
get xxh3() {
|
|
969
|
-
try {
|
|
970
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
971
|
-
wasm.fleet_xxh3(retptr, this.ptr);
|
|
972
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
973
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
974
|
-
return getStringFromWasm0(r0, r1);
|
|
975
|
-
} finally {
|
|
976
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
977
|
-
wasm.__wbindgen_free(r0, r1);
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
/**
|
|
981
1049
|
* @returns {bindings.FleetMeta}
|
|
982
1050
|
*/
|
|
983
1051
|
meta() {
|
|
@@ -1108,20 +1176,20 @@ class Fleet {
|
|
|
1108
1176
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1109
1177
|
wasm.fleet_fleet_los_mod(retptr, this.ptr);
|
|
1110
1178
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1111
|
-
var
|
|
1112
|
-
return r0 === 0 ? undefined :
|
|
1179
|
+
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
1180
|
+
return r0 === 0 ? undefined : r2;
|
|
1113
1181
|
} finally {
|
|
1114
1182
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1115
1183
|
}
|
|
1116
1184
|
}
|
|
1117
1185
|
/**
|
|
1118
|
-
* @param {boolean}
|
|
1186
|
+
* @param {boolean} recon_participates
|
|
1119
1187
|
* @returns {number | undefined}
|
|
1120
1188
|
*/
|
|
1121
|
-
fighter_power(
|
|
1189
|
+
fighter_power(recon_participates) {
|
|
1122
1190
|
try {
|
|
1123
1191
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1124
|
-
wasm.fleet_fighter_power(retptr, this.ptr,
|
|
1192
|
+
wasm.fleet_fighter_power(retptr, this.ptr, recon_participates);
|
|
1125
1193
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1126
1194
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1127
1195
|
return r0 === 0 ? undefined : r1;
|
|
@@ -1140,8 +1208,8 @@ class Fleet {
|
|
|
1140
1208
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1141
1209
|
wasm.fleet_elos(retptr, this.ptr, hq_level, node_divaricated_factor);
|
|
1142
1210
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1143
|
-
var
|
|
1144
|
-
return r0 === 0 ? undefined :
|
|
1211
|
+
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
1212
|
+
return r0 === 0 ? undefined : r2;
|
|
1145
1213
|
} finally {
|
|
1146
1214
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1147
1215
|
}
|
|
@@ -1155,8 +1223,8 @@ class Fleet {
|
|
|
1155
1223
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1156
1224
|
wasm.fleet_aviation_detection_score(retptr, this.ptr);
|
|
1157
1225
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1158
|
-
var
|
|
1159
|
-
return r0 === 0 ? undefined :
|
|
1226
|
+
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
1227
|
+
return r0 === 0 ? undefined : r2;
|
|
1160
1228
|
} finally {
|
|
1161
1229
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1162
1230
|
}
|
|
@@ -1180,8 +1248,8 @@ class Fleet {
|
|
|
1180
1248
|
var len0 = WASM_VECTOR_LEN;
|
|
1181
1249
|
wasm.fleet_sum_ship_stat_by(retptr, this.ptr, ptr0, len0);
|
|
1182
1250
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1183
|
-
var
|
|
1184
|
-
return r0 === 0 ? undefined :
|
|
1251
|
+
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
1252
|
+
return r0 === 0 ? undefined : r2;
|
|
1185
1253
|
} finally {
|
|
1186
1254
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1187
1255
|
}
|
|
@@ -1241,6 +1309,31 @@ class Gear {
|
|
|
1241
1309
|
}
|
|
1242
1310
|
/**
|
|
1243
1311
|
*/
|
|
1312
|
+
get xxh3() {
|
|
1313
|
+
try {
|
|
1314
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1315
|
+
wasm.__wbg_get_gear_xxh3(retptr, this.ptr);
|
|
1316
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1317
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1318
|
+
u32CvtShim[0] = r0;
|
|
1319
|
+
u32CvtShim[1] = r1;
|
|
1320
|
+
const n0 = uint64CvtShim[0];
|
|
1321
|
+
return n0;
|
|
1322
|
+
} finally {
|
|
1323
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* @param {BigInt} arg0
|
|
1328
|
+
*/
|
|
1329
|
+
set xxh3(arg0) {
|
|
1330
|
+
uint64CvtShim[0] = arg0;
|
|
1331
|
+
const low0 = u32CvtShim[0];
|
|
1332
|
+
const high0 = u32CvtShim[1];
|
|
1333
|
+
wasm.__wbg_set_gear_xxh3(this.ptr, low0, high0);
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
*/
|
|
1244
1337
|
get gear_id() {
|
|
1245
1338
|
var ret = wasm.__wbg_get_gear_gear_id(this.ptr);
|
|
1246
1339
|
return ret;
|
|
@@ -1545,21 +1638,6 @@ class Gear {
|
|
|
1545
1638
|
return Gear.__wrap(ret);
|
|
1546
1639
|
}
|
|
1547
1640
|
/**
|
|
1548
|
-
* @returns {string}
|
|
1549
|
-
*/
|
|
1550
|
-
get xxh3() {
|
|
1551
|
-
try {
|
|
1552
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1553
|
-
wasm.gear_xxh3(retptr, this.ptr);
|
|
1554
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1555
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1556
|
-
return getStringFromWasm0(r0, r1);
|
|
1557
|
-
} finally {
|
|
1558
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1559
|
-
wasm.__wbindgen_free(r0, r1);
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
/**
|
|
1563
1641
|
* @returns {any}
|
|
1564
1642
|
*/
|
|
1565
1643
|
get types() {
|
|
@@ -1690,13 +1768,6 @@ class Gear {
|
|
|
1690
1768
|
return ret;
|
|
1691
1769
|
}
|
|
1692
1770
|
/**
|
|
1693
|
-
* @returns {boolean}
|
|
1694
|
-
*/
|
|
1695
|
-
is_contact_selection_plane() {
|
|
1696
|
-
var ret = wasm.gear_is_contact_selection_plane(this.ptr);
|
|
1697
|
-
return ret !== 0;
|
|
1698
|
-
}
|
|
1699
|
-
/**
|
|
1700
1771
|
* @param {bindings.AirStateRank} rank
|
|
1701
1772
|
* @returns {number}
|
|
1702
1773
|
*/
|
|
@@ -2024,6 +2095,31 @@ class Org {
|
|
|
2024
2095
|
}
|
|
2025
2096
|
/**
|
|
2026
2097
|
*/
|
|
2098
|
+
get xxh3() {
|
|
2099
|
+
try {
|
|
2100
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2101
|
+
wasm.__wbg_get_org_xxh3(retptr, this.ptr);
|
|
2102
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2103
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2104
|
+
u32CvtShim[0] = r0;
|
|
2105
|
+
u32CvtShim[1] = r1;
|
|
2106
|
+
const n0 = uint64CvtShim[0];
|
|
2107
|
+
return n0;
|
|
2108
|
+
} finally {
|
|
2109
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
/**
|
|
2113
|
+
* @param {BigInt} arg0
|
|
2114
|
+
*/
|
|
2115
|
+
set xxh3(arg0) {
|
|
2116
|
+
uint64CvtShim[0] = arg0;
|
|
2117
|
+
const low0 = u32CvtShim[0];
|
|
2118
|
+
const high0 = u32CvtShim[1];
|
|
2119
|
+
wasm.__wbg_set_org_xxh3(this.ptr, low0, high0);
|
|
2120
|
+
}
|
|
2121
|
+
/**
|
|
2122
|
+
*/
|
|
2027
2123
|
get hq_level() {
|
|
2028
2124
|
var ret = wasm.__wbg_get_org_hq_level(this.ptr);
|
|
2029
2125
|
return ret;
|
|
@@ -2121,21 +2217,6 @@ class Org {
|
|
|
2121
2217
|
wasm.__wbg_set_org_boss_sup(this.ptr, ptr0, len0);
|
|
2122
2218
|
}
|
|
2123
2219
|
/**
|
|
2124
|
-
* @returns {string}
|
|
2125
|
-
*/
|
|
2126
|
-
get xxh3() {
|
|
2127
|
-
try {
|
|
2128
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2129
|
-
wasm.org_xxh3(retptr, this.ptr);
|
|
2130
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2131
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2132
|
-
return getStringFromWasm0(r0, r1);
|
|
2133
|
-
} finally {
|
|
2134
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2135
|
-
wasm.__wbindgen_free(r0, r1);
|
|
2136
|
-
}
|
|
2137
|
-
}
|
|
2138
|
-
/**
|
|
2139
2220
|
* @param {bindings.Role} role
|
|
2140
2221
|
* @returns {number}
|
|
2141
2222
|
*/
|
|
@@ -2191,8 +2272,8 @@ class Org {
|
|
|
2191
2272
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2192
2273
|
wasm.org_fleet_los_mod(retptr, this.ptr, addHeapObject(role));
|
|
2193
2274
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2194
|
-
var
|
|
2195
|
-
return r0 === 0 ? undefined :
|
|
2275
|
+
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
2276
|
+
return r0 === 0 ? undefined : r2;
|
|
2196
2277
|
} finally {
|
|
2197
2278
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2198
2279
|
}
|
|
@@ -2298,10 +2379,21 @@ class Org {
|
|
|
2298
2379
|
* @returns {AirSquadron}
|
|
2299
2380
|
*/
|
|
2300
2381
|
get_air_squadron(key) {
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2382
|
+
try {
|
|
2383
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2384
|
+
var ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2385
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2386
|
+
wasm.org_get_air_squadron(retptr, this.ptr, ptr0, len0);
|
|
2387
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2388
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2389
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
2390
|
+
if (r2) {
|
|
2391
|
+
throw takeObject(r1);
|
|
2392
|
+
}
|
|
2393
|
+
return AirSquadron.__wrap(r0);
|
|
2394
|
+
} finally {
|
|
2395
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2396
|
+
}
|
|
2305
2397
|
}
|
|
2306
2398
|
/**
|
|
2307
2399
|
* @returns {(string)[]}
|
|
@@ -2446,6 +2538,31 @@ class Ship {
|
|
|
2446
2538
|
}
|
|
2447
2539
|
/**
|
|
2448
2540
|
*/
|
|
2541
|
+
get xxh3() {
|
|
2542
|
+
try {
|
|
2543
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2544
|
+
wasm.__wbg_get_ship_xxh3(retptr, this.ptr);
|
|
2545
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2546
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2547
|
+
u32CvtShim[0] = r0;
|
|
2548
|
+
u32CvtShim[1] = r1;
|
|
2549
|
+
const n0 = uint64CvtShim[0];
|
|
2550
|
+
return n0;
|
|
2551
|
+
} finally {
|
|
2552
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2553
|
+
}
|
|
2554
|
+
}
|
|
2555
|
+
/**
|
|
2556
|
+
* @param {BigInt} arg0
|
|
2557
|
+
*/
|
|
2558
|
+
set xxh3(arg0) {
|
|
2559
|
+
uint64CvtShim[0] = arg0;
|
|
2560
|
+
const low0 = u32CvtShim[0];
|
|
2561
|
+
const high0 = u32CvtShim[1];
|
|
2562
|
+
wasm.__wbg_set_ship_xxh3(this.ptr, low0, high0);
|
|
2563
|
+
}
|
|
2564
|
+
/**
|
|
2565
|
+
*/
|
|
2449
2566
|
get ship_id() {
|
|
2450
2567
|
var ret = wasm.__wbg_get_ship_ship_id(this.ptr);
|
|
2451
2568
|
return ret;
|
|
@@ -2656,21 +2773,6 @@ class Ship {
|
|
|
2656
2773
|
return ret !== 0;
|
|
2657
2774
|
}
|
|
2658
2775
|
/**
|
|
2659
|
-
* @returns {string}
|
|
2660
|
-
*/
|
|
2661
|
-
get xxh3() {
|
|
2662
|
-
try {
|
|
2663
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2664
|
-
wasm.org_xxh3(retptr, this.ptr);
|
|
2665
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2666
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2667
|
-
return getStringFromWasm0(r0, r1);
|
|
2668
|
-
} finally {
|
|
2669
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2670
|
-
wasm.__wbindgen_free(r0, r1);
|
|
2671
|
-
}
|
|
2672
|
-
}
|
|
2673
|
-
/**
|
|
2674
2776
|
* @returns {bindings.ShipState}
|
|
2675
2777
|
*/
|
|
2676
2778
|
state() {
|
|
@@ -3032,13 +3134,13 @@ class Ship {
|
|
|
3032
3134
|
return ret;
|
|
3033
3135
|
}
|
|
3034
3136
|
/**
|
|
3035
|
-
* @param {boolean}
|
|
3137
|
+
* @param {boolean} recon_participates
|
|
3036
3138
|
* @returns {number | undefined}
|
|
3037
3139
|
*/
|
|
3038
|
-
fighter_power(
|
|
3140
|
+
fighter_power(recon_participates) {
|
|
3039
3141
|
try {
|
|
3040
3142
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3041
|
-
wasm.ship_fighter_power(retptr, this.ptr,
|
|
3143
|
+
wasm.ship_fighter_power(retptr, this.ptr, recon_participates);
|
|
3042
3144
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
3043
3145
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
3044
3146
|
return r0 === 0 ? undefined : r1;
|
|
@@ -3054,8 +3156,8 @@ class Ship {
|
|
|
3054
3156
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3055
3157
|
wasm.ship_fleet_los_factor(retptr, this.ptr);
|
|
3056
3158
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
3057
|
-
var
|
|
3058
|
-
return r0 === 0 ? undefined :
|
|
3159
|
+
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
3160
|
+
return r0 === 0 ? undefined : r2;
|
|
3059
3161
|
} finally {
|
|
3060
3162
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3061
3163
|
}
|
|
@@ -3075,6 +3177,14 @@ class Ship {
|
|
|
3075
3177
|
return ret;
|
|
3076
3178
|
}
|
|
3077
3179
|
/**
|
|
3180
|
+
* @param {boolean} is_night
|
|
3181
|
+
* @returns {number}
|
|
3182
|
+
*/
|
|
3183
|
+
fit_gun_bonus(is_night) {
|
|
3184
|
+
var ret = wasm.ship_fit_gun_bonus(this.ptr, is_night);
|
|
3185
|
+
return ret;
|
|
3186
|
+
}
|
|
3187
|
+
/**
|
|
3078
3188
|
* @returns {number | undefined}
|
|
3079
3189
|
*/
|
|
3080
3190
|
basic_accuracy_term() {
|
|
@@ -3082,8 +3192,8 @@ class Ship {
|
|
|
3082
3192
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3083
3193
|
wasm.ship_basic_accuracy_term(retptr, this.ptr);
|
|
3084
3194
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
3085
|
-
var
|
|
3086
|
-
return r0 === 0 ? undefined :
|
|
3195
|
+
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
3196
|
+
return r0 === 0 ? undefined : r2;
|
|
3087
3197
|
} finally {
|
|
3088
3198
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3089
3199
|
}
|
|
@@ -3096,8 +3206,8 @@ class Ship {
|
|
|
3096
3206
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3097
3207
|
wasm.ship_basic_evasion_term(retptr, this.ptr);
|
|
3098
3208
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
3099
|
-
var
|
|
3100
|
-
return r0 === 0 ? undefined :
|
|
3209
|
+
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
3210
|
+
return r0 === 0 ? undefined : r2;
|
|
3101
3211
|
} finally {
|
|
3102
3212
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3103
3213
|
}
|
|
@@ -3113,8 +3223,8 @@ class Ship {
|
|
|
3113
3223
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3114
3224
|
wasm.ship_evasion_term(retptr, this.ptr, formation_mod, postcap_additive, postcap_multiplicative);
|
|
3115
3225
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
3116
|
-
var
|
|
3117
|
-
return r0 === 0 ? undefined :
|
|
3226
|
+
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
3227
|
+
return r0 === 0 ? undefined : r2;
|
|
3118
3228
|
} finally {
|
|
3119
3229
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3120
3230
|
}
|
|
@@ -3128,8 +3238,8 @@ class Ship {
|
|
|
3128
3238
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3129
3239
|
wasm.ship_basic_defense_power(retptr, this.ptr, armor_penetration);
|
|
3130
3240
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
3131
|
-
var
|
|
3132
|
-
return r0 === 0 ? undefined :
|
|
3241
|
+
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
3242
|
+
return r0 === 0 ? undefined : r2;
|
|
3133
3243
|
} finally {
|
|
3134
3244
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3135
3245
|
}
|
|
@@ -3166,8 +3276,8 @@ class Ship {
|
|
|
3166
3276
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3167
3277
|
wasm.ship_elos(retptr, this.ptr, node_divaricated_factor);
|
|
3168
3278
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
3169
|
-
var
|
|
3170
|
-
return r0 === 0 ? undefined :
|
|
3279
|
+
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
3280
|
+
return r0 === 0 ? undefined : r2;
|
|
3171
3281
|
} finally {
|
|
3172
3282
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3173
3283
|
}
|
|
@@ -3204,7 +3314,7 @@ module.exports.__wbindgen_json_parse = function(arg0, arg1) {
|
|
|
3204
3314
|
return addHeapObject(ret);
|
|
3205
3315
|
};
|
|
3206
3316
|
|
|
3207
|
-
module.exports.
|
|
3317
|
+
module.exports.__wbg_error_ca520cb687b085a1 = function(arg0) {
|
|
3208
3318
|
console.error(getObject(arg0));
|
|
3209
3319
|
};
|
|
3210
3320
|
|
|
@@ -3229,15 +3339,15 @@ module.exports.__wbg_error_09919627ac0992f5 = function(arg0, arg1) {
|
|
|
3229
3339
|
}
|
|
3230
3340
|
};
|
|
3231
3341
|
|
|
3232
|
-
module.exports.
|
|
3342
|
+
module.exports.__wbg_randomFillSync_378e02b85af41ab6 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3233
3343
|
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
3234
3344
|
}, arguments) };
|
|
3235
3345
|
|
|
3236
|
-
module.exports.
|
|
3346
|
+
module.exports.__wbg_getRandomValues_99bbe8a65f4aef87 = function() { return handleError(function (arg0, arg1) {
|
|
3237
3347
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3238
3348
|
}, arguments) };
|
|
3239
3349
|
|
|
3240
|
-
module.exports.
|
|
3350
|
+
module.exports.__wbg_process_5729605ce9d34ea8 = function(arg0) {
|
|
3241
3351
|
var ret = getObject(arg0).process;
|
|
3242
3352
|
return addHeapObject(ret);
|
|
3243
3353
|
};
|
|
@@ -3248,12 +3358,12 @@ module.exports.__wbindgen_is_object = function(arg0) {
|
|
|
3248
3358
|
return ret;
|
|
3249
3359
|
};
|
|
3250
3360
|
|
|
3251
|
-
module.exports.
|
|
3361
|
+
module.exports.__wbg_versions_531e16e1a776ee97 = function(arg0) {
|
|
3252
3362
|
var ret = getObject(arg0).versions;
|
|
3253
3363
|
return addHeapObject(ret);
|
|
3254
3364
|
};
|
|
3255
3365
|
|
|
3256
|
-
module.exports.
|
|
3366
|
+
module.exports.__wbg_node_18b58a160b60d170 = function(arg0) {
|
|
3257
3367
|
var ret = getObject(arg0).node;
|
|
3258
3368
|
return addHeapObject(ret);
|
|
3259
3369
|
};
|
|
@@ -3263,27 +3373,32 @@ module.exports.__wbindgen_is_string = function(arg0) {
|
|
|
3263
3373
|
return ret;
|
|
3264
3374
|
};
|
|
3265
3375
|
|
|
3266
|
-
module.exports.
|
|
3267
|
-
var ret = module
|
|
3376
|
+
module.exports.__wbg_static_accessor_NODE_MODULE_bdc5ca9096c68aeb = function() {
|
|
3377
|
+
var ret = module;
|
|
3378
|
+
return addHeapObject(ret);
|
|
3379
|
+
};
|
|
3380
|
+
|
|
3381
|
+
module.exports.__wbg_require_edfaedd93e302925 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3382
|
+
var ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
|
|
3268
3383
|
return addHeapObject(ret);
|
|
3269
3384
|
}, arguments) };
|
|
3270
3385
|
|
|
3271
|
-
module.exports.
|
|
3386
|
+
module.exports.__wbg_crypto_2bc4d5b05161de5b = function(arg0) {
|
|
3272
3387
|
var ret = getObject(arg0).crypto;
|
|
3273
3388
|
return addHeapObject(ret);
|
|
3274
3389
|
};
|
|
3275
3390
|
|
|
3276
|
-
module.exports.
|
|
3391
|
+
module.exports.__wbg_msCrypto_d003eebe62c636a9 = function(arg0) {
|
|
3277
3392
|
var ret = getObject(arg0).msCrypto;
|
|
3278
3393
|
return addHeapObject(ret);
|
|
3279
3394
|
};
|
|
3280
3395
|
|
|
3281
|
-
module.exports.
|
|
3396
|
+
module.exports.__wbg_newnoargs_f579424187aa1717 = function(arg0, arg1) {
|
|
3282
3397
|
var ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3283
3398
|
return addHeapObject(ret);
|
|
3284
3399
|
};
|
|
3285
3400
|
|
|
3286
|
-
module.exports.
|
|
3401
|
+
module.exports.__wbg_call_89558c3e96703ca1 = function() { return handleError(function (arg0, arg1) {
|
|
3287
3402
|
var ret = getObject(arg0).call(getObject(arg1));
|
|
3288
3403
|
return addHeapObject(ret);
|
|
3289
3404
|
}, arguments) };
|
|
@@ -3293,27 +3408,27 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
|
3293
3408
|
return addHeapObject(ret);
|
|
3294
3409
|
};
|
|
3295
3410
|
|
|
3296
|
-
module.exports.
|
|
3411
|
+
module.exports.__wbg_call_471669b9b42539e5 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3297
3412
|
var ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
3298
3413
|
return addHeapObject(ret);
|
|
3299
3414
|
}, arguments) };
|
|
3300
3415
|
|
|
3301
|
-
module.exports.
|
|
3416
|
+
module.exports.__wbg_self_e23d74ae45fb17d1 = function() { return handleError(function () {
|
|
3302
3417
|
var ret = self.self;
|
|
3303
3418
|
return addHeapObject(ret);
|
|
3304
3419
|
}, arguments) };
|
|
3305
3420
|
|
|
3306
|
-
module.exports.
|
|
3421
|
+
module.exports.__wbg_window_b4be7f48b24ac56e = function() { return handleError(function () {
|
|
3307
3422
|
var ret = window.window;
|
|
3308
3423
|
return addHeapObject(ret);
|
|
3309
3424
|
}, arguments) };
|
|
3310
3425
|
|
|
3311
|
-
module.exports.
|
|
3426
|
+
module.exports.__wbg_globalThis_d61b1f48a57191ae = function() { return handleError(function () {
|
|
3312
3427
|
var ret = globalThis.globalThis;
|
|
3313
3428
|
return addHeapObject(ret);
|
|
3314
3429
|
}, arguments) };
|
|
3315
3430
|
|
|
3316
|
-
module.exports.
|
|
3431
|
+
module.exports.__wbg_global_e7669da72fd7f239 = function() { return handleError(function () {
|
|
3317
3432
|
var ret = global.global;
|
|
3318
3433
|
return addHeapObject(ret);
|
|
3319
3434
|
}, arguments) };
|
|
@@ -3323,31 +3438,31 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
|
3323
3438
|
return ret;
|
|
3324
3439
|
};
|
|
3325
3440
|
|
|
3326
|
-
module.exports.
|
|
3441
|
+
module.exports.__wbg_buffer_5e74a88a1424a2e0 = function(arg0) {
|
|
3327
3442
|
var ret = getObject(arg0).buffer;
|
|
3328
3443
|
return addHeapObject(ret);
|
|
3329
3444
|
};
|
|
3330
3445
|
|
|
3331
|
-
module.exports.
|
|
3446
|
+
module.exports.__wbg_new_e3b800e570795b3c = function(arg0) {
|
|
3332
3447
|
var ret = new Uint8Array(getObject(arg0));
|
|
3333
3448
|
return addHeapObject(ret);
|
|
3334
3449
|
};
|
|
3335
3450
|
|
|
3336
|
-
module.exports.
|
|
3451
|
+
module.exports.__wbg_set_5b8081e9d002f0df = function(arg0, arg1, arg2) {
|
|
3337
3452
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3338
3453
|
};
|
|
3339
3454
|
|
|
3340
|
-
module.exports.
|
|
3455
|
+
module.exports.__wbg_length_30803400a8f15c59 = function(arg0) {
|
|
3341
3456
|
var ret = getObject(arg0).length;
|
|
3342
3457
|
return ret;
|
|
3343
3458
|
};
|
|
3344
3459
|
|
|
3345
|
-
module.exports.
|
|
3460
|
+
module.exports.__wbg_newwithlength_5f4ce114a24dfe1e = function(arg0) {
|
|
3346
3461
|
var ret = new Uint8Array(arg0 >>> 0);
|
|
3347
3462
|
return addHeapObject(ret);
|
|
3348
3463
|
};
|
|
3349
3464
|
|
|
3350
|
-
module.exports.
|
|
3465
|
+
module.exports.__wbg_subarray_a68f835ca2af506f = function(arg0, arg1, arg2) {
|
|
3351
3466
|
var ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3352
3467
|
return addHeapObject(ret);
|
|
3353
3468
|
};
|
|
@@ -3364,16 +3479,12 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
|
3364
3479
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
3365
3480
|
};
|
|
3366
3481
|
|
|
3367
|
-
module.exports.__wbindgen_rethrow = function(arg0) {
|
|
3368
|
-
throw takeObject(arg0);
|
|
3369
|
-
};
|
|
3370
|
-
|
|
3371
3482
|
module.exports.__wbindgen_memory = function() {
|
|
3372
3483
|
var ret = wasm.memory;
|
|
3373
3484
|
return addHeapObject(ret);
|
|
3374
3485
|
};
|
|
3375
3486
|
|
|
3376
|
-
const path = require('path').join(__dirname, '
|
|
3487
|
+
const path = require('path').join(__dirname, 'fleethub_core_bg.wasm');
|
|
3377
3488
|
const bytes = require('fs').readFileSync(path);
|
|
3378
3489
|
|
|
3379
3490
|
const wasmModule = new WebAssembly.Module(bytes);
|