fleethub-core 1.10.16 → 1.10.18
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 +2 -2
- package/node/fleethub_core.js +60 -56
- package/node/fleethub_core_bg.wasm +0 -0
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +2 -2
- package/pkg/fleethub_core.js +1 -3
- package/pkg/fleethub_core_bg.js +61 -62
- package/pkg/fleethub_core_bg.wasm +0 -0
package/node/fleethub_core.d.ts
CHANGED
|
@@ -80,6 +80,8 @@ export interface OrgState {
|
|
|
80
80
|
|
|
81
81
|
export type FleetKey = "f1" | "f2" | "f3" | "f4";
|
|
82
82
|
|
|
83
|
+
export type SlotSizeVec = (number | null)[];
|
|
84
|
+
|
|
83
85
|
export interface HitRate {
|
|
84
86
|
normal: number;
|
|
85
87
|
critical: number;
|
|
@@ -186,8 +188,6 @@ export type ShipType =
|
|
|
186
188
|
| "CT"
|
|
187
189
|
| "AO";
|
|
188
190
|
|
|
189
|
-
export type SlotSizeVec = (number | null)[];
|
|
190
|
-
|
|
191
191
|
export type SingleFormation =
|
|
192
192
|
| "LineAhead"
|
|
193
193
|
| "DoubleLine"
|
package/node/fleethub_core.js
CHANGED
|
@@ -4,7 +4,7 @@ let wasm;
|
|
|
4
4
|
const { createEquipmentBonuses } = require(`equipment-bonus`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
|
-
const heap = new Array(
|
|
7
|
+
const heap = new Array(32).fill(undefined);
|
|
8
8
|
|
|
9
9
|
heap.push(undefined, null, true, false);
|
|
10
10
|
|
|
@@ -21,14 +21,26 @@ function addHeapObject(obj) {
|
|
|
21
21
|
return idx;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
function dropObject(idx) {
|
|
25
|
+
if (idx < 36) return;
|
|
26
|
+
heap[idx] = heap_next;
|
|
27
|
+
heap_next = idx;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function takeObject(idx) {
|
|
31
|
+
const ret = getObject(idx);
|
|
32
|
+
dropObject(idx);
|
|
33
|
+
return ret;
|
|
34
|
+
}
|
|
35
|
+
|
|
24
36
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
25
37
|
|
|
26
38
|
cachedTextDecoder.decode();
|
|
27
39
|
|
|
28
|
-
let cachedUint8Memory0 =
|
|
40
|
+
let cachedUint8Memory0 = new Uint8Array();
|
|
29
41
|
|
|
30
42
|
function getUint8Memory0() {
|
|
31
|
-
if (cachedUint8Memory0
|
|
43
|
+
if (cachedUint8Memory0.byteLength === 0) {
|
|
32
44
|
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
33
45
|
}
|
|
34
46
|
return cachedUint8Memory0;
|
|
@@ -38,18 +50,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
38
50
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
39
51
|
}
|
|
40
52
|
|
|
41
|
-
function dropObject(idx) {
|
|
42
|
-
if (idx < 132) 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
53
|
let WASM_VECTOR_LEN = 0;
|
|
54
54
|
|
|
55
55
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -109,19 +109,19 @@ function isLikeNone(x) {
|
|
|
109
109
|
return x === undefined || x === null;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
let cachedInt32Memory0 =
|
|
112
|
+
let cachedInt32Memory0 = new Int32Array();
|
|
113
113
|
|
|
114
114
|
function getInt32Memory0() {
|
|
115
|
-
if (cachedInt32Memory0
|
|
115
|
+
if (cachedInt32Memory0.byteLength === 0) {
|
|
116
116
|
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
117
117
|
}
|
|
118
118
|
return cachedInt32Memory0;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
let cachedUint16Memory0 =
|
|
121
|
+
let cachedUint16Memory0 = new Uint16Array();
|
|
122
122
|
|
|
123
123
|
function getUint16Memory0() {
|
|
124
|
-
if (cachedUint16Memory0
|
|
124
|
+
if (cachedUint16Memory0.byteLength === 0) {
|
|
125
125
|
cachedUint16Memory0 = new Uint16Array(wasm.memory.buffer);
|
|
126
126
|
}
|
|
127
127
|
return cachedUint16Memory0;
|
|
@@ -141,19 +141,19 @@ function _assertClass(instance, klass) {
|
|
|
141
141
|
return instance.ptr;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
let cachedFloat64Memory0 =
|
|
144
|
+
let cachedFloat64Memory0 = new Float64Array();
|
|
145
145
|
|
|
146
146
|
function getFloat64Memory0() {
|
|
147
|
-
if (cachedFloat64Memory0
|
|
147
|
+
if (cachedFloat64Memory0.byteLength === 0) {
|
|
148
148
|
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
149
149
|
}
|
|
150
150
|
return cachedFloat64Memory0;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
let cachedUint32Memory0 =
|
|
153
|
+
let cachedUint32Memory0 = new Uint32Array();
|
|
154
154
|
|
|
155
155
|
function getUint32Memory0() {
|
|
156
|
-
if (cachedUint32Memory0
|
|
156
|
+
if (cachedUint32Memory0.byteLength === 0) {
|
|
157
157
|
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
158
158
|
}
|
|
159
159
|
return cachedUint32Memory0;
|
|
@@ -489,7 +489,8 @@ class Comp {
|
|
|
489
489
|
*/
|
|
490
490
|
set main(arg0) {
|
|
491
491
|
_assertClass(arg0, Fleet);
|
|
492
|
-
var ptr0 = arg0.
|
|
492
|
+
var ptr0 = arg0.ptr;
|
|
493
|
+
arg0.ptr = 0;
|
|
493
494
|
wasm.__wbg_set_comp_main(this.ptr, ptr0);
|
|
494
495
|
}
|
|
495
496
|
/**
|
|
@@ -506,7 +507,8 @@ class Comp {
|
|
|
506
507
|
let ptr0 = 0;
|
|
507
508
|
if (!isLikeNone(arg0)) {
|
|
508
509
|
_assertClass(arg0, Fleet);
|
|
509
|
-
ptr0 = arg0.
|
|
510
|
+
ptr0 = arg0.ptr;
|
|
511
|
+
arg0.ptr = 0;
|
|
510
512
|
}
|
|
511
513
|
wasm.__wbg_set_comp_escort(this.ptr, ptr0);
|
|
512
514
|
}
|
|
@@ -524,7 +526,8 @@ class Comp {
|
|
|
524
526
|
let ptr0 = 0;
|
|
525
527
|
if (!isLikeNone(arg0)) {
|
|
526
528
|
_assertClass(arg0, Fleet);
|
|
527
|
-
ptr0 = arg0.
|
|
529
|
+
ptr0 = arg0.ptr;
|
|
530
|
+
arg0.ptr = 0;
|
|
528
531
|
}
|
|
529
532
|
wasm.__wbg_set_comp_route_sup(this.ptr, ptr0);
|
|
530
533
|
}
|
|
@@ -542,7 +545,8 @@ class Comp {
|
|
|
542
545
|
let ptr0 = 0;
|
|
543
546
|
if (!isLikeNone(arg0)) {
|
|
544
547
|
_assertClass(arg0, Fleet);
|
|
545
|
-
ptr0 = arg0.
|
|
548
|
+
ptr0 = arg0.ptr;
|
|
549
|
+
arg0.ptr = 0;
|
|
546
550
|
}
|
|
547
551
|
wasm.__wbg_set_comp_boss_sup(this.ptr, ptr0);
|
|
548
552
|
}
|
|
@@ -2876,8 +2880,8 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
|
2876
2880
|
return addHeapObject(ret);
|
|
2877
2881
|
};
|
|
2878
2882
|
|
|
2879
|
-
module.exports.
|
|
2880
|
-
const ret =
|
|
2883
|
+
module.exports.__wbg_createEquipmentBonuses_0e99d5cbef010625 = function(arg0, arg1) {
|
|
2884
|
+
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2881
2885
|
return addHeapObject(ret);
|
|
2882
2886
|
};
|
|
2883
2887
|
|
|
@@ -2885,8 +2889,8 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2885
2889
|
takeObject(arg0);
|
|
2886
2890
|
};
|
|
2887
2891
|
|
|
2888
|
-
module.exports.
|
|
2889
|
-
const ret =
|
|
2892
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2893
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2890
2894
|
return addHeapObject(ret);
|
|
2891
2895
|
};
|
|
2892
2896
|
|
|
@@ -2921,14 +2925,6 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
|
2921
2925
|
}
|
|
2922
2926
|
};
|
|
2923
2927
|
|
|
2924
|
-
module.exports.__wbg_randomFillSync_6894564c2c334c42 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2925
|
-
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
2926
|
-
}, arguments) };
|
|
2927
|
-
|
|
2928
|
-
module.exports.__wbg_getRandomValues_805f1c3d65988a5a = function() { return handleError(function (arg0, arg1) {
|
|
2929
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
2930
|
-
}, arguments) };
|
|
2931
|
-
|
|
2932
2928
|
module.exports.__wbg_crypto_e1d53a1d73fb10b8 = function(arg0) {
|
|
2933
2929
|
const ret = getObject(arg0).crypto;
|
|
2934
2930
|
return addHeapObject(ret);
|
|
@@ -2975,17 +2971,25 @@ module.exports.__wbindgen_is_function = function(arg0) {
|
|
|
2975
2971
|
return ret;
|
|
2976
2972
|
};
|
|
2977
2973
|
|
|
2978
|
-
module.exports.
|
|
2974
|
+
module.exports.__wbg_getRandomValues_805f1c3d65988a5a = function() { return handleError(function (arg0, arg1) {
|
|
2975
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
2976
|
+
}, arguments) };
|
|
2977
|
+
|
|
2978
|
+
module.exports.__wbg_randomFillSync_6894564c2c334c42 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2979
|
+
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
2980
|
+
}, arguments) };
|
|
2981
|
+
|
|
2982
|
+
module.exports.__wbg_new_1d9a920c6bfc44a8 = function() {
|
|
2979
2983
|
const ret = new Array();
|
|
2980
2984
|
return addHeapObject(ret);
|
|
2981
2985
|
};
|
|
2982
2986
|
|
|
2983
|
-
module.exports.
|
|
2987
|
+
module.exports.__wbg_newnoargs_b5b063fc6c2f0376 = function(arg0, arg1) {
|
|
2984
2988
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
2985
2989
|
return addHeapObject(ret);
|
|
2986
2990
|
};
|
|
2987
2991
|
|
|
2988
|
-
module.exports.
|
|
2992
|
+
module.exports.__wbg_call_97ae9d8645dc388b = function() { return handleError(function (arg0, arg1) {
|
|
2989
2993
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
2990
2994
|
return addHeapObject(ret);
|
|
2991
2995
|
}, arguments) };
|
|
@@ -2999,71 +3003,71 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2999
3003
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3000
3004
|
};
|
|
3001
3005
|
|
|
3002
|
-
module.exports.
|
|
3006
|
+
module.exports.__wbg_self_6d479506f72c6a71 = function() { return handleError(function () {
|
|
3003
3007
|
const ret = self.self;
|
|
3004
3008
|
return addHeapObject(ret);
|
|
3005
3009
|
}, arguments) };
|
|
3006
3010
|
|
|
3007
|
-
module.exports.
|
|
3011
|
+
module.exports.__wbg_window_f2557cc78490aceb = function() { return handleError(function () {
|
|
3008
3012
|
const ret = window.window;
|
|
3009
3013
|
return addHeapObject(ret);
|
|
3010
3014
|
}, arguments) };
|
|
3011
3015
|
|
|
3012
|
-
module.exports.
|
|
3016
|
+
module.exports.__wbg_globalThis_7f206bda628d5286 = function() { return handleError(function () {
|
|
3013
3017
|
const ret = globalThis.globalThis;
|
|
3014
3018
|
return addHeapObject(ret);
|
|
3015
3019
|
}, arguments) };
|
|
3016
3020
|
|
|
3017
|
-
module.exports.
|
|
3021
|
+
module.exports.__wbg_global_ba75c50d1cf384f4 = function() { return handleError(function () {
|
|
3018
3022
|
const ret = global.global;
|
|
3019
3023
|
return addHeapObject(ret);
|
|
3020
3024
|
}, arguments) };
|
|
3021
3025
|
|
|
3022
|
-
module.exports.
|
|
3026
|
+
module.exports.__wbg_push_740e4b286702d964 = function(arg0, arg1) {
|
|
3023
3027
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
3024
3028
|
return ret;
|
|
3025
3029
|
};
|
|
3026
3030
|
|
|
3027
|
-
module.exports.
|
|
3031
|
+
module.exports.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3028
3032
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
3029
3033
|
return addHeapObject(ret);
|
|
3030
3034
|
}, arguments) };
|
|
3031
3035
|
|
|
3032
|
-
module.exports.
|
|
3036
|
+
module.exports.__wbg_buffer_3f3d764d4747d564 = function(arg0) {
|
|
3033
3037
|
const ret = getObject(arg0).buffer;
|
|
3034
3038
|
return addHeapObject(ret);
|
|
3035
3039
|
};
|
|
3036
3040
|
|
|
3037
|
-
module.exports.
|
|
3041
|
+
module.exports.__wbg_new_8c3f0052272a457a = function(arg0) {
|
|
3038
3042
|
const ret = new Uint8Array(getObject(arg0));
|
|
3039
3043
|
return addHeapObject(ret);
|
|
3040
3044
|
};
|
|
3041
3045
|
|
|
3042
|
-
module.exports.
|
|
3046
|
+
module.exports.__wbg_set_83db9690f9353e79 = function(arg0, arg1, arg2) {
|
|
3043
3047
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3044
3048
|
};
|
|
3045
3049
|
|
|
3046
|
-
module.exports.
|
|
3050
|
+
module.exports.__wbg_length_9e1ae1900cb0fbd5 = function(arg0) {
|
|
3047
3051
|
const ret = getObject(arg0).length;
|
|
3048
3052
|
return ret;
|
|
3049
3053
|
};
|
|
3050
3054
|
|
|
3051
|
-
module.exports.
|
|
3055
|
+
module.exports.__wbg_newwithlength_f5933855e4f48a19 = function(arg0) {
|
|
3052
3056
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
3053
3057
|
return addHeapObject(ret);
|
|
3054
3058
|
};
|
|
3055
3059
|
|
|
3056
|
-
module.exports.
|
|
3060
|
+
module.exports.__wbg_subarray_58ad4efbb5bcb886 = function(arg0, arg1, arg2) {
|
|
3057
3061
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3058
3062
|
return addHeapObject(ret);
|
|
3059
3063
|
};
|
|
3060
3064
|
|
|
3061
|
-
module.exports.
|
|
3065
|
+
module.exports.__wbg_parse_e23be3fecd886e2a = function() { return handleError(function (arg0, arg1) {
|
|
3062
3066
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
3063
3067
|
return addHeapObject(ret);
|
|
3064
3068
|
}, arguments) };
|
|
3065
3069
|
|
|
3066
|
-
module.exports.
|
|
3070
|
+
module.exports.__wbg_stringify_d6471d300ded9b68 = function() { return handleError(function (arg0) {
|
|
3067
3071
|
const ret = JSON.stringify(getObject(arg0));
|
|
3068
3072
|
return addHeapObject(ret);
|
|
3069
3073
|
}, arguments) };
|
|
Binary file
|
package/package.json
CHANGED
package/pkg/fleethub_core.d.ts
CHANGED
|
@@ -80,6 +80,8 @@ export interface OrgState {
|
|
|
80
80
|
|
|
81
81
|
export type FleetKey = "f1" | "f2" | "f3" | "f4";
|
|
82
82
|
|
|
83
|
+
export type SlotSizeVec = (number | null)[];
|
|
84
|
+
|
|
83
85
|
export interface HitRate {
|
|
84
86
|
normal: number;
|
|
85
87
|
critical: number;
|
|
@@ -186,8 +188,6 @@ export type ShipType =
|
|
|
186
188
|
| "CT"
|
|
187
189
|
| "AO";
|
|
188
190
|
|
|
189
|
-
export type SlotSizeVec = (number | null)[];
|
|
190
|
-
|
|
191
191
|
export type SingleFormation =
|
|
192
192
|
| "LineAhead"
|
|
193
193
|
| "DoubleLine"
|
package/pkg/fleethub_core.js
CHANGED
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { createEquipmentBonuses } from 'equipment-bonus';
|
|
2
|
+
import * as wasm from './fleethub_core_bg.wasm';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
export function __wbg_set_wasm(val) {
|
|
5
|
-
wasm = val;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const heap = new Array(128).fill(undefined);
|
|
4
|
+
const heap = new Array(32).fill(undefined);
|
|
10
5
|
|
|
11
6
|
heap.push(undefined, null, true, false);
|
|
12
7
|
|
|
@@ -23,16 +18,28 @@ function addHeapObject(obj) {
|
|
|
23
18
|
return idx;
|
|
24
19
|
}
|
|
25
20
|
|
|
21
|
+
function dropObject(idx) {
|
|
22
|
+
if (idx < 36) return;
|
|
23
|
+
heap[idx] = heap_next;
|
|
24
|
+
heap_next = idx;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function takeObject(idx) {
|
|
28
|
+
const ret = getObject(idx);
|
|
29
|
+
dropObject(idx);
|
|
30
|
+
return ret;
|
|
31
|
+
}
|
|
32
|
+
|
|
26
33
|
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
27
34
|
|
|
28
35
|
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
29
36
|
|
|
30
37
|
cachedTextDecoder.decode();
|
|
31
38
|
|
|
32
|
-
let cachedUint8Memory0 =
|
|
39
|
+
let cachedUint8Memory0 = new Uint8Array();
|
|
33
40
|
|
|
34
41
|
function getUint8Memory0() {
|
|
35
|
-
if (cachedUint8Memory0
|
|
42
|
+
if (cachedUint8Memory0.byteLength === 0) {
|
|
36
43
|
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
37
44
|
}
|
|
38
45
|
return cachedUint8Memory0;
|
|
@@ -42,18 +49,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
42
49
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
43
50
|
}
|
|
44
51
|
|
|
45
|
-
function dropObject(idx) {
|
|
46
|
-
if (idx < 132) return;
|
|
47
|
-
heap[idx] = heap_next;
|
|
48
|
-
heap_next = idx;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function takeObject(idx) {
|
|
52
|
-
const ret = getObject(idx);
|
|
53
|
-
dropObject(idx);
|
|
54
|
-
return ret;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
52
|
let WASM_VECTOR_LEN = 0;
|
|
58
53
|
|
|
59
54
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
@@ -115,19 +110,19 @@ function isLikeNone(x) {
|
|
|
115
110
|
return x === undefined || x === null;
|
|
116
111
|
}
|
|
117
112
|
|
|
118
|
-
let cachedInt32Memory0 =
|
|
113
|
+
let cachedInt32Memory0 = new Int32Array();
|
|
119
114
|
|
|
120
115
|
function getInt32Memory0() {
|
|
121
|
-
if (cachedInt32Memory0
|
|
116
|
+
if (cachedInt32Memory0.byteLength === 0) {
|
|
122
117
|
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
123
118
|
}
|
|
124
119
|
return cachedInt32Memory0;
|
|
125
120
|
}
|
|
126
121
|
|
|
127
|
-
let cachedUint16Memory0 =
|
|
122
|
+
let cachedUint16Memory0 = new Uint16Array();
|
|
128
123
|
|
|
129
124
|
function getUint16Memory0() {
|
|
130
|
-
if (cachedUint16Memory0
|
|
125
|
+
if (cachedUint16Memory0.byteLength === 0) {
|
|
131
126
|
cachedUint16Memory0 = new Uint16Array(wasm.memory.buffer);
|
|
132
127
|
}
|
|
133
128
|
return cachedUint16Memory0;
|
|
@@ -147,19 +142,19 @@ function _assertClass(instance, klass) {
|
|
|
147
142
|
return instance.ptr;
|
|
148
143
|
}
|
|
149
144
|
|
|
150
|
-
let cachedFloat64Memory0 =
|
|
145
|
+
let cachedFloat64Memory0 = new Float64Array();
|
|
151
146
|
|
|
152
147
|
function getFloat64Memory0() {
|
|
153
|
-
if (cachedFloat64Memory0
|
|
148
|
+
if (cachedFloat64Memory0.byteLength === 0) {
|
|
154
149
|
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
155
150
|
}
|
|
156
151
|
return cachedFloat64Memory0;
|
|
157
152
|
}
|
|
158
153
|
|
|
159
|
-
let cachedUint32Memory0 =
|
|
154
|
+
let cachedUint32Memory0 = new Uint32Array();
|
|
160
155
|
|
|
161
156
|
function getUint32Memory0() {
|
|
162
|
-
if (cachedUint32Memory0
|
|
157
|
+
if (cachedUint32Memory0.byteLength === 0) {
|
|
163
158
|
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
164
159
|
}
|
|
165
160
|
return cachedUint32Memory0;
|
|
@@ -493,7 +488,8 @@ export class Comp {
|
|
|
493
488
|
*/
|
|
494
489
|
set main(arg0) {
|
|
495
490
|
_assertClass(arg0, Fleet);
|
|
496
|
-
var ptr0 = arg0.
|
|
491
|
+
var ptr0 = arg0.ptr;
|
|
492
|
+
arg0.ptr = 0;
|
|
497
493
|
wasm.__wbg_set_comp_main(this.ptr, ptr0);
|
|
498
494
|
}
|
|
499
495
|
/**
|
|
@@ -510,7 +506,8 @@ export class Comp {
|
|
|
510
506
|
let ptr0 = 0;
|
|
511
507
|
if (!isLikeNone(arg0)) {
|
|
512
508
|
_assertClass(arg0, Fleet);
|
|
513
|
-
ptr0 = arg0.
|
|
509
|
+
ptr0 = arg0.ptr;
|
|
510
|
+
arg0.ptr = 0;
|
|
514
511
|
}
|
|
515
512
|
wasm.__wbg_set_comp_escort(this.ptr, ptr0);
|
|
516
513
|
}
|
|
@@ -528,7 +525,8 @@ export class Comp {
|
|
|
528
525
|
let ptr0 = 0;
|
|
529
526
|
if (!isLikeNone(arg0)) {
|
|
530
527
|
_assertClass(arg0, Fleet);
|
|
531
|
-
ptr0 = arg0.
|
|
528
|
+
ptr0 = arg0.ptr;
|
|
529
|
+
arg0.ptr = 0;
|
|
532
530
|
}
|
|
533
531
|
wasm.__wbg_set_comp_route_sup(this.ptr, ptr0);
|
|
534
532
|
}
|
|
@@ -546,7 +544,8 @@ export class Comp {
|
|
|
546
544
|
let ptr0 = 0;
|
|
547
545
|
if (!isLikeNone(arg0)) {
|
|
548
546
|
_assertClass(arg0, Fleet);
|
|
549
|
-
ptr0 = arg0.
|
|
547
|
+
ptr0 = arg0.ptr;
|
|
548
|
+
arg0.ptr = 0;
|
|
550
549
|
}
|
|
551
550
|
wasm.__wbg_set_comp_boss_sup(this.ptr, ptr0);
|
|
552
551
|
}
|
|
@@ -2874,8 +2873,8 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
2874
2873
|
return addHeapObject(ret);
|
|
2875
2874
|
};
|
|
2876
2875
|
|
|
2877
|
-
export function
|
|
2878
|
-
const ret =
|
|
2876
|
+
export function __wbg_createEquipmentBonuses_0e99d5cbef010625(arg0, arg1) {
|
|
2877
|
+
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2879
2878
|
return addHeapObject(ret);
|
|
2880
2879
|
};
|
|
2881
2880
|
|
|
@@ -2883,8 +2882,8 @@ export function __wbindgen_object_drop_ref(arg0) {
|
|
|
2883
2882
|
takeObject(arg0);
|
|
2884
2883
|
};
|
|
2885
2884
|
|
|
2886
|
-
export function
|
|
2887
|
-
const ret =
|
|
2885
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
2886
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2888
2887
|
return addHeapObject(ret);
|
|
2889
2888
|
};
|
|
2890
2889
|
|
|
@@ -2919,14 +2918,6 @@ export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
|
|
|
2919
2918
|
}
|
|
2920
2919
|
};
|
|
2921
2920
|
|
|
2922
|
-
export function __wbg_randomFillSync_6894564c2c334c42() { return handleError(function (arg0, arg1, arg2) {
|
|
2923
|
-
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
2924
|
-
}, arguments) };
|
|
2925
|
-
|
|
2926
|
-
export function __wbg_getRandomValues_805f1c3d65988a5a() { return handleError(function (arg0, arg1) {
|
|
2927
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
2928
|
-
}, arguments) };
|
|
2929
|
-
|
|
2930
2921
|
export function __wbg_crypto_e1d53a1d73fb10b8(arg0) {
|
|
2931
2922
|
const ret = getObject(arg0).crypto;
|
|
2932
2923
|
return addHeapObject(ret);
|
|
@@ -2973,17 +2964,25 @@ export function __wbindgen_is_function(arg0) {
|
|
|
2973
2964
|
return ret;
|
|
2974
2965
|
};
|
|
2975
2966
|
|
|
2976
|
-
export function
|
|
2967
|
+
export function __wbg_getRandomValues_805f1c3d65988a5a() { return handleError(function (arg0, arg1) {
|
|
2968
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
2969
|
+
}, arguments) };
|
|
2970
|
+
|
|
2971
|
+
export function __wbg_randomFillSync_6894564c2c334c42() { return handleError(function (arg0, arg1, arg2) {
|
|
2972
|
+
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
2973
|
+
}, arguments) };
|
|
2974
|
+
|
|
2975
|
+
export function __wbg_new_1d9a920c6bfc44a8() {
|
|
2977
2976
|
const ret = new Array();
|
|
2978
2977
|
return addHeapObject(ret);
|
|
2979
2978
|
};
|
|
2980
2979
|
|
|
2981
|
-
export function
|
|
2980
|
+
export function __wbg_newnoargs_b5b063fc6c2f0376(arg0, arg1) {
|
|
2982
2981
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
2983
2982
|
return addHeapObject(ret);
|
|
2984
2983
|
};
|
|
2985
2984
|
|
|
2986
|
-
export function
|
|
2985
|
+
export function __wbg_call_97ae9d8645dc388b() { return handleError(function (arg0, arg1) {
|
|
2987
2986
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
2988
2987
|
return addHeapObject(ret);
|
|
2989
2988
|
}, arguments) };
|
|
@@ -2997,71 +2996,71 @@ export function __wbindgen_string_get(arg0, arg1) {
|
|
|
2997
2996
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
2998
2997
|
};
|
|
2999
2998
|
|
|
3000
|
-
export function
|
|
2999
|
+
export function __wbg_self_6d479506f72c6a71() { return handleError(function () {
|
|
3001
3000
|
const ret = self.self;
|
|
3002
3001
|
return addHeapObject(ret);
|
|
3003
3002
|
}, arguments) };
|
|
3004
3003
|
|
|
3005
|
-
export function
|
|
3004
|
+
export function __wbg_window_f2557cc78490aceb() { return handleError(function () {
|
|
3006
3005
|
const ret = window.window;
|
|
3007
3006
|
return addHeapObject(ret);
|
|
3008
3007
|
}, arguments) };
|
|
3009
3008
|
|
|
3010
|
-
export function
|
|
3009
|
+
export function __wbg_globalThis_7f206bda628d5286() { return handleError(function () {
|
|
3011
3010
|
const ret = globalThis.globalThis;
|
|
3012
3011
|
return addHeapObject(ret);
|
|
3013
3012
|
}, arguments) };
|
|
3014
3013
|
|
|
3015
|
-
export function
|
|
3014
|
+
export function __wbg_global_ba75c50d1cf384f4() { return handleError(function () {
|
|
3016
3015
|
const ret = global.global;
|
|
3017
3016
|
return addHeapObject(ret);
|
|
3018
3017
|
}, arguments) };
|
|
3019
3018
|
|
|
3020
|
-
export function
|
|
3019
|
+
export function __wbg_push_740e4b286702d964(arg0, arg1) {
|
|
3021
3020
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
3022
3021
|
return ret;
|
|
3023
3022
|
};
|
|
3024
3023
|
|
|
3025
|
-
export function
|
|
3024
|
+
export function __wbg_call_168da88779e35f61() { return handleError(function (arg0, arg1, arg2) {
|
|
3026
3025
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
3027
3026
|
return addHeapObject(ret);
|
|
3028
3027
|
}, arguments) };
|
|
3029
3028
|
|
|
3030
|
-
export function
|
|
3029
|
+
export function __wbg_buffer_3f3d764d4747d564(arg0) {
|
|
3031
3030
|
const ret = getObject(arg0).buffer;
|
|
3032
3031
|
return addHeapObject(ret);
|
|
3033
3032
|
};
|
|
3034
3033
|
|
|
3035
|
-
export function
|
|
3034
|
+
export function __wbg_new_8c3f0052272a457a(arg0) {
|
|
3036
3035
|
const ret = new Uint8Array(getObject(arg0));
|
|
3037
3036
|
return addHeapObject(ret);
|
|
3038
3037
|
};
|
|
3039
3038
|
|
|
3040
|
-
export function
|
|
3039
|
+
export function __wbg_set_83db9690f9353e79(arg0, arg1, arg2) {
|
|
3041
3040
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3042
3041
|
};
|
|
3043
3042
|
|
|
3044
|
-
export function
|
|
3043
|
+
export function __wbg_length_9e1ae1900cb0fbd5(arg0) {
|
|
3045
3044
|
const ret = getObject(arg0).length;
|
|
3046
3045
|
return ret;
|
|
3047
3046
|
};
|
|
3048
3047
|
|
|
3049
|
-
export function
|
|
3048
|
+
export function __wbg_newwithlength_f5933855e4f48a19(arg0) {
|
|
3050
3049
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
3051
3050
|
return addHeapObject(ret);
|
|
3052
3051
|
};
|
|
3053
3052
|
|
|
3054
|
-
export function
|
|
3053
|
+
export function __wbg_subarray_58ad4efbb5bcb886(arg0, arg1, arg2) {
|
|
3055
3054
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3056
3055
|
return addHeapObject(ret);
|
|
3057
3056
|
};
|
|
3058
3057
|
|
|
3059
|
-
export function
|
|
3058
|
+
export function __wbg_parse_e23be3fecd886e2a() { return handleError(function (arg0, arg1) {
|
|
3060
3059
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
3061
3060
|
return addHeapObject(ret);
|
|
3062
3061
|
}, arguments) };
|
|
3063
3062
|
|
|
3064
|
-
export function
|
|
3063
|
+
export function __wbg_stringify_d6471d300ded9b68() { return handleError(function (arg0) {
|
|
3065
3064
|
const ret = JSON.stringify(getObject(arg0));
|
|
3066
3065
|
return addHeapObject(ret);
|
|
3067
3066
|
}, arguments) };
|
|
Binary file
|