fleethub-core 1.7.9 → 1.8.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 +1028 -902
- package/node/fleethub_core.js +336 -409
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +126 -168
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +1028 -902
- package/pkg/fleethub_core_bg.js +336 -409
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +126 -168
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { createEquipmentBonuses } from 'equipment-bonus';
|
|
2
2
|
import * as wasm from './fleethub_core_bg.wasm';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const heap = new Array(32).fill(undefined);
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
heap.push(undefined, null, true, false);
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
function getObject(idx) { return heap[idx]; }
|
|
9
|
+
|
|
10
|
+
let WASM_VECTOR_LEN = 0;
|
|
11
|
+
|
|
12
|
+
let cachedUint8Memory0 = new Uint8Array();
|
|
9
13
|
|
|
10
|
-
let cachedUint8Memory0;
|
|
11
14
|
function getUint8Memory0() {
|
|
12
15
|
if (cachedUint8Memory0.byteLength === 0) {
|
|
13
16
|
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
@@ -15,41 +18,6 @@ function getUint8Memory0() {
|
|
|
15
18
|
return cachedUint8Memory0;
|
|
16
19
|
}
|
|
17
20
|
|
|
18
|
-
function getStringFromWasm0(ptr, len) {
|
|
19
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const heap = new Array(32).fill(undefined);
|
|
23
|
-
|
|
24
|
-
heap.push(undefined, null, true, false);
|
|
25
|
-
|
|
26
|
-
let heap_next = heap.length;
|
|
27
|
-
|
|
28
|
-
function addHeapObject(obj) {
|
|
29
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
30
|
-
const idx = heap_next;
|
|
31
|
-
heap_next = heap[idx];
|
|
32
|
-
|
|
33
|
-
heap[idx] = obj;
|
|
34
|
-
return idx;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function getObject(idx) { return heap[idx]; }
|
|
38
|
-
|
|
39
|
-
function dropObject(idx) {
|
|
40
|
-
if (idx < 36) return;
|
|
41
|
-
heap[idx] = heap_next;
|
|
42
|
-
heap_next = idx;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function takeObject(idx) {
|
|
46
|
-
const ret = getObject(idx);
|
|
47
|
-
dropObject(idx);
|
|
48
|
-
return ret;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
let WASM_VECTOR_LEN = 0;
|
|
52
|
-
|
|
53
21
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
54
22
|
|
|
55
23
|
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
@@ -105,7 +73,8 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
105
73
|
return ptr;
|
|
106
74
|
}
|
|
107
75
|
|
|
108
|
-
let cachedInt32Memory0;
|
|
76
|
+
let cachedInt32Memory0 = new Int32Array();
|
|
77
|
+
|
|
109
78
|
function getInt32Memory0() {
|
|
110
79
|
if (cachedInt32Memory0.byteLength === 0) {
|
|
111
80
|
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
@@ -113,9 +82,46 @@ function getInt32Memory0() {
|
|
|
113
82
|
return cachedInt32Memory0;
|
|
114
83
|
}
|
|
115
84
|
|
|
116
|
-
|
|
85
|
+
let heap_next = heap.length;
|
|
117
86
|
|
|
118
|
-
|
|
87
|
+
function dropObject(idx) {
|
|
88
|
+
if (idx < 36) return;
|
|
89
|
+
heap[idx] = heap_next;
|
|
90
|
+
heap_next = idx;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function takeObject(idx) {
|
|
94
|
+
const ret = getObject(idx);
|
|
95
|
+
dropObject(idx);
|
|
96
|
+
return ret;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
100
|
+
|
|
101
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
102
|
+
|
|
103
|
+
cachedTextDecoder.decode();
|
|
104
|
+
|
|
105
|
+
function getStringFromWasm0(ptr, len) {
|
|
106
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function addHeapObject(obj) {
|
|
110
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
111
|
+
const idx = heap_next;
|
|
112
|
+
heap_next = heap[idx];
|
|
113
|
+
|
|
114
|
+
heap[idx] = obj;
|
|
115
|
+
return idx;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* @param {ShipConditions} value
|
|
119
|
+
* @returns {ShipConditions}
|
|
120
|
+
*/
|
|
121
|
+
export function parse_ship_conditions(value) {
|
|
122
|
+
const ret = wasm.parse_ship_conditions(addHeapObject(value));
|
|
123
|
+
return takeObject(ret);
|
|
124
|
+
}
|
|
119
125
|
|
|
120
126
|
function _assertClass(instance, klass) {
|
|
121
127
|
if (!(instance instanceof klass)) {
|
|
@@ -124,7 +130,12 @@ function _assertClass(instance, klass) {
|
|
|
124
130
|
return instance.ptr;
|
|
125
131
|
}
|
|
126
132
|
|
|
127
|
-
|
|
133
|
+
const u32CvtShim = new Uint32Array(2);
|
|
134
|
+
|
|
135
|
+
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
|
|
136
|
+
|
|
137
|
+
let cachedFloat64Memory0 = new Float64Array();
|
|
138
|
+
|
|
128
139
|
function getFloat64Memory0() {
|
|
129
140
|
if (cachedFloat64Memory0.byteLength === 0) {
|
|
130
141
|
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
@@ -132,11 +143,23 @@ function getFloat64Memory0() {
|
|
|
132
143
|
return cachedFloat64Memory0;
|
|
133
144
|
}
|
|
134
145
|
|
|
146
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
147
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
151
|
+
const ptr = malloc(arg.length * 1);
|
|
152
|
+
getUint8Memory0().set(arg, ptr / 1);
|
|
153
|
+
WASM_VECTOR_LEN = arg.length;
|
|
154
|
+
return ptr;
|
|
155
|
+
}
|
|
156
|
+
|
|
135
157
|
function isLikeNone(x) {
|
|
136
158
|
return x === undefined || x === null;
|
|
137
159
|
}
|
|
138
160
|
|
|
139
|
-
let cachedUint32Memory0;
|
|
161
|
+
let cachedUint32Memory0 = new Uint32Array();
|
|
162
|
+
|
|
140
163
|
function getUint32Memory0() {
|
|
141
164
|
if (cachedUint32Memory0.byteLength === 0) {
|
|
142
165
|
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
@@ -154,7 +177,8 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
154
177
|
return result;
|
|
155
178
|
}
|
|
156
179
|
|
|
157
|
-
let cachedUint16Memory0;
|
|
180
|
+
let cachedUint16Memory0 = new Uint16Array();
|
|
181
|
+
|
|
158
182
|
function getUint16Memory0() {
|
|
159
183
|
if (cachedUint16Memory0.byteLength === 0) {
|
|
160
184
|
cachedUint16Memory0 = new Uint16Array(wasm.memory.buffer);
|
|
@@ -165,26 +189,15 @@ function getUint16Memory0() {
|
|
|
165
189
|
function getArrayU16FromWasm0(ptr, len) {
|
|
166
190
|
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
167
191
|
}
|
|
168
|
-
|
|
169
|
-
function passArray16ToWasm0(arg, malloc) {
|
|
170
|
-
const ptr = malloc(arg.length * 2);
|
|
171
|
-
getUint16Memory0().set(arg, ptr / 2);
|
|
172
|
-
WASM_VECTOR_LEN = arg.length;
|
|
173
|
-
return ptr;
|
|
174
|
-
}
|
|
175
192
|
/**
|
|
176
193
|
*/
|
|
177
194
|
export function set_panic_hook() {
|
|
178
195
|
wasm.set_panic_hook();
|
|
179
196
|
}
|
|
180
197
|
|
|
181
|
-
function
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
186
|
-
const ptr = malloc(arg.length * 1);
|
|
187
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
198
|
+
function passArray16ToWasm0(arg, malloc) {
|
|
199
|
+
const ptr = malloc(arg.length * 2);
|
|
200
|
+
getUint16Memory0().set(arg, ptr / 2);
|
|
188
201
|
WASM_VECTOR_LEN = arg.length;
|
|
189
202
|
return ptr;
|
|
190
203
|
}
|
|
@@ -221,6 +234,7 @@ export class AirSquadron {
|
|
|
221
234
|
wasm.__wbg_airsquadron_free(ptr);
|
|
222
235
|
}
|
|
223
236
|
/**
|
|
237
|
+
* @returns {string}
|
|
224
238
|
*/
|
|
225
239
|
get id() {
|
|
226
240
|
try {
|
|
@@ -235,6 +249,7 @@ export class AirSquadron {
|
|
|
235
249
|
}
|
|
236
250
|
}
|
|
237
251
|
/**
|
|
252
|
+
* @param {string} arg0
|
|
238
253
|
*/
|
|
239
254
|
set id(arg0) {
|
|
240
255
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -242,11 +257,12 @@ export class AirSquadron {
|
|
|
242
257
|
wasm.__wbg_set_airsquadron_id(this.ptr, ptr0, len0);
|
|
243
258
|
}
|
|
244
259
|
/**
|
|
260
|
+
* @returns {bigint}
|
|
245
261
|
*/
|
|
246
|
-
get
|
|
262
|
+
get hash() {
|
|
247
263
|
try {
|
|
248
264
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
249
|
-
wasm.
|
|
265
|
+
wasm.__wbg_get_airsquadron_hash(retptr, this.ptr);
|
|
250
266
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
251
267
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
252
268
|
u32CvtShim[0] = r0;
|
|
@@ -258,20 +274,23 @@ export class AirSquadron {
|
|
|
258
274
|
}
|
|
259
275
|
}
|
|
260
276
|
/**
|
|
277
|
+
* @param {bigint} arg0
|
|
261
278
|
*/
|
|
262
|
-
set
|
|
279
|
+
set hash(arg0) {
|
|
263
280
|
uint64CvtShim[0] = arg0;
|
|
264
281
|
const low0 = u32CvtShim[0];
|
|
265
282
|
const high0 = u32CvtShim[1];
|
|
266
|
-
wasm.
|
|
283
|
+
wasm.__wbg_set_airsquadron_hash(this.ptr, low0, high0);
|
|
267
284
|
}
|
|
268
285
|
/**
|
|
286
|
+
* @returns {AirSquadronMode}
|
|
269
287
|
*/
|
|
270
288
|
get mode() {
|
|
271
289
|
const ret = wasm.__wbg_get_airsquadron_mode(this.ptr);
|
|
272
290
|
return takeObject(ret);
|
|
273
291
|
}
|
|
274
292
|
/**
|
|
293
|
+
* @param {AirSquadronMode} arg0
|
|
275
294
|
*/
|
|
276
295
|
set mode(arg0) {
|
|
277
296
|
wasm.__wbg_set_airsquadron_mode(this.ptr, addHeapObject(arg0));
|
|
@@ -372,68 +391,79 @@ export class Analyzer {
|
|
|
372
391
|
wasm.__wbg_analyzer_free(ptr);
|
|
373
392
|
}
|
|
374
393
|
/**
|
|
375
|
-
* @param {
|
|
376
|
-
* @param {
|
|
377
|
-
* @param {
|
|
378
|
-
* @
|
|
379
|
-
* @param {number | undefined} aaci
|
|
380
|
-
* @returns {CompAntiAirInfo}
|
|
394
|
+
* @param {AttackAnalyzerConfig} config
|
|
395
|
+
* @param {Ship} attacker
|
|
396
|
+
* @param {Ship} target
|
|
397
|
+
* @returns {AttackAnalysis}
|
|
381
398
|
*/
|
|
382
|
-
|
|
383
|
-
_assertClass(
|
|
384
|
-
|
|
399
|
+
analyze_attack(config, attacker, target) {
|
|
400
|
+
_assertClass(attacker, Ship);
|
|
401
|
+
_assertClass(target, Ship);
|
|
402
|
+
const ret = wasm.analyzer_analyze_attack(this.ptr, addHeapObject(config), attacker.ptr, target.ptr);
|
|
385
403
|
return takeObject(ret);
|
|
386
404
|
}
|
|
387
405
|
/**
|
|
388
|
-
* @param {
|
|
389
|
-
* @
|
|
406
|
+
* @param {ShipAnalyzerConfig} config
|
|
407
|
+
* @param {Ship} left
|
|
408
|
+
* @param {Ship} right
|
|
409
|
+
* @param {boolean} attacker_is_left
|
|
410
|
+
* @returns {AttackAnalysis}
|
|
390
411
|
*/
|
|
391
|
-
|
|
392
|
-
_assertClass(
|
|
393
|
-
|
|
412
|
+
analyze_attack_by_ship_analyzer(config, left, right, attacker_is_left) {
|
|
413
|
+
_assertClass(left, Ship);
|
|
414
|
+
_assertClass(right, Ship);
|
|
415
|
+
const ret = wasm.analyzer_analyze_attack_by_ship_analyzer(this.ptr, addHeapObject(config), left.ptr, right.ptr, attacker_is_left);
|
|
394
416
|
return takeObject(ret);
|
|
395
417
|
}
|
|
396
418
|
/**
|
|
397
|
-
* @param {
|
|
398
|
-
* @param {
|
|
399
|
-
* @param {
|
|
400
|
-
* @
|
|
419
|
+
* @param {NodeAttackAnalyzerConfig} config
|
|
420
|
+
* @param {Comp} left_comp
|
|
421
|
+
* @param {Ship} left_ship
|
|
422
|
+
* @param {Comp} right_comp
|
|
423
|
+
* @param {Ship} right_ship
|
|
424
|
+
* @returns {NodeAttackAnalysis}
|
|
401
425
|
*/
|
|
402
|
-
|
|
403
|
-
_assertClass(
|
|
404
|
-
|
|
426
|
+
analyze_node_attack(config, left_comp, left_ship, right_comp, right_ship) {
|
|
427
|
+
_assertClass(left_comp, Comp);
|
|
428
|
+
_assertClass(left_ship, Ship);
|
|
429
|
+
_assertClass(right_comp, Comp);
|
|
430
|
+
_assertClass(right_ship, Ship);
|
|
431
|
+
const ret = wasm.analyzer_analyze_node_attack(this.ptr, addHeapObject(config), left_comp.ptr, left_ship.ptr, right_comp.ptr, right_ship.ptr);
|
|
405
432
|
return takeObject(ret);
|
|
406
433
|
}
|
|
407
434
|
/**
|
|
408
435
|
* @param {Comp} comp
|
|
409
|
-
* @
|
|
436
|
+
* @param {CompAnalyzerConfig} config
|
|
437
|
+
* @returns {CompAnalysis}
|
|
410
438
|
*/
|
|
411
|
-
|
|
439
|
+
analyze_comp(comp, config) {
|
|
412
440
|
_assertClass(comp, Comp);
|
|
413
|
-
const ret = wasm.
|
|
414
|
-
return takeObject(ret);
|
|
415
|
-
}
|
|
416
|
-
/**
|
|
417
|
-
* @param {WarfareAnalyzerContext} params
|
|
418
|
-
* @param {Ship} attacker
|
|
419
|
-
* @param {Ship} target
|
|
420
|
-
* @returns {WarfareInfo}
|
|
421
|
-
*/
|
|
422
|
-
analyze_warfare(params, attacker, target) {
|
|
423
|
-
_assertClass(attacker, Ship);
|
|
424
|
-
_assertClass(target, Ship);
|
|
425
|
-
const ret = wasm.analyzer_analyze_warfare(this.ptr, addHeapObject(params), attacker.ptr, target.ptr);
|
|
441
|
+
const ret = wasm.analyzer_analyze_comp(this.ptr, comp.ptr, addHeapObject(config));
|
|
426
442
|
return takeObject(ret);
|
|
427
443
|
}
|
|
428
444
|
/**
|
|
429
|
-
* @param {Comp}
|
|
430
|
-
* @param {
|
|
431
|
-
* @
|
|
445
|
+
* @param {Comp} player_comp
|
|
446
|
+
* @param {Comp} enemy_comp
|
|
447
|
+
* @param {NodeAttackAnalyzerConfig} config
|
|
448
|
+
* @param {number} times
|
|
449
|
+
* @returns {SimulatorResult}
|
|
432
450
|
*/
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
451
|
+
simulate_support_shelling(player_comp, enemy_comp, config, times) {
|
|
452
|
+
try {
|
|
453
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
454
|
+
_assertClass(player_comp, Comp);
|
|
455
|
+
_assertClass(enemy_comp, Comp);
|
|
456
|
+
wasm.analyzer_simulate_support_shelling(retptr, this.ptr, player_comp.ptr, enemy_comp.ptr, addHeapObject(config), times);
|
|
457
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
458
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
459
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
460
|
+
if (r2) {
|
|
461
|
+
throw takeObject(r1);
|
|
462
|
+
}
|
|
463
|
+
return takeObject(r0);
|
|
464
|
+
} finally {
|
|
465
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
466
|
+
}
|
|
437
467
|
}
|
|
438
468
|
}
|
|
439
469
|
|
|
@@ -461,34 +491,28 @@ export class Comp {
|
|
|
461
491
|
wasm.__wbg_comp_free(ptr);
|
|
462
492
|
}
|
|
463
493
|
/**
|
|
494
|
+
* @returns {OrgType}
|
|
464
495
|
*/
|
|
465
496
|
get org_type() {
|
|
466
497
|
const ret = wasm.__wbg_get_comp_org_type(this.ptr);
|
|
467
498
|
return takeObject(ret);
|
|
468
499
|
}
|
|
469
500
|
/**
|
|
470
|
-
|
|
471
|
-
set org_type(arg0) {
|
|
472
|
-
wasm.__wbg_set_comp_org_type(this.ptr, addHeapObject(arg0));
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
501
|
+
* @returns {number}
|
|
475
502
|
*/
|
|
476
503
|
get hq_level() {
|
|
477
504
|
const ret = wasm.__wbg_get_comp_hq_level(this.ptr);
|
|
478
505
|
return ret;
|
|
479
506
|
}
|
|
480
507
|
/**
|
|
481
|
-
|
|
482
|
-
set hq_level(arg0) {
|
|
483
|
-
wasm.__wbg_set_comp_hq_level(this.ptr, arg0);
|
|
484
|
-
}
|
|
485
|
-
/**
|
|
508
|
+
* @returns {Fleet}
|
|
486
509
|
*/
|
|
487
510
|
get main() {
|
|
488
511
|
const ret = wasm.__wbg_get_comp_main(this.ptr);
|
|
489
512
|
return Fleet.__wrap(ret);
|
|
490
513
|
}
|
|
491
514
|
/**
|
|
515
|
+
* @param {Fleet} arg0
|
|
492
516
|
*/
|
|
493
517
|
set main(arg0) {
|
|
494
518
|
_assertClass(arg0, Fleet);
|
|
@@ -497,12 +521,14 @@ export class Comp {
|
|
|
497
521
|
wasm.__wbg_set_comp_main(this.ptr, ptr0);
|
|
498
522
|
}
|
|
499
523
|
/**
|
|
524
|
+
* @returns {Fleet | undefined}
|
|
500
525
|
*/
|
|
501
526
|
get escort() {
|
|
502
527
|
const ret = wasm.__wbg_get_comp_escort(this.ptr);
|
|
503
528
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
504
529
|
}
|
|
505
530
|
/**
|
|
531
|
+
* @param {Fleet | undefined} arg0
|
|
506
532
|
*/
|
|
507
533
|
set escort(arg0) {
|
|
508
534
|
let ptr0 = 0;
|
|
@@ -514,12 +540,14 @@ export class Comp {
|
|
|
514
540
|
wasm.__wbg_set_comp_escort(this.ptr, ptr0);
|
|
515
541
|
}
|
|
516
542
|
/**
|
|
543
|
+
* @returns {Fleet | undefined}
|
|
517
544
|
*/
|
|
518
545
|
get route_sup() {
|
|
519
546
|
const ret = wasm.__wbg_get_comp_route_sup(this.ptr);
|
|
520
547
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
521
548
|
}
|
|
522
549
|
/**
|
|
550
|
+
* @param {Fleet | undefined} arg0
|
|
523
551
|
*/
|
|
524
552
|
set route_sup(arg0) {
|
|
525
553
|
let ptr0 = 0;
|
|
@@ -531,12 +559,14 @@ export class Comp {
|
|
|
531
559
|
wasm.__wbg_set_comp_route_sup(this.ptr, ptr0);
|
|
532
560
|
}
|
|
533
561
|
/**
|
|
562
|
+
* @returns {Fleet | undefined}
|
|
534
563
|
*/
|
|
535
564
|
get boss_sup() {
|
|
536
565
|
const ret = wasm.__wbg_get_comp_boss_sup(this.ptr);
|
|
537
566
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
538
567
|
}
|
|
539
568
|
/**
|
|
569
|
+
* @param {Fleet | undefined} arg0
|
|
540
570
|
*/
|
|
541
571
|
set boss_sup(arg0) {
|
|
542
572
|
let ptr0 = 0;
|
|
@@ -712,12 +742,12 @@ export class Comp {
|
|
|
712
742
|
}
|
|
713
743
|
/**
|
|
714
744
|
* @param {Ship} ship
|
|
715
|
-
* @param {Formation} formation
|
|
716
|
-
* @returns {
|
|
745
|
+
* @param {Formation | undefined} formation
|
|
746
|
+
* @returns {ShipConditions}
|
|
717
747
|
*/
|
|
718
|
-
|
|
748
|
+
get_ship_conditions(ship, formation) {
|
|
719
749
|
_assertClass(ship, Ship);
|
|
720
|
-
const ret = wasm.
|
|
750
|
+
const ret = wasm.comp_get_ship_conditions(this.ptr, ship.ptr, isLikeNone(formation) ? 0 : addHeapObject(formation));
|
|
721
751
|
return takeObject(ret);
|
|
722
752
|
}
|
|
723
753
|
}
|
|
@@ -845,30 +875,6 @@ export class FhCore {
|
|
|
845
875
|
const ret = wasm.fhcore_create_analyzer(this.ptr);
|
|
846
876
|
return Analyzer.__wrap(ret);
|
|
847
877
|
}
|
|
848
|
-
/**
|
|
849
|
-
* @param {Comp} player
|
|
850
|
-
* @param {Comp} enemy
|
|
851
|
-
* @param {ShellingSupportSimulatorParams} params
|
|
852
|
-
* @param {number} times
|
|
853
|
-
* @returns {SimulatorResult}
|
|
854
|
-
*/
|
|
855
|
-
simulate_shelling_support(player, enemy, params, times) {
|
|
856
|
-
try {
|
|
857
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
858
|
-
_assertClass(player, Comp);
|
|
859
|
-
_assertClass(enemy, Comp);
|
|
860
|
-
wasm.fhcore_simulate_shelling_support(retptr, this.ptr, player.ptr, enemy.ptr, addHeapObject(params), times);
|
|
861
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
862
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
863
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
864
|
-
if (r2) {
|
|
865
|
-
throw takeObject(r1);
|
|
866
|
-
}
|
|
867
|
-
return takeObject(r0);
|
|
868
|
-
} finally {
|
|
869
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
878
|
}
|
|
873
879
|
|
|
874
880
|
const FleetFinalization = new FinalizationRegistry(ptr => wasm.__wbg_fleet_free(ptr));
|
|
@@ -895,6 +901,7 @@ export class Fleet {
|
|
|
895
901
|
wasm.__wbg_fleet_free(ptr);
|
|
896
902
|
}
|
|
897
903
|
/**
|
|
904
|
+
* @returns {string}
|
|
898
905
|
*/
|
|
899
906
|
get id() {
|
|
900
907
|
try {
|
|
@@ -909,6 +916,7 @@ export class Fleet {
|
|
|
909
916
|
}
|
|
910
917
|
}
|
|
911
918
|
/**
|
|
919
|
+
* @param {string} arg0
|
|
912
920
|
*/
|
|
913
921
|
set id(arg0) {
|
|
914
922
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -916,11 +924,12 @@ export class Fleet {
|
|
|
916
924
|
wasm.__wbg_set_fleet_id(this.ptr, ptr0, len0);
|
|
917
925
|
}
|
|
918
926
|
/**
|
|
927
|
+
* @returns {bigint}
|
|
919
928
|
*/
|
|
920
|
-
get
|
|
929
|
+
get hash() {
|
|
921
930
|
try {
|
|
922
931
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
923
|
-
wasm.
|
|
932
|
+
wasm.__wbg_get_fleet_hash(retptr, this.ptr);
|
|
924
933
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
925
934
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
926
935
|
u32CvtShim[0] = r0;
|
|
@@ -932,25 +941,13 @@ export class Fleet {
|
|
|
932
941
|
}
|
|
933
942
|
}
|
|
934
943
|
/**
|
|
935
|
-
|
|
936
|
-
set xxh3(arg0) {
|
|
937
|
-
uint64CvtShim[0] = arg0;
|
|
938
|
-
const low0 = u32CvtShim[0];
|
|
939
|
-
const high0 = u32CvtShim[1];
|
|
940
|
-
wasm.__wbg_set_fleet_xxh3(this.ptr, low0, high0);
|
|
941
|
-
}
|
|
942
|
-
/**
|
|
944
|
+
* @returns {number}
|
|
943
945
|
*/
|
|
944
946
|
get len() {
|
|
945
947
|
const ret = wasm.__wbg_get_fleet_len(this.ptr);
|
|
946
948
|
return ret >>> 0;
|
|
947
949
|
}
|
|
948
950
|
/**
|
|
949
|
-
*/
|
|
950
|
-
set len(arg0) {
|
|
951
|
-
wasm.__wbg_set_fleet_len(this.ptr, arg0);
|
|
952
|
-
}
|
|
953
|
-
/**
|
|
954
951
|
* @returns {FleetMeta}
|
|
955
952
|
*/
|
|
956
953
|
meta() {
|
|
@@ -1074,6 +1071,7 @@ export class Fleet {
|
|
|
1074
1071
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
1075
1072
|
}
|
|
1076
1073
|
/**
|
|
1074
|
+
* @returns {number | undefined}
|
|
1077
1075
|
*/
|
|
1078
1076
|
get fleet_los_mod() {
|
|
1079
1077
|
try {
|
|
@@ -1189,6 +1187,7 @@ export class Gear {
|
|
|
1189
1187
|
wasm.__wbg_gear_free(ptr);
|
|
1190
1188
|
}
|
|
1191
1189
|
/**
|
|
1190
|
+
* @returns {string}
|
|
1192
1191
|
*/
|
|
1193
1192
|
get id() {
|
|
1194
1193
|
try {
|
|
@@ -1203,6 +1202,7 @@ export class Gear {
|
|
|
1203
1202
|
}
|
|
1204
1203
|
}
|
|
1205
1204
|
/**
|
|
1205
|
+
* @param {string} arg0
|
|
1206
1206
|
*/
|
|
1207
1207
|
set id(arg0) {
|
|
1208
1208
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1210,11 +1210,12 @@ export class Gear {
|
|
|
1210
1210
|
wasm.__wbg_set_gear_id(this.ptr, ptr0, len0);
|
|
1211
1211
|
}
|
|
1212
1212
|
/**
|
|
1213
|
+
* @returns {bigint}
|
|
1213
1214
|
*/
|
|
1214
|
-
get
|
|
1215
|
+
get hash() {
|
|
1215
1216
|
try {
|
|
1216
1217
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1217
|
-
wasm.
|
|
1218
|
+
wasm.__wbg_get_gear_hash(retptr, this.ptr);
|
|
1218
1219
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1219
1220
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1220
1221
|
u32CvtShim[0] = r0;
|
|
@@ -1226,58 +1227,35 @@ export class Gear {
|
|
|
1226
1227
|
}
|
|
1227
1228
|
}
|
|
1228
1229
|
/**
|
|
1229
|
-
|
|
1230
|
-
set xxh3(arg0) {
|
|
1231
|
-
uint64CvtShim[0] = arg0;
|
|
1232
|
-
const low0 = u32CvtShim[0];
|
|
1233
|
-
const high0 = u32CvtShim[1];
|
|
1234
|
-
wasm.__wbg_set_gear_xxh3(this.ptr, low0, high0);
|
|
1235
|
-
}
|
|
1236
|
-
/**
|
|
1230
|
+
* @returns {number}
|
|
1237
1231
|
*/
|
|
1238
1232
|
get gear_id() {
|
|
1239
1233
|
const ret = wasm.__wbg_get_gear_gear_id(this.ptr);
|
|
1240
1234
|
return ret;
|
|
1241
1235
|
}
|
|
1242
1236
|
/**
|
|
1243
|
-
|
|
1244
|
-
set gear_id(arg0) {
|
|
1245
|
-
wasm.__wbg_set_gear_gear_id(this.ptr, arg0);
|
|
1246
|
-
}
|
|
1247
|
-
/**
|
|
1237
|
+
* @returns {number}
|
|
1248
1238
|
*/
|
|
1249
1239
|
get stars() {
|
|
1250
1240
|
const ret = wasm.__wbg_get_gear_stars(this.ptr);
|
|
1251
1241
|
return ret;
|
|
1252
1242
|
}
|
|
1253
1243
|
/**
|
|
1254
|
-
|
|
1255
|
-
set stars(arg0) {
|
|
1256
|
-
wasm.__wbg_set_gear_stars(this.ptr, arg0);
|
|
1257
|
-
}
|
|
1258
|
-
/**
|
|
1244
|
+
* @returns {number}
|
|
1259
1245
|
*/
|
|
1260
1246
|
get exp() {
|
|
1261
1247
|
const ret = wasm.__wbg_get_gear_exp(this.ptr);
|
|
1262
1248
|
return ret;
|
|
1263
1249
|
}
|
|
1264
1250
|
/**
|
|
1265
|
-
|
|
1266
|
-
set exp(arg0) {
|
|
1267
|
-
wasm.__wbg_set_gear_exp(this.ptr, arg0);
|
|
1268
|
-
}
|
|
1269
|
-
/**
|
|
1251
|
+
* @returns {number}
|
|
1270
1252
|
*/
|
|
1271
1253
|
get default_exp() {
|
|
1272
1254
|
const ret = wasm.__wbg_get_gear_default_exp(this.ptr);
|
|
1273
1255
|
return ret;
|
|
1274
1256
|
}
|
|
1275
1257
|
/**
|
|
1276
|
-
|
|
1277
|
-
set default_exp(arg0) {
|
|
1278
|
-
wasm.__wbg_set_gear_default_exp(this.ptr, arg0);
|
|
1279
|
-
}
|
|
1280
|
-
/**
|
|
1258
|
+
* @returns {string}
|
|
1281
1259
|
*/
|
|
1282
1260
|
get name() {
|
|
1283
1261
|
try {
|
|
@@ -1292,6 +1270,7 @@ export class Gear {
|
|
|
1292
1270
|
}
|
|
1293
1271
|
}
|
|
1294
1272
|
/**
|
|
1273
|
+
* @param {string} arg0
|
|
1295
1274
|
*/
|
|
1296
1275
|
set name(arg0) {
|
|
1297
1276
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1299,6 +1278,7 @@ export class Gear {
|
|
|
1299
1278
|
wasm.__wbg_set_gear_name(this.ptr, ptr0, len0);
|
|
1300
1279
|
}
|
|
1301
1280
|
/**
|
|
1281
|
+
* @returns {Uint8Array}
|
|
1302
1282
|
*/
|
|
1303
1283
|
get types() {
|
|
1304
1284
|
try {
|
|
@@ -1314,6 +1294,7 @@ export class Gear {
|
|
|
1314
1294
|
}
|
|
1315
1295
|
}
|
|
1316
1296
|
/**
|
|
1297
|
+
* @param {Uint8Array} arg0
|
|
1317
1298
|
*/
|
|
1318
1299
|
set types(arg0) {
|
|
1319
1300
|
const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
@@ -1321,215 +1302,139 @@ export class Gear {
|
|
|
1321
1302
|
wasm.__wbg_set_gear_types(this.ptr, ptr0, len0);
|
|
1322
1303
|
}
|
|
1323
1304
|
/**
|
|
1305
|
+
* @returns {GearType}
|
|
1324
1306
|
*/
|
|
1325
1307
|
get gear_type() {
|
|
1326
1308
|
const ret = wasm.__wbg_get_gear_gear_type(this.ptr);
|
|
1327
1309
|
return takeObject(ret);
|
|
1328
1310
|
}
|
|
1329
1311
|
/**
|
|
1330
|
-
|
|
1331
|
-
set gear_type(arg0) {
|
|
1332
|
-
wasm.__wbg_set_gear_gear_type(this.ptr, addHeapObject(arg0));
|
|
1333
|
-
}
|
|
1334
|
-
/**
|
|
1312
|
+
* @returns {number}
|
|
1335
1313
|
*/
|
|
1336
1314
|
get max_hp() {
|
|
1337
1315
|
const ret = wasm.__wbg_get_gear_max_hp(this.ptr);
|
|
1338
1316
|
return ret;
|
|
1339
1317
|
}
|
|
1340
1318
|
/**
|
|
1341
|
-
|
|
1342
|
-
set max_hp(arg0) {
|
|
1343
|
-
wasm.__wbg_set_gear_max_hp(this.ptr, arg0);
|
|
1344
|
-
}
|
|
1345
|
-
/**
|
|
1319
|
+
* @returns {number}
|
|
1346
1320
|
*/
|
|
1347
1321
|
get firepower() {
|
|
1348
1322
|
const ret = wasm.__wbg_get_gear_firepower(this.ptr);
|
|
1349
1323
|
return ret;
|
|
1350
1324
|
}
|
|
1351
1325
|
/**
|
|
1352
|
-
|
|
1353
|
-
set firepower(arg0) {
|
|
1354
|
-
wasm.__wbg_set_gear_firepower(this.ptr, arg0);
|
|
1355
|
-
}
|
|
1356
|
-
/**
|
|
1326
|
+
* @returns {number}
|
|
1357
1327
|
*/
|
|
1358
1328
|
get armor() {
|
|
1359
1329
|
const ret = wasm.__wbg_get_gear_armor(this.ptr);
|
|
1360
1330
|
return ret;
|
|
1361
1331
|
}
|
|
1362
1332
|
/**
|
|
1363
|
-
|
|
1364
|
-
set armor(arg0) {
|
|
1365
|
-
wasm.__wbg_set_gear_armor(this.ptr, arg0);
|
|
1366
|
-
}
|
|
1367
|
-
/**
|
|
1333
|
+
* @returns {number}
|
|
1368
1334
|
*/
|
|
1369
1335
|
get torpedo() {
|
|
1370
1336
|
const ret = wasm.__wbg_get_gear_torpedo(this.ptr);
|
|
1371
1337
|
return ret;
|
|
1372
1338
|
}
|
|
1373
1339
|
/**
|
|
1374
|
-
|
|
1375
|
-
set torpedo(arg0) {
|
|
1376
|
-
wasm.__wbg_set_gear_torpedo(this.ptr, arg0);
|
|
1377
|
-
}
|
|
1378
|
-
/**
|
|
1340
|
+
* @returns {number}
|
|
1379
1341
|
*/
|
|
1380
1342
|
get anti_air() {
|
|
1381
1343
|
const ret = wasm.__wbg_get_gear_anti_air(this.ptr);
|
|
1382
1344
|
return ret;
|
|
1383
1345
|
}
|
|
1384
1346
|
/**
|
|
1385
|
-
|
|
1386
|
-
set anti_air(arg0) {
|
|
1387
|
-
wasm.__wbg_set_gear_anti_air(this.ptr, arg0);
|
|
1388
|
-
}
|
|
1389
|
-
/**
|
|
1347
|
+
* @returns {number}
|
|
1390
1348
|
*/
|
|
1391
1349
|
get speed() {
|
|
1392
1350
|
const ret = wasm.__wbg_get_gear_speed(this.ptr);
|
|
1393
1351
|
return ret;
|
|
1394
1352
|
}
|
|
1395
1353
|
/**
|
|
1396
|
-
|
|
1397
|
-
set speed(arg0) {
|
|
1398
|
-
wasm.__wbg_set_gear_speed(this.ptr, arg0);
|
|
1399
|
-
}
|
|
1400
|
-
/**
|
|
1354
|
+
* @returns {number}
|
|
1401
1355
|
*/
|
|
1402
1356
|
get bombing() {
|
|
1403
1357
|
const ret = wasm.__wbg_get_gear_bombing(this.ptr);
|
|
1404
1358
|
return ret;
|
|
1405
1359
|
}
|
|
1406
1360
|
/**
|
|
1407
|
-
|
|
1408
|
-
set bombing(arg0) {
|
|
1409
|
-
wasm.__wbg_set_gear_bombing(this.ptr, arg0);
|
|
1410
|
-
}
|
|
1411
|
-
/**
|
|
1361
|
+
* @returns {number}
|
|
1412
1362
|
*/
|
|
1413
1363
|
get asw() {
|
|
1414
1364
|
const ret = wasm.__wbg_get_gear_asw(this.ptr);
|
|
1415
1365
|
return ret;
|
|
1416
1366
|
}
|
|
1417
1367
|
/**
|
|
1418
|
-
|
|
1419
|
-
set asw(arg0) {
|
|
1420
|
-
wasm.__wbg_set_gear_asw(this.ptr, arg0);
|
|
1421
|
-
}
|
|
1422
|
-
/**
|
|
1368
|
+
* @returns {number}
|
|
1423
1369
|
*/
|
|
1424
1370
|
get los() {
|
|
1425
1371
|
const ret = wasm.__wbg_get_gear_los(this.ptr);
|
|
1426
1372
|
return ret;
|
|
1427
1373
|
}
|
|
1428
1374
|
/**
|
|
1429
|
-
|
|
1430
|
-
set los(arg0) {
|
|
1431
|
-
wasm.__wbg_set_gear_los(this.ptr, arg0);
|
|
1432
|
-
}
|
|
1433
|
-
/**
|
|
1375
|
+
* @returns {number}
|
|
1434
1376
|
*/
|
|
1435
1377
|
get luck() {
|
|
1436
1378
|
const ret = wasm.__wbg_get_gear_luck(this.ptr);
|
|
1437
1379
|
return ret;
|
|
1438
1380
|
}
|
|
1439
1381
|
/**
|
|
1440
|
-
|
|
1441
|
-
set luck(arg0) {
|
|
1442
|
-
wasm.__wbg_set_gear_luck(this.ptr, arg0);
|
|
1443
|
-
}
|
|
1444
|
-
/**
|
|
1382
|
+
* @returns {number}
|
|
1445
1383
|
*/
|
|
1446
1384
|
get accuracy() {
|
|
1447
1385
|
const ret = wasm.__wbg_get_gear_accuracy(this.ptr);
|
|
1448
1386
|
return ret;
|
|
1449
1387
|
}
|
|
1450
1388
|
/**
|
|
1451
|
-
|
|
1452
|
-
set accuracy(arg0) {
|
|
1453
|
-
wasm.__wbg_set_gear_accuracy(this.ptr, arg0);
|
|
1454
|
-
}
|
|
1455
|
-
/**
|
|
1389
|
+
* @returns {number}
|
|
1456
1390
|
*/
|
|
1457
1391
|
get evasion() {
|
|
1458
1392
|
const ret = wasm.__wbg_get_gear_evasion(this.ptr);
|
|
1459
1393
|
return ret;
|
|
1460
1394
|
}
|
|
1461
1395
|
/**
|
|
1462
|
-
|
|
1463
|
-
set evasion(arg0) {
|
|
1464
|
-
wasm.__wbg_set_gear_evasion(this.ptr, arg0);
|
|
1465
|
-
}
|
|
1466
|
-
/**
|
|
1396
|
+
* @returns {number}
|
|
1467
1397
|
*/
|
|
1468
1398
|
get range() {
|
|
1469
1399
|
const ret = wasm.__wbg_get_gear_range(this.ptr);
|
|
1470
1400
|
return ret;
|
|
1471
1401
|
}
|
|
1472
1402
|
/**
|
|
1473
|
-
|
|
1474
|
-
set range(arg0) {
|
|
1475
|
-
wasm.__wbg_set_gear_range(this.ptr, arg0);
|
|
1476
|
-
}
|
|
1477
|
-
/**
|
|
1403
|
+
* @returns {number}
|
|
1478
1404
|
*/
|
|
1479
1405
|
get radius() {
|
|
1480
1406
|
const ret = wasm.__wbg_get_gear_radius(this.ptr);
|
|
1481
1407
|
return ret;
|
|
1482
1408
|
}
|
|
1483
1409
|
/**
|
|
1484
|
-
|
|
1485
|
-
set radius(arg0) {
|
|
1486
|
-
wasm.__wbg_set_gear_radius(this.ptr, arg0);
|
|
1487
|
-
}
|
|
1488
|
-
/**
|
|
1410
|
+
* @returns {number}
|
|
1489
1411
|
*/
|
|
1490
1412
|
get cost() {
|
|
1491
1413
|
const ret = wasm.__wbg_get_gear_cost(this.ptr);
|
|
1492
1414
|
return ret;
|
|
1493
1415
|
}
|
|
1494
1416
|
/**
|
|
1495
|
-
|
|
1496
|
-
set cost(arg0) {
|
|
1497
|
-
wasm.__wbg_set_gear_cost(this.ptr, arg0);
|
|
1498
|
-
}
|
|
1499
|
-
/**
|
|
1417
|
+
* @returns {boolean}
|
|
1500
1418
|
*/
|
|
1501
1419
|
get improvable() {
|
|
1502
1420
|
const ret = wasm.__wbg_get_gear_improvable(this.ptr);
|
|
1503
1421
|
return ret !== 0;
|
|
1504
1422
|
}
|
|
1505
1423
|
/**
|
|
1424
|
+
* @returns {number}
|
|
1506
1425
|
*/
|
|
1507
|
-
|
|
1508
|
-
wasm.
|
|
1509
|
-
}
|
|
1510
|
-
/**
|
|
1511
|
-
*/
|
|
1512
|
-
get ship_anti_air_resistance() {
|
|
1513
|
-
const ret = wasm.__wbg_get_gear_ship_anti_air_resistance(this.ptr);
|
|
1426
|
+
get ship_anti_air_resist() {
|
|
1427
|
+
const ret = wasm.__wbg_get_gear_ship_anti_air_resist(this.ptr);
|
|
1514
1428
|
return ret;
|
|
1515
1429
|
}
|
|
1516
1430
|
/**
|
|
1431
|
+
* @returns {number}
|
|
1517
1432
|
*/
|
|
1518
|
-
|
|
1519
|
-
wasm.
|
|
1520
|
-
}
|
|
1521
|
-
/**
|
|
1522
|
-
*/
|
|
1523
|
-
get fleet_anti_air_resistance() {
|
|
1524
|
-
const ret = wasm.__wbg_get_gear_fleet_anti_air_resistance(this.ptr);
|
|
1433
|
+
get fleet_anti_air_resist() {
|
|
1434
|
+
const ret = wasm.__wbg_get_gear_fleet_anti_air_resist(this.ptr);
|
|
1525
1435
|
return ret;
|
|
1526
1436
|
}
|
|
1527
1437
|
/**
|
|
1528
|
-
*/
|
|
1529
|
-
set fleet_anti_air_resistance(arg0) {
|
|
1530
|
-
wasm.__wbg_set_gear_fleet_anti_air_resistance(this.ptr, arg0);
|
|
1531
|
-
}
|
|
1532
|
-
/**
|
|
1533
1438
|
* @returns {Gear}
|
|
1534
1439
|
*/
|
|
1535
1440
|
static default() {
|
|
@@ -1537,18 +1442,21 @@ export class Gear {
|
|
|
1537
1442
|
return Gear.__wrap(ret);
|
|
1538
1443
|
}
|
|
1539
1444
|
/**
|
|
1445
|
+
* @returns {number}
|
|
1540
1446
|
*/
|
|
1541
1447
|
get gear_type_id() {
|
|
1542
1448
|
const ret = wasm.gear_gear_type_id(this.ptr);
|
|
1543
1449
|
return ret;
|
|
1544
1450
|
}
|
|
1545
1451
|
/**
|
|
1452
|
+
* @returns {number}
|
|
1546
1453
|
*/
|
|
1547
1454
|
get special_type_id() {
|
|
1548
1455
|
const ret = wasm.gear_special_type_id(this.ptr);
|
|
1549
1456
|
return ret;
|
|
1550
1457
|
}
|
|
1551
1458
|
/**
|
|
1459
|
+
* @returns {number}
|
|
1552
1460
|
*/
|
|
1553
1461
|
get icon_id() {
|
|
1554
1462
|
const ret = wasm.gear_icon_id(this.ptr);
|
|
@@ -1570,18 +1478,21 @@ export class Gear {
|
|
|
1570
1478
|
return takeObject(ret);
|
|
1571
1479
|
}
|
|
1572
1480
|
/**
|
|
1481
|
+
* @returns {number}
|
|
1573
1482
|
*/
|
|
1574
1483
|
get ace() {
|
|
1575
1484
|
const ret = wasm.gear_ace(this.ptr);
|
|
1576
1485
|
return ret;
|
|
1577
1486
|
}
|
|
1578
1487
|
/**
|
|
1488
|
+
* @returns {number}
|
|
1579
1489
|
*/
|
|
1580
1490
|
get anti_bomber() {
|
|
1581
1491
|
const ret = wasm.gear_anti_bomber(this.ptr);
|
|
1582
1492
|
return ret;
|
|
1583
1493
|
}
|
|
1584
1494
|
/**
|
|
1495
|
+
* @returns {number}
|
|
1585
1496
|
*/
|
|
1586
1497
|
get interception() {
|
|
1587
1498
|
const ret = wasm.gear_interception(this.ptr);
|
|
@@ -1618,8 +1529,8 @@ export class Gear {
|
|
|
1618
1529
|
/**
|
|
1619
1530
|
* @returns {number}
|
|
1620
1531
|
*/
|
|
1621
|
-
|
|
1622
|
-
const ret = wasm.
|
|
1532
|
+
exp_critical_bonus() {
|
|
1533
|
+
const ret = wasm.gear_exp_critical_bonus(this.ptr);
|
|
1623
1534
|
return ret;
|
|
1624
1535
|
}
|
|
1625
1536
|
/**
|
|
@@ -1767,177 +1678,209 @@ export class IBonuses {
|
|
|
1767
1678
|
wasm.__wbg_ibonuses_free(ptr);
|
|
1768
1679
|
}
|
|
1769
1680
|
/**
|
|
1681
|
+
* @returns {number}
|
|
1770
1682
|
*/
|
|
1771
1683
|
get shelling_power() {
|
|
1772
1684
|
const ret = wasm.__wbg_get_ibonuses_shelling_power(this.ptr);
|
|
1773
1685
|
return ret;
|
|
1774
1686
|
}
|
|
1775
1687
|
/**
|
|
1688
|
+
* @param {number} arg0
|
|
1776
1689
|
*/
|
|
1777
1690
|
set shelling_power(arg0) {
|
|
1778
1691
|
wasm.__wbg_set_ibonuses_shelling_power(this.ptr, arg0);
|
|
1779
1692
|
}
|
|
1780
1693
|
/**
|
|
1694
|
+
* @returns {number}
|
|
1781
1695
|
*/
|
|
1782
1696
|
get carrier_shelling_power() {
|
|
1783
1697
|
const ret = wasm.__wbg_get_ibonuses_carrier_shelling_power(this.ptr);
|
|
1784
1698
|
return ret;
|
|
1785
1699
|
}
|
|
1786
1700
|
/**
|
|
1701
|
+
* @param {number} arg0
|
|
1787
1702
|
*/
|
|
1788
1703
|
set carrier_shelling_power(arg0) {
|
|
1789
1704
|
wasm.__wbg_set_ibonuses_carrier_shelling_power(this.ptr, arg0);
|
|
1790
1705
|
}
|
|
1791
1706
|
/**
|
|
1707
|
+
* @returns {number}
|
|
1792
1708
|
*/
|
|
1793
1709
|
get shelling_accuracy() {
|
|
1794
1710
|
const ret = wasm.__wbg_get_ibonuses_shelling_accuracy(this.ptr);
|
|
1795
1711
|
return ret;
|
|
1796
1712
|
}
|
|
1797
1713
|
/**
|
|
1714
|
+
* @param {number} arg0
|
|
1798
1715
|
*/
|
|
1799
1716
|
set shelling_accuracy(arg0) {
|
|
1800
1717
|
wasm.__wbg_set_ibonuses_shelling_accuracy(this.ptr, arg0);
|
|
1801
1718
|
}
|
|
1802
1719
|
/**
|
|
1720
|
+
* @returns {number}
|
|
1803
1721
|
*/
|
|
1804
1722
|
get torpedo_power() {
|
|
1805
1723
|
const ret = wasm.__wbg_get_ibonuses_torpedo_power(this.ptr);
|
|
1806
1724
|
return ret;
|
|
1807
1725
|
}
|
|
1808
1726
|
/**
|
|
1727
|
+
* @param {number} arg0
|
|
1809
1728
|
*/
|
|
1810
1729
|
set torpedo_power(arg0) {
|
|
1811
1730
|
wasm.__wbg_set_ibonuses_torpedo_power(this.ptr, arg0);
|
|
1812
1731
|
}
|
|
1813
1732
|
/**
|
|
1733
|
+
* @returns {number}
|
|
1814
1734
|
*/
|
|
1815
1735
|
get torpedo_accuracy() {
|
|
1816
1736
|
const ret = wasm.__wbg_get_ibonuses_torpedo_accuracy(this.ptr);
|
|
1817
1737
|
return ret;
|
|
1818
1738
|
}
|
|
1819
1739
|
/**
|
|
1740
|
+
* @param {number} arg0
|
|
1820
1741
|
*/
|
|
1821
1742
|
set torpedo_accuracy(arg0) {
|
|
1822
1743
|
wasm.__wbg_set_ibonuses_torpedo_accuracy(this.ptr, arg0);
|
|
1823
1744
|
}
|
|
1824
1745
|
/**
|
|
1746
|
+
* @returns {number}
|
|
1825
1747
|
*/
|
|
1826
1748
|
get torpedo_evasion() {
|
|
1827
1749
|
const ret = wasm.__wbg_get_ibonuses_torpedo_evasion(this.ptr);
|
|
1828
1750
|
return ret;
|
|
1829
1751
|
}
|
|
1830
1752
|
/**
|
|
1753
|
+
* @param {number} arg0
|
|
1831
1754
|
*/
|
|
1832
1755
|
set torpedo_evasion(arg0) {
|
|
1833
1756
|
wasm.__wbg_set_ibonuses_torpedo_evasion(this.ptr, arg0);
|
|
1834
1757
|
}
|
|
1835
1758
|
/**
|
|
1759
|
+
* @returns {number}
|
|
1836
1760
|
*/
|
|
1837
1761
|
get asw_power() {
|
|
1838
1762
|
const ret = wasm.__wbg_get_ibonuses_asw_power(this.ptr);
|
|
1839
1763
|
return ret;
|
|
1840
1764
|
}
|
|
1841
1765
|
/**
|
|
1766
|
+
* @param {number} arg0
|
|
1842
1767
|
*/
|
|
1843
1768
|
set asw_power(arg0) {
|
|
1844
1769
|
wasm.__wbg_set_ibonuses_asw_power(this.ptr, arg0);
|
|
1845
1770
|
}
|
|
1846
1771
|
/**
|
|
1772
|
+
* @returns {number}
|
|
1847
1773
|
*/
|
|
1848
1774
|
get asw_accuracy() {
|
|
1849
1775
|
const ret = wasm.__wbg_get_ibonuses_asw_accuracy(this.ptr);
|
|
1850
1776
|
return ret;
|
|
1851
1777
|
}
|
|
1852
1778
|
/**
|
|
1779
|
+
* @param {number} arg0
|
|
1853
1780
|
*/
|
|
1854
1781
|
set asw_accuracy(arg0) {
|
|
1855
1782
|
wasm.__wbg_set_ibonuses_asw_accuracy(this.ptr, arg0);
|
|
1856
1783
|
}
|
|
1857
1784
|
/**
|
|
1785
|
+
* @returns {number}
|
|
1858
1786
|
*/
|
|
1859
1787
|
get night_power() {
|
|
1860
1788
|
const ret = wasm.__wbg_get_ibonuses_night_power(this.ptr);
|
|
1861
1789
|
return ret;
|
|
1862
1790
|
}
|
|
1863
1791
|
/**
|
|
1792
|
+
* @param {number} arg0
|
|
1864
1793
|
*/
|
|
1865
1794
|
set night_power(arg0) {
|
|
1866
1795
|
wasm.__wbg_set_ibonuses_night_power(this.ptr, arg0);
|
|
1867
1796
|
}
|
|
1868
1797
|
/**
|
|
1798
|
+
* @returns {number}
|
|
1869
1799
|
*/
|
|
1870
1800
|
get night_accuracy() {
|
|
1871
1801
|
const ret = wasm.__wbg_get_ibonuses_night_accuracy(this.ptr);
|
|
1872
1802
|
return ret;
|
|
1873
1803
|
}
|
|
1874
1804
|
/**
|
|
1805
|
+
* @param {number} arg0
|
|
1875
1806
|
*/
|
|
1876
1807
|
set night_accuracy(arg0) {
|
|
1877
1808
|
wasm.__wbg_set_ibonuses_night_accuracy(this.ptr, arg0);
|
|
1878
1809
|
}
|
|
1879
1810
|
/**
|
|
1811
|
+
* @returns {number}
|
|
1880
1812
|
*/
|
|
1881
1813
|
get defense_power() {
|
|
1882
1814
|
const ret = wasm.__wbg_get_ibonuses_defense_power(this.ptr);
|
|
1883
1815
|
return ret;
|
|
1884
1816
|
}
|
|
1885
1817
|
/**
|
|
1818
|
+
* @param {number} arg0
|
|
1886
1819
|
*/
|
|
1887
1820
|
set defense_power(arg0) {
|
|
1888
1821
|
wasm.__wbg_set_ibonuses_defense_power(this.ptr, arg0);
|
|
1889
1822
|
}
|
|
1890
1823
|
/**
|
|
1824
|
+
* @returns {number}
|
|
1891
1825
|
*/
|
|
1892
1826
|
get contact_selection() {
|
|
1893
1827
|
const ret = wasm.__wbg_get_ibonuses_contact_selection(this.ptr);
|
|
1894
1828
|
return ret;
|
|
1895
1829
|
}
|
|
1896
1830
|
/**
|
|
1831
|
+
* @param {number} arg0
|
|
1897
1832
|
*/
|
|
1898
1833
|
set contact_selection(arg0) {
|
|
1899
1834
|
wasm.__wbg_set_ibonuses_contact_selection(this.ptr, arg0);
|
|
1900
1835
|
}
|
|
1901
1836
|
/**
|
|
1837
|
+
* @returns {number}
|
|
1902
1838
|
*/
|
|
1903
1839
|
get fighter_power() {
|
|
1904
1840
|
const ret = wasm.__wbg_get_ibonuses_fighter_power(this.ptr);
|
|
1905
1841
|
return ret;
|
|
1906
1842
|
}
|
|
1907
1843
|
/**
|
|
1844
|
+
* @param {number} arg0
|
|
1908
1845
|
*/
|
|
1909
1846
|
set fighter_power(arg0) {
|
|
1910
1847
|
wasm.__wbg_set_ibonuses_fighter_power(this.ptr, arg0);
|
|
1911
1848
|
}
|
|
1912
1849
|
/**
|
|
1850
|
+
* @returns {number}
|
|
1913
1851
|
*/
|
|
1914
1852
|
get ship_anti_air() {
|
|
1915
1853
|
const ret = wasm.__wbg_get_ibonuses_ship_anti_air(this.ptr);
|
|
1916
1854
|
return ret;
|
|
1917
1855
|
}
|
|
1918
1856
|
/**
|
|
1857
|
+
* @param {number} arg0
|
|
1919
1858
|
*/
|
|
1920
1859
|
set ship_anti_air(arg0) {
|
|
1921
1860
|
wasm.__wbg_set_ibonuses_ship_anti_air(this.ptr, arg0);
|
|
1922
1861
|
}
|
|
1923
1862
|
/**
|
|
1863
|
+
* @returns {number}
|
|
1924
1864
|
*/
|
|
1925
1865
|
get fleet_anti_air() {
|
|
1926
1866
|
const ret = wasm.__wbg_get_ibonuses_fleet_anti_air(this.ptr);
|
|
1927
1867
|
return ret;
|
|
1928
1868
|
}
|
|
1929
1869
|
/**
|
|
1870
|
+
* @param {number} arg0
|
|
1930
1871
|
*/
|
|
1931
1872
|
set fleet_anti_air(arg0) {
|
|
1932
1873
|
wasm.__wbg_set_ibonuses_fleet_anti_air(this.ptr, arg0);
|
|
1933
1874
|
}
|
|
1934
1875
|
/**
|
|
1876
|
+
* @returns {number}
|
|
1935
1877
|
*/
|
|
1936
1878
|
get elos() {
|
|
1937
1879
|
const ret = wasm.__wbg_get_ibonuses_elos(this.ptr);
|
|
1938
1880
|
return ret;
|
|
1939
1881
|
}
|
|
1940
1882
|
/**
|
|
1883
|
+
* @param {number} arg0
|
|
1941
1884
|
*/
|
|
1942
1885
|
set elos(arg0) {
|
|
1943
1886
|
wasm.__wbg_set_ibonuses_elos(this.ptr, arg0);
|
|
@@ -1968,6 +1911,7 @@ export class Org {
|
|
|
1968
1911
|
wasm.__wbg_org_free(ptr);
|
|
1969
1912
|
}
|
|
1970
1913
|
/**
|
|
1914
|
+
* @returns {string}
|
|
1971
1915
|
*/
|
|
1972
1916
|
get id() {
|
|
1973
1917
|
try {
|
|
@@ -1982,6 +1926,7 @@ export class Org {
|
|
|
1982
1926
|
}
|
|
1983
1927
|
}
|
|
1984
1928
|
/**
|
|
1929
|
+
* @param {string} arg0
|
|
1985
1930
|
*/
|
|
1986
1931
|
set id(arg0) {
|
|
1987
1932
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1989,11 +1934,12 @@ export class Org {
|
|
|
1989
1934
|
wasm.__wbg_set_org_id(this.ptr, ptr0, len0);
|
|
1990
1935
|
}
|
|
1991
1936
|
/**
|
|
1937
|
+
* @returns {bigint}
|
|
1992
1938
|
*/
|
|
1993
|
-
get
|
|
1939
|
+
get hash() {
|
|
1994
1940
|
try {
|
|
1995
1941
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1996
|
-
wasm.
|
|
1942
|
+
wasm.__wbg_get_org_hash(retptr, this.ptr);
|
|
1997
1943
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1998
1944
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1999
1945
|
u32CvtShim[0] = r0;
|
|
@@ -2005,36 +1951,21 @@ export class Org {
|
|
|
2005
1951
|
}
|
|
2006
1952
|
}
|
|
2007
1953
|
/**
|
|
2008
|
-
|
|
2009
|
-
set xxh3(arg0) {
|
|
2010
|
-
uint64CvtShim[0] = arg0;
|
|
2011
|
-
const low0 = u32CvtShim[0];
|
|
2012
|
-
const high0 = u32CvtShim[1];
|
|
2013
|
-
wasm.__wbg_set_org_xxh3(this.ptr, low0, high0);
|
|
2014
|
-
}
|
|
2015
|
-
/**
|
|
1954
|
+
* @returns {number}
|
|
2016
1955
|
*/
|
|
2017
1956
|
get hq_level() {
|
|
2018
1957
|
const ret = wasm.__wbg_get_org_hq_level(this.ptr);
|
|
2019
1958
|
return ret;
|
|
2020
1959
|
}
|
|
2021
1960
|
/**
|
|
2022
|
-
|
|
2023
|
-
set hq_level(arg0) {
|
|
2024
|
-
wasm.__wbg_set_org_hq_level(this.ptr, arg0);
|
|
2025
|
-
}
|
|
2026
|
-
/**
|
|
1961
|
+
* @returns {OrgType}
|
|
2027
1962
|
*/
|
|
2028
1963
|
get org_type() {
|
|
2029
1964
|
const ret = wasm.__wbg_get_org_org_type(this.ptr);
|
|
2030
1965
|
return takeObject(ret);
|
|
2031
1966
|
}
|
|
2032
1967
|
/**
|
|
2033
|
-
|
|
2034
|
-
set org_type(arg0) {
|
|
2035
|
-
wasm.__wbg_set_org_org_type(this.ptr, addHeapObject(arg0));
|
|
2036
|
-
}
|
|
2037
|
-
/**
|
|
1968
|
+
* @returns {string}
|
|
2038
1969
|
*/
|
|
2039
1970
|
get sortie() {
|
|
2040
1971
|
try {
|
|
@@ -2049,6 +1980,7 @@ export class Org {
|
|
|
2049
1980
|
}
|
|
2050
1981
|
}
|
|
2051
1982
|
/**
|
|
1983
|
+
* @param {string} arg0
|
|
2052
1984
|
*/
|
|
2053
1985
|
set sortie(arg0) {
|
|
2054
1986
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2056,6 +1988,7 @@ export class Org {
|
|
|
2056
1988
|
wasm.__wbg_set_org_sortie(this.ptr, ptr0, len0);
|
|
2057
1989
|
}
|
|
2058
1990
|
/**
|
|
1991
|
+
* @returns {string | undefined}
|
|
2059
1992
|
*/
|
|
2060
1993
|
get route_sup() {
|
|
2061
1994
|
try {
|
|
@@ -2074,6 +2007,7 @@ export class Org {
|
|
|
2074
2007
|
}
|
|
2075
2008
|
}
|
|
2076
2009
|
/**
|
|
2010
|
+
* @param {string | undefined} arg0
|
|
2077
2011
|
*/
|
|
2078
2012
|
set route_sup(arg0) {
|
|
2079
2013
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2081,6 +2015,7 @@ export class Org {
|
|
|
2081
2015
|
wasm.__wbg_set_org_route_sup(this.ptr, ptr0, len0);
|
|
2082
2016
|
}
|
|
2083
2017
|
/**
|
|
2018
|
+
* @returns {string | undefined}
|
|
2084
2019
|
*/
|
|
2085
2020
|
get boss_sup() {
|
|
2086
2021
|
try {
|
|
@@ -2099,6 +2034,7 @@ export class Org {
|
|
|
2099
2034
|
}
|
|
2100
2035
|
}
|
|
2101
2036
|
/**
|
|
2037
|
+
* @param {string | undefined} arg0
|
|
2102
2038
|
*/
|
|
2103
2039
|
set boss_sup(arg0) {
|
|
2104
2040
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2368,16 +2304,6 @@ export class Org {
|
|
|
2368
2304
|
return ret;
|
|
2369
2305
|
}
|
|
2370
2306
|
/**
|
|
2371
|
-
* @param {Ship} ship
|
|
2372
|
-
* @param {Formation} formation
|
|
2373
|
-
* @returns {WarfareShipEnvironment}
|
|
2374
|
-
*/
|
|
2375
|
-
create_warfare_ship_environment(ship, formation) {
|
|
2376
|
-
_assertClass(ship, Ship);
|
|
2377
|
-
const ret = wasm.org_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
2378
|
-
return takeObject(ret);
|
|
2379
|
-
}
|
|
2380
|
-
/**
|
|
2381
2307
|
* @returns {Org}
|
|
2382
2308
|
*/
|
|
2383
2309
|
static default() {
|
|
@@ -2410,6 +2336,7 @@ export class Ship {
|
|
|
2410
2336
|
wasm.__wbg_ship_free(ptr);
|
|
2411
2337
|
}
|
|
2412
2338
|
/**
|
|
2339
|
+
* @returns {string}
|
|
2413
2340
|
*/
|
|
2414
2341
|
get id() {
|
|
2415
2342
|
try {
|
|
@@ -2424,6 +2351,7 @@ export class Ship {
|
|
|
2424
2351
|
}
|
|
2425
2352
|
}
|
|
2426
2353
|
/**
|
|
2354
|
+
* @param {string} arg0
|
|
2427
2355
|
*/
|
|
2428
2356
|
set id(arg0) {
|
|
2429
2357
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2431,11 +2359,12 @@ export class Ship {
|
|
|
2431
2359
|
wasm.__wbg_set_ship_id(this.ptr, ptr0, len0);
|
|
2432
2360
|
}
|
|
2433
2361
|
/**
|
|
2362
|
+
* @returns {bigint}
|
|
2434
2363
|
*/
|
|
2435
|
-
get
|
|
2364
|
+
get hash() {
|
|
2436
2365
|
try {
|
|
2437
2366
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2438
|
-
wasm.
|
|
2367
|
+
wasm.__wbg_get_ship_hash(retptr, this.ptr);
|
|
2439
2368
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2440
2369
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2441
2370
|
u32CvtShim[0] = r0;
|
|
@@ -2447,191 +2376,167 @@ export class Ship {
|
|
|
2447
2376
|
}
|
|
2448
2377
|
}
|
|
2449
2378
|
/**
|
|
2450
|
-
|
|
2451
|
-
set xxh3(arg0) {
|
|
2452
|
-
uint64CvtShim[0] = arg0;
|
|
2453
|
-
const low0 = u32CvtShim[0];
|
|
2454
|
-
const high0 = u32CvtShim[1];
|
|
2455
|
-
wasm.__wbg_set_ship_xxh3(this.ptr, low0, high0);
|
|
2456
|
-
}
|
|
2457
|
-
/**
|
|
2379
|
+
* @returns {number}
|
|
2458
2380
|
*/
|
|
2459
2381
|
get ship_id() {
|
|
2460
2382
|
const ret = wasm.__wbg_get_ship_ship_id(this.ptr);
|
|
2461
2383
|
return ret;
|
|
2462
2384
|
}
|
|
2463
2385
|
/**
|
|
2464
|
-
|
|
2465
|
-
set ship_id(arg0) {
|
|
2466
|
-
wasm.__wbg_set_ship_ship_id(this.ptr, arg0);
|
|
2467
|
-
}
|
|
2468
|
-
/**
|
|
2386
|
+
* @returns {number}
|
|
2469
2387
|
*/
|
|
2470
2388
|
get level() {
|
|
2471
2389
|
const ret = wasm.__wbg_get_ship_level(this.ptr);
|
|
2472
2390
|
return ret;
|
|
2473
2391
|
}
|
|
2474
2392
|
/**
|
|
2475
|
-
|
|
2476
|
-
set level(arg0) {
|
|
2477
|
-
wasm.__wbg_set_ship_level(this.ptr, arg0);
|
|
2478
|
-
}
|
|
2479
|
-
/**
|
|
2393
|
+
* @returns {number}
|
|
2480
2394
|
*/
|
|
2481
2395
|
get current_hp() {
|
|
2482
2396
|
const ret = wasm.__wbg_get_ship_current_hp(this.ptr);
|
|
2483
2397
|
return ret;
|
|
2484
2398
|
}
|
|
2485
2399
|
/**
|
|
2486
|
-
|
|
2487
|
-
set current_hp(arg0) {
|
|
2488
|
-
wasm.__wbg_set_ship_current_hp(this.ptr, arg0);
|
|
2489
|
-
}
|
|
2490
|
-
/**
|
|
2400
|
+
* @returns {number}
|
|
2491
2401
|
*/
|
|
2492
2402
|
get morale() {
|
|
2493
2403
|
const ret = wasm.__wbg_get_ship_morale(this.ptr);
|
|
2494
2404
|
return ret;
|
|
2495
2405
|
}
|
|
2496
2406
|
/**
|
|
2497
|
-
|
|
2498
|
-
set morale(arg0) {
|
|
2499
|
-
wasm.__wbg_set_ship_morale(this.ptr, arg0);
|
|
2500
|
-
}
|
|
2501
|
-
/**
|
|
2407
|
+
* @returns {number}
|
|
2502
2408
|
*/
|
|
2503
2409
|
get ammo() {
|
|
2504
2410
|
const ret = wasm.__wbg_get_ship_ammo(this.ptr);
|
|
2505
2411
|
return ret;
|
|
2506
2412
|
}
|
|
2507
2413
|
/**
|
|
2508
|
-
|
|
2509
|
-
set ammo(arg0) {
|
|
2510
|
-
wasm.__wbg_set_ship_ammo(this.ptr, arg0);
|
|
2511
|
-
}
|
|
2512
|
-
/**
|
|
2414
|
+
* @returns {number}
|
|
2513
2415
|
*/
|
|
2514
2416
|
get fuel() {
|
|
2515
2417
|
const ret = wasm.__wbg_get_ship_fuel(this.ptr);
|
|
2516
2418
|
return ret;
|
|
2517
2419
|
}
|
|
2518
2420
|
/**
|
|
2519
|
-
|
|
2520
|
-
set fuel(arg0) {
|
|
2521
|
-
wasm.__wbg_set_ship_fuel(this.ptr, arg0);
|
|
2522
|
-
}
|
|
2523
|
-
/**
|
|
2421
|
+
* @returns {ShipType}
|
|
2524
2422
|
*/
|
|
2525
2423
|
get ship_type() {
|
|
2526
2424
|
const ret = wasm.__wbg_get_ship_ship_type(this.ptr);
|
|
2527
2425
|
return takeObject(ret);
|
|
2528
2426
|
}
|
|
2529
2427
|
/**
|
|
2530
|
-
|
|
2531
|
-
set ship_type(arg0) {
|
|
2532
|
-
wasm.__wbg_set_ship_ship_type(this.ptr, addHeapObject(arg0));
|
|
2533
|
-
}
|
|
2534
|
-
/**
|
|
2428
|
+
* @returns {number}
|
|
2535
2429
|
*/
|
|
2536
2430
|
get ctype() {
|
|
2537
2431
|
const ret = wasm.__wbg_get_ship_ctype(this.ptr);
|
|
2538
2432
|
return ret;
|
|
2539
2433
|
}
|
|
2540
2434
|
/**
|
|
2541
|
-
|
|
2542
|
-
set ctype(arg0) {
|
|
2543
|
-
wasm.__wbg_set_ship_ctype(this.ptr, arg0);
|
|
2544
|
-
}
|
|
2545
|
-
/**
|
|
2435
|
+
* @returns {SlotSizeVec}
|
|
2546
2436
|
*/
|
|
2547
2437
|
get slots() {
|
|
2548
2438
|
const ret = wasm.__wbg_get_ship_slots(this.ptr);
|
|
2549
2439
|
return takeObject(ret);
|
|
2550
2440
|
}
|
|
2551
2441
|
/**
|
|
2442
|
+
* @param {SlotSizeVec} arg0
|
|
2552
2443
|
*/
|
|
2553
2444
|
set slots(arg0) {
|
|
2554
2445
|
wasm.__wbg_set_ship_slots(this.ptr, addHeapObject(arg0));
|
|
2555
2446
|
}
|
|
2556
2447
|
/**
|
|
2448
|
+
* @returns {number | undefined}
|
|
2557
2449
|
*/
|
|
2558
2450
|
get naked_firepower() {
|
|
2559
2451
|
const ret = wasm.ship_naked_firepower(this.ptr);
|
|
2560
2452
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2561
2453
|
}
|
|
2562
2454
|
/**
|
|
2455
|
+
* @returns {number | undefined}
|
|
2563
2456
|
*/
|
|
2564
2457
|
get naked_torpedo() {
|
|
2565
2458
|
const ret = wasm.ship_naked_torpedo(this.ptr);
|
|
2566
2459
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2567
2460
|
}
|
|
2568
2461
|
/**
|
|
2462
|
+
* @returns {number | undefined}
|
|
2569
2463
|
*/
|
|
2570
2464
|
get naked_armor() {
|
|
2571
2465
|
const ret = wasm.ship_naked_armor(this.ptr);
|
|
2572
2466
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2573
2467
|
}
|
|
2574
2468
|
/**
|
|
2469
|
+
* @returns {number | undefined}
|
|
2575
2470
|
*/
|
|
2576
2471
|
get naked_anti_air() {
|
|
2577
2472
|
const ret = wasm.ship_naked_anti_air(this.ptr);
|
|
2578
2473
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2579
2474
|
}
|
|
2580
2475
|
/**
|
|
2476
|
+
* @returns {number | undefined}
|
|
2581
2477
|
*/
|
|
2582
2478
|
get naked_evasion() {
|
|
2583
2479
|
const ret = wasm.ship_naked_evasion(this.ptr);
|
|
2584
2480
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2585
2481
|
}
|
|
2586
2482
|
/**
|
|
2483
|
+
* @returns {number | undefined}
|
|
2587
2484
|
*/
|
|
2588
2485
|
get naked_asw() {
|
|
2589
2486
|
const ret = wasm.ship_naked_asw(this.ptr);
|
|
2590
2487
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2591
2488
|
}
|
|
2592
2489
|
/**
|
|
2490
|
+
* @returns {number | undefined}
|
|
2593
2491
|
*/
|
|
2594
2492
|
get naked_los() {
|
|
2595
2493
|
const ret = wasm.ship_naked_los(this.ptr);
|
|
2596
2494
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2597
2495
|
}
|
|
2598
2496
|
/**
|
|
2497
|
+
* @returns {number | undefined}
|
|
2599
2498
|
*/
|
|
2600
2499
|
get firepower() {
|
|
2601
2500
|
const ret = wasm.ship_firepower(this.ptr);
|
|
2602
2501
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2603
2502
|
}
|
|
2604
2503
|
/**
|
|
2504
|
+
* @returns {number | undefined}
|
|
2605
2505
|
*/
|
|
2606
2506
|
get torpedo() {
|
|
2607
2507
|
const ret = wasm.ship_torpedo(this.ptr);
|
|
2608
2508
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2609
2509
|
}
|
|
2610
2510
|
/**
|
|
2511
|
+
* @returns {number | undefined}
|
|
2611
2512
|
*/
|
|
2612
2513
|
get armor() {
|
|
2613
2514
|
const ret = wasm.ship_armor(this.ptr);
|
|
2614
2515
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2615
2516
|
}
|
|
2616
2517
|
/**
|
|
2518
|
+
* @returns {number | undefined}
|
|
2617
2519
|
*/
|
|
2618
2520
|
get anti_air() {
|
|
2619
2521
|
const ret = wasm.ship_anti_air(this.ptr);
|
|
2620
2522
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2621
2523
|
}
|
|
2622
2524
|
/**
|
|
2525
|
+
* @returns {number | undefined}
|
|
2623
2526
|
*/
|
|
2624
2527
|
get evasion() {
|
|
2625
2528
|
const ret = wasm.ship_evasion(this.ptr);
|
|
2626
2529
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2627
2530
|
}
|
|
2628
2531
|
/**
|
|
2532
|
+
* @returns {number | undefined}
|
|
2629
2533
|
*/
|
|
2630
2534
|
get asw() {
|
|
2631
2535
|
const ret = wasm.ship_asw(this.ptr);
|
|
2632
2536
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2633
2537
|
}
|
|
2634
2538
|
/**
|
|
2539
|
+
* @returns {number | undefined}
|
|
2635
2540
|
*/
|
|
2636
2541
|
get los() {
|
|
2637
2542
|
const ret = wasm.ship_los(this.ptr);
|
|
@@ -2676,6 +2581,7 @@ export class Ship {
|
|
|
2676
2581
|
return takeObject(ret);
|
|
2677
2582
|
}
|
|
2678
2583
|
/**
|
|
2584
|
+
* @returns {string}
|
|
2679
2585
|
*/
|
|
2680
2586
|
get name() {
|
|
2681
2587
|
try {
|
|
@@ -2690,6 +2596,7 @@ export class Ship {
|
|
|
2690
2596
|
}
|
|
2691
2597
|
}
|
|
2692
2598
|
/**
|
|
2599
|
+
* @returns {string}
|
|
2693
2600
|
*/
|
|
2694
2601
|
get yomi() {
|
|
2695
2602
|
try {
|
|
@@ -2704,12 +2611,14 @@ export class Ship {
|
|
|
2704
2611
|
}
|
|
2705
2612
|
}
|
|
2706
2613
|
/**
|
|
2614
|
+
* @returns {number}
|
|
2707
2615
|
*/
|
|
2708
2616
|
get stype() {
|
|
2709
2617
|
const ret = wasm.ship_stype(this.ptr);
|
|
2710
2618
|
return ret;
|
|
2711
2619
|
}
|
|
2712
2620
|
/**
|
|
2621
|
+
* @returns {number}
|
|
2713
2622
|
*/
|
|
2714
2623
|
get sort_id() {
|
|
2715
2624
|
const ret = wasm.ship_sort_id(this.ptr);
|
|
@@ -2723,18 +2632,21 @@ export class Ship {
|
|
|
2723
2632
|
return ret;
|
|
2724
2633
|
}
|
|
2725
2634
|
/**
|
|
2635
|
+
* @returns {number}
|
|
2726
2636
|
*/
|
|
2727
2637
|
get slotnum() {
|
|
2728
2638
|
const ret = wasm.ship_slotnum(this.ptr);
|
|
2729
2639
|
return ret >>> 0;
|
|
2730
2640
|
}
|
|
2731
2641
|
/**
|
|
2642
|
+
* @returns {number}
|
|
2732
2643
|
*/
|
|
2733
2644
|
get next_id() {
|
|
2734
2645
|
const ret = wasm.ship_next_id(this.ptr);
|
|
2735
2646
|
return ret;
|
|
2736
2647
|
}
|
|
2737
2648
|
/**
|
|
2649
|
+
* @returns {boolean}
|
|
2738
2650
|
*/
|
|
2739
2651
|
get useful() {
|
|
2740
2652
|
const ret = wasm.ship_useful(this.ptr);
|
|
@@ -2909,60 +2821,70 @@ export class Ship {
|
|
|
2909
2821
|
return ret !== 0;
|
|
2910
2822
|
}
|
|
2911
2823
|
/**
|
|
2824
|
+
* @returns {number | undefined}
|
|
2912
2825
|
*/
|
|
2913
2826
|
get max_hp() {
|
|
2914
2827
|
const ret = wasm.ship_max_hp(this.ptr);
|
|
2915
2828
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2916
2829
|
}
|
|
2917
2830
|
/**
|
|
2831
|
+
* @returns {number}
|
|
2918
2832
|
*/
|
|
2919
2833
|
get max_ammo() {
|
|
2920
2834
|
const ret = wasm.ship_max_ammo(this.ptr);
|
|
2921
2835
|
return ret;
|
|
2922
2836
|
}
|
|
2923
2837
|
/**
|
|
2838
|
+
* @returns {number}
|
|
2924
2839
|
*/
|
|
2925
2840
|
get max_fuel() {
|
|
2926
2841
|
const ret = wasm.ship_max_fuel(this.ptr);
|
|
2927
2842
|
return ret;
|
|
2928
2843
|
}
|
|
2929
2844
|
/**
|
|
2845
|
+
* @returns {number | undefined}
|
|
2930
2846
|
*/
|
|
2931
2847
|
get naked_range() {
|
|
2932
2848
|
const ret = wasm.ship_naked_range(this.ptr);
|
|
2933
2849
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2934
2850
|
}
|
|
2935
2851
|
/**
|
|
2852
|
+
* @returns {number}
|
|
2936
2853
|
*/
|
|
2937
2854
|
get naked_speed() {
|
|
2938
2855
|
const ret = wasm.ship_naked_speed(this.ptr);
|
|
2939
2856
|
return ret;
|
|
2940
2857
|
}
|
|
2941
2858
|
/**
|
|
2859
|
+
* @returns {number | undefined}
|
|
2942
2860
|
*/
|
|
2943
2861
|
get luck() {
|
|
2944
2862
|
const ret = wasm.ship_luck(this.ptr);
|
|
2945
2863
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2946
2864
|
}
|
|
2947
2865
|
/**
|
|
2866
|
+
* @returns {number | undefined}
|
|
2948
2867
|
*/
|
|
2949
2868
|
get range() {
|
|
2950
2869
|
const ret = wasm.ship_range(this.ptr);
|
|
2951
2870
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2952
2871
|
}
|
|
2953
2872
|
/**
|
|
2873
|
+
* @returns {number}
|
|
2954
2874
|
*/
|
|
2955
2875
|
get speed() {
|
|
2956
2876
|
const ret = wasm.ship_speed(this.ptr);
|
|
2957
2877
|
return ret;
|
|
2958
2878
|
}
|
|
2959
2879
|
/**
|
|
2880
|
+
* @returns {number}
|
|
2960
2881
|
*/
|
|
2961
2882
|
get accuracy() {
|
|
2962
2883
|
const ret = wasm.ship_accuracy(this.ptr);
|
|
2963
2884
|
return ret;
|
|
2964
2885
|
}
|
|
2965
2886
|
/**
|
|
2887
|
+
* @returns {number}
|
|
2966
2888
|
*/
|
|
2967
2889
|
get innate_torpedo_accuracy() {
|
|
2968
2890
|
const ret = wasm.ship_innate_torpedo_accuracy(this.ptr);
|
|
@@ -3035,6 +2957,23 @@ export class Ship {
|
|
|
3035
2957
|
}
|
|
3036
2958
|
}
|
|
3037
2959
|
/**
|
|
2960
|
+
* 加重対空
|
|
2961
|
+
* @param {Side} side
|
|
2962
|
+
* @returns {number | undefined}
|
|
2963
|
+
*/
|
|
2964
|
+
ship_adjusted_anti_air(side) {
|
|
2965
|
+
try {
|
|
2966
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2967
|
+
wasm.ship_ship_adjusted_anti_air(retptr, this.ptr, addHeapObject(side));
|
|
2968
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2969
|
+
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
2970
|
+
return r0 === 0 ? undefined : r2;
|
|
2971
|
+
} finally {
|
|
2972
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2975
|
+
/**
|
|
2976
|
+
* 艦隊対空補正
|
|
3038
2977
|
* @returns {number}
|
|
3039
2978
|
*/
|
|
3040
2979
|
fleet_anti_air_mod() {
|
|
@@ -3146,12 +3085,6 @@ export class Ship {
|
|
|
3146
3085
|
}
|
|
3147
3086
|
}
|
|
3148
3087
|
/**
|
|
3149
|
-
* @param {number} value
|
|
3150
|
-
*/
|
|
3151
|
-
take_damage(value) {
|
|
3152
|
-
wasm.ship_take_damage(this.ptr, value);
|
|
3153
|
-
}
|
|
3154
|
-
/**
|
|
3155
3088
|
* @returns {number | undefined}
|
|
3156
3089
|
*/
|
|
3157
3090
|
state_day_gunfit_accuracy() {
|
|
@@ -3190,15 +3123,6 @@ export class Ship {
|
|
|
3190
3123
|
}
|
|
3191
3124
|
}
|
|
3192
3125
|
|
|
3193
|
-
export function __wbindgen_string_new(arg0, arg1) {
|
|
3194
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
3195
|
-
return addHeapObject(ret);
|
|
3196
|
-
};
|
|
3197
|
-
|
|
3198
|
-
export function __wbindgen_object_drop_ref(arg0) {
|
|
3199
|
-
takeObject(arg0);
|
|
3200
|
-
};
|
|
3201
|
-
|
|
3202
3126
|
export function __wbindgen_json_serialize(arg0, arg1) {
|
|
3203
3127
|
const obj = getObject(arg1);
|
|
3204
3128
|
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -3208,13 +3132,17 @@ export function __wbindgen_json_serialize(arg0, arg1) {
|
|
|
3208
3132
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3209
3133
|
};
|
|
3210
3134
|
|
|
3211
|
-
export function
|
|
3212
|
-
|
|
3135
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
|
3136
|
+
takeObject(arg0);
|
|
3137
|
+
};
|
|
3138
|
+
|
|
3139
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
3140
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3213
3141
|
return addHeapObject(ret);
|
|
3214
3142
|
};
|
|
3215
3143
|
|
|
3216
|
-
export function
|
|
3217
|
-
const ret =
|
|
3144
|
+
export function __wbg_createEquipmentBonuses_6bfec5b900d74071(arg0, arg1) {
|
|
3145
|
+
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
3218
3146
|
return addHeapObject(ret);
|
|
3219
3147
|
};
|
|
3220
3148
|
|
|
@@ -3223,6 +3151,11 @@ export function __wbg_ship_new(arg0) {
|
|
|
3223
3151
|
return addHeapObject(ret);
|
|
3224
3152
|
};
|
|
3225
3153
|
|
|
3154
|
+
export function __wbindgen_json_parse(arg0, arg1) {
|
|
3155
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
3156
|
+
return addHeapObject(ret);
|
|
3157
|
+
};
|
|
3158
|
+
|
|
3226
3159
|
export function __wbg_new_693216e109162396() {
|
|
3227
3160
|
const ret = new Error();
|
|
3228
3161
|
return addHeapObject(ret);
|
|
@@ -3298,17 +3231,17 @@ export function __wbg_msCrypto_5a86d77a66230f81(arg0) {
|
|
|
3298
3231
|
return addHeapObject(ret);
|
|
3299
3232
|
};
|
|
3300
3233
|
|
|
3301
|
-
export function
|
|
3234
|
+
export function __wbg_new_ee1a3da85465d621() {
|
|
3302
3235
|
const ret = new Array();
|
|
3303
3236
|
return addHeapObject(ret);
|
|
3304
3237
|
};
|
|
3305
3238
|
|
|
3306
|
-
export function
|
|
3239
|
+
export function __wbg_newnoargs_971e9a5abe185139(arg0, arg1) {
|
|
3307
3240
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3308
3241
|
return addHeapObject(ret);
|
|
3309
3242
|
};
|
|
3310
3243
|
|
|
3311
|
-
export function
|
|
3244
|
+
export function __wbg_call_33d7bcddbbfa394a() { return handleError(function (arg0, arg1) {
|
|
3312
3245
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
3313
3246
|
return addHeapObject(ret);
|
|
3314
3247
|
}, arguments) };
|
|
@@ -3318,22 +3251,22 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
3318
3251
|
return addHeapObject(ret);
|
|
3319
3252
|
};
|
|
3320
3253
|
|
|
3321
|
-
export function
|
|
3254
|
+
export function __wbg_self_fd00a1ef86d1b2ed() { return handleError(function () {
|
|
3322
3255
|
const ret = self.self;
|
|
3323
3256
|
return addHeapObject(ret);
|
|
3324
3257
|
}, arguments) };
|
|
3325
3258
|
|
|
3326
|
-
export function
|
|
3259
|
+
export function __wbg_window_6f6e346d8bbd61d7() { return handleError(function () {
|
|
3327
3260
|
const ret = window.window;
|
|
3328
3261
|
return addHeapObject(ret);
|
|
3329
3262
|
}, arguments) };
|
|
3330
3263
|
|
|
3331
|
-
export function
|
|
3264
|
+
export function __wbg_globalThis_3348936ac49df00a() { return handleError(function () {
|
|
3332
3265
|
const ret = globalThis.globalThis;
|
|
3333
3266
|
return addHeapObject(ret);
|
|
3334
3267
|
}, arguments) };
|
|
3335
3268
|
|
|
3336
|
-
export function
|
|
3269
|
+
export function __wbg_global_67175caf56f55ca9() { return handleError(function () {
|
|
3337
3270
|
const ret = global.global;
|
|
3338
3271
|
return addHeapObject(ret);
|
|
3339
3272
|
}, arguments) };
|
|
@@ -3343,36 +3276,36 @@ export function __wbindgen_is_undefined(arg0) {
|
|
|
3343
3276
|
return ret;
|
|
3344
3277
|
};
|
|
3345
3278
|
|
|
3346
|
-
export function
|
|
3279
|
+
export function __wbg_push_0bc7fce4a139a883(arg0, arg1) {
|
|
3347
3280
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
3348
3281
|
return ret;
|
|
3349
3282
|
};
|
|
3350
3283
|
|
|
3351
|
-
export function
|
|
3284
|
+
export function __wbg_buffer_34f5ec9f8a838ba0(arg0) {
|
|
3352
3285
|
const ret = getObject(arg0).buffer;
|
|
3353
3286
|
return addHeapObject(ret);
|
|
3354
3287
|
};
|
|
3355
3288
|
|
|
3356
|
-
export function
|
|
3289
|
+
export function __wbg_new_cda198d9dbc6d7ea(arg0) {
|
|
3357
3290
|
const ret = new Uint8Array(getObject(arg0));
|
|
3358
3291
|
return addHeapObject(ret);
|
|
3359
3292
|
};
|
|
3360
3293
|
|
|
3361
|
-
export function
|
|
3294
|
+
export function __wbg_set_1a930cfcda1a8067(arg0, arg1, arg2) {
|
|
3362
3295
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3363
3296
|
};
|
|
3364
3297
|
|
|
3365
|
-
export function
|
|
3298
|
+
export function __wbg_length_51f19f73d6d9eff3(arg0) {
|
|
3366
3299
|
const ret = getObject(arg0).length;
|
|
3367
3300
|
return ret;
|
|
3368
3301
|
};
|
|
3369
3302
|
|
|
3370
|
-
export function
|
|
3303
|
+
export function __wbg_newwithlength_66e5530e7079ea1b(arg0) {
|
|
3371
3304
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
3372
3305
|
return addHeapObject(ret);
|
|
3373
3306
|
};
|
|
3374
3307
|
|
|
3375
|
-
export function
|
|
3308
|
+
export function __wbg_subarray_270ff8dd5582c1ac(arg0, arg1, arg2) {
|
|
3376
3309
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3377
3310
|
return addHeapObject(ret);
|
|
3378
3311
|
};
|
|
@@ -3386,9 +3319,3 @@ export function __wbindgen_memory() {
|
|
|
3386
3319
|
return addHeapObject(ret);
|
|
3387
3320
|
};
|
|
3388
3321
|
|
|
3389
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
3390
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
3391
|
-
cachedUint16Memory0 = new Uint16Array(wasm.memory.buffer);
|
|
3392
|
-
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
3393
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
3394
|
-
|