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