fleethub-core 1.1.6 → 1.2.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 +1841 -872
- package/node/fleethub_core.js +137 -137
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +209 -209
- package/package.json +2 -3
- package/pkg/fleethub_core.d.ts +1841 -872
- package/pkg/fleethub_core_bg.js +137 -137
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +209 -209
- package/bindings.d.ts +0 -918
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -6,6 +6,20 @@ heap.push(undefined, null, true, false);
|
|
|
6
6
|
|
|
7
7
|
function getObject(idx) { return heap[idx]; }
|
|
8
8
|
|
|
9
|
+
let heap_next = heap.length;
|
|
10
|
+
|
|
11
|
+
function dropObject(idx) {
|
|
12
|
+
if (idx < 36) return;
|
|
13
|
+
heap[idx] = heap_next;
|
|
14
|
+
heap_next = idx;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function takeObject(idx) {
|
|
18
|
+
const ret = getObject(idx);
|
|
19
|
+
dropObject(idx);
|
|
20
|
+
return ret;
|
|
21
|
+
}
|
|
22
|
+
|
|
9
23
|
let WASM_VECTOR_LEN = 0;
|
|
10
24
|
|
|
11
25
|
let cachegetUint8Memory0 = null;
|
|
@@ -79,20 +93,6 @@ function getInt32Memory0() {
|
|
|
79
93
|
return cachegetInt32Memory0;
|
|
80
94
|
}
|
|
81
95
|
|
|
82
|
-
let heap_next = heap.length;
|
|
83
|
-
|
|
84
|
-
function dropObject(idx) {
|
|
85
|
-
if (idx < 36) return;
|
|
86
|
-
heap[idx] = heap_next;
|
|
87
|
-
heap_next = idx;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
function takeObject(idx) {
|
|
91
|
-
const ret = getObject(idx);
|
|
92
|
-
dropObject(idx);
|
|
93
|
-
return ret;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
96
|
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
97
97
|
|
|
98
98
|
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
@@ -177,29 +177,6 @@ function debugString(val) {
|
|
|
177
177
|
return className;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
const u32CvtShim = new Uint32Array(2);
|
|
181
|
-
|
|
182
|
-
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
|
|
183
|
-
|
|
184
|
-
function isLikeNone(x) {
|
|
185
|
-
return x === undefined || x === null;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
let cachegetUint16Memory0 = null;
|
|
189
|
-
function getUint16Memory0() {
|
|
190
|
-
if (cachegetUint16Memory0 === null || cachegetUint16Memory0.buffer !== wasm.memory.buffer) {
|
|
191
|
-
cachegetUint16Memory0 = new Uint16Array(wasm.memory.buffer);
|
|
192
|
-
}
|
|
193
|
-
return cachegetUint16Memory0;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
function passArray16ToWasm0(arg, malloc) {
|
|
197
|
-
const ptr = malloc(arg.length * 2);
|
|
198
|
-
getUint16Memory0().set(arg, ptr / 2);
|
|
199
|
-
WASM_VECTOR_LEN = arg.length;
|
|
200
|
-
return ptr;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
180
|
function _assertClass(instance, klass) {
|
|
204
181
|
if (!(instance instanceof klass)) {
|
|
205
182
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -207,26 +184,13 @@ function _assertClass(instance, klass) {
|
|
|
207
184
|
return instance.ptr;
|
|
208
185
|
}
|
|
209
186
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
213
|
-
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
214
|
-
}
|
|
215
|
-
return cachegetFloat64Memory0;
|
|
187
|
+
function isLikeNone(x) {
|
|
188
|
+
return x === undefined || x === null;
|
|
216
189
|
}
|
|
217
190
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* @param {Gear} gear
|
|
223
|
-
* @returns {boolean}
|
|
224
|
-
*/
|
|
225
|
-
export function air_squadron_can_equip(gear) {
|
|
226
|
-
_assertClass(gear, Gear);
|
|
227
|
-
var ret = wasm.air_squadron_can_equip(gear.ptr);
|
|
228
|
-
return ret !== 0;
|
|
229
|
-
}
|
|
191
|
+
const u32CvtShim = new Uint32Array(2);
|
|
192
|
+
|
|
193
|
+
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
|
|
230
194
|
|
|
231
195
|
let cachegetUint32Memory0 = null;
|
|
232
196
|
function getUint32Memory0() {
|
|
@@ -245,14 +209,41 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
245
209
|
}
|
|
246
210
|
return result;
|
|
247
211
|
}
|
|
212
|
+
|
|
213
|
+
let cachegetFloat64Memory0 = null;
|
|
214
|
+
function getFloat64Memory0() {
|
|
215
|
+
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
216
|
+
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
217
|
+
}
|
|
218
|
+
return cachegetFloat64Memory0;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
let cachegetUint16Memory0 = null;
|
|
222
|
+
function getUint16Memory0() {
|
|
223
|
+
if (cachegetUint16Memory0 === null || cachegetUint16Memory0.buffer !== wasm.memory.buffer) {
|
|
224
|
+
cachegetUint16Memory0 = new Uint16Array(wasm.memory.buffer);
|
|
225
|
+
}
|
|
226
|
+
return cachegetUint16Memory0;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function getArrayU16FromWasm0(ptr, len) {
|
|
230
|
+
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
231
|
+
}
|
|
248
232
|
/**
|
|
233
|
+
* @param {Gear} gear
|
|
234
|
+
* @returns {boolean}
|
|
249
235
|
*/
|
|
250
|
-
export function
|
|
251
|
-
|
|
236
|
+
export function air_squadron_can_equip(gear) {
|
|
237
|
+
_assertClass(gear, Gear);
|
|
238
|
+
var ret = wasm.air_squadron_can_equip(gear.ptr);
|
|
239
|
+
return ret !== 0;
|
|
252
240
|
}
|
|
253
241
|
|
|
242
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
243
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
244
|
+
}
|
|
254
245
|
/**
|
|
255
|
-
* @param {
|
|
246
|
+
* @param {OrgType} org_type
|
|
256
247
|
* @returns {boolean}
|
|
257
248
|
*/
|
|
258
249
|
export function org_type_is_single(org_type) {
|
|
@@ -261,8 +252,8 @@ export function org_type_is_single(org_type) {
|
|
|
261
252
|
}
|
|
262
253
|
|
|
263
254
|
/**
|
|
264
|
-
* @param {
|
|
265
|
-
* @returns {
|
|
255
|
+
* @param {OrgType} org_type
|
|
256
|
+
* @returns {Formation}
|
|
266
257
|
*/
|
|
267
258
|
export function org_type_default_formation(org_type) {
|
|
268
259
|
var ret = wasm.org_type_default_formation(addHeapObject(org_type));
|
|
@@ -270,7 +261,7 @@ export function org_type_default_formation(org_type) {
|
|
|
270
261
|
}
|
|
271
262
|
|
|
272
263
|
/**
|
|
273
|
-
* @param {
|
|
264
|
+
* @param {OrgType} org_type
|
|
274
265
|
* @returns {boolean}
|
|
275
266
|
*/
|
|
276
267
|
export function org_type_is_player(org_type) {
|
|
@@ -279,16 +270,25 @@ export function org_type_is_player(org_type) {
|
|
|
279
270
|
}
|
|
280
271
|
|
|
281
272
|
/**
|
|
282
|
-
* @param {
|
|
283
|
-
* @returns {
|
|
273
|
+
* @param {OrgType} org_type
|
|
274
|
+
* @returns {Side}
|
|
284
275
|
*/
|
|
285
276
|
export function org_type_side(org_type) {
|
|
286
277
|
var ret = wasm.org_type_side(addHeapObject(org_type));
|
|
287
278
|
return takeObject(ret);
|
|
288
279
|
}
|
|
289
280
|
|
|
290
|
-
|
|
291
|
-
|
|
281
|
+
/**
|
|
282
|
+
*/
|
|
283
|
+
export function set_panic_hook() {
|
|
284
|
+
wasm.set_panic_hook();
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function passArray16ToWasm0(arg, malloc) {
|
|
288
|
+
const ptr = malloc(arg.length * 2);
|
|
289
|
+
getUint16Memory0().set(arg, ptr / 2);
|
|
290
|
+
WASM_VECTOR_LEN = arg.length;
|
|
291
|
+
return ptr;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
function handleError(f, args) {
|
|
@@ -376,7 +376,7 @@ export class AirSquadron {
|
|
|
376
376
|
return takeObject(ret);
|
|
377
377
|
}
|
|
378
378
|
/**
|
|
379
|
-
* @param {
|
|
379
|
+
* @param {AirSquadronMode} arg0
|
|
380
380
|
*/
|
|
381
381
|
set mode(arg0) {
|
|
382
382
|
wasm.__wbg_set_airsquadron_mode(this.ptr, addHeapObject(arg0));
|
|
@@ -487,11 +487,11 @@ export class Analyzer {
|
|
|
487
487
|
}
|
|
488
488
|
/**
|
|
489
489
|
* @param {Comp} comp
|
|
490
|
-
* @param {
|
|
490
|
+
* @param {Formation} formation
|
|
491
491
|
* @param {number} adjusted_anti_air_resist
|
|
492
492
|
* @param {number} fleet_anti_air_resist
|
|
493
493
|
* @param {number | undefined} aaci
|
|
494
|
-
* @returns {
|
|
494
|
+
* @returns {CompAntiAirInfo}
|
|
495
495
|
*/
|
|
496
496
|
analyze_anti_air(comp, formation, adjusted_anti_air_resist, fleet_anti_air_resist, aaci) {
|
|
497
497
|
_assertClass(comp, Comp);
|
|
@@ -500,7 +500,7 @@ export class Analyzer {
|
|
|
500
500
|
}
|
|
501
501
|
/**
|
|
502
502
|
* @param {Comp} comp
|
|
503
|
-
* @returns {
|
|
503
|
+
* @returns {CompDayCutinRateInfo}
|
|
504
504
|
*/
|
|
505
505
|
analyze_day_cutin(comp) {
|
|
506
506
|
_assertClass(comp, Comp);
|
|
@@ -509,9 +509,9 @@ export class Analyzer {
|
|
|
509
509
|
}
|
|
510
510
|
/**
|
|
511
511
|
* @param {Comp} comp
|
|
512
|
-
* @param {
|
|
513
|
-
* @param {
|
|
514
|
-
* @returns {
|
|
512
|
+
* @param {NightSituation} attacker_situation
|
|
513
|
+
* @param {NightSituation} target_situation
|
|
514
|
+
* @returns {FleetNightCutinRateInfo}
|
|
515
515
|
*/
|
|
516
516
|
analyze_night_cutin(comp, attacker_situation, target_situation) {
|
|
517
517
|
_assertClass(comp, Comp);
|
|
@@ -520,7 +520,7 @@ export class Analyzer {
|
|
|
520
520
|
}
|
|
521
521
|
/**
|
|
522
522
|
* @param {Comp} comp
|
|
523
|
-
* @returns {
|
|
523
|
+
* @returns {CompContactChanceInfo}
|
|
524
524
|
*/
|
|
525
525
|
analyze_contact_chance(comp) {
|
|
526
526
|
_assertClass(comp, Comp);
|
|
@@ -528,10 +528,10 @@ export class Analyzer {
|
|
|
528
528
|
return takeObject(ret);
|
|
529
529
|
}
|
|
530
530
|
/**
|
|
531
|
-
* @param {
|
|
531
|
+
* @param {WarfareAnalyzerContext} params
|
|
532
532
|
* @param {Ship} attacker
|
|
533
533
|
* @param {Ship} target
|
|
534
|
-
* @returns {
|
|
534
|
+
* @returns {WarfareInfo}
|
|
535
535
|
*/
|
|
536
536
|
analyze_warfare(params, attacker, target) {
|
|
537
537
|
_assertClass(attacker, Ship);
|
|
@@ -541,8 +541,8 @@ export class Analyzer {
|
|
|
541
541
|
}
|
|
542
542
|
/**
|
|
543
543
|
* @param {Comp} comp
|
|
544
|
-
* @param {
|
|
545
|
-
* @returns {
|
|
544
|
+
* @param {Engagement} engagement
|
|
545
|
+
* @returns {FleetCutinAnalysis}
|
|
546
546
|
*/
|
|
547
547
|
analyze_fleet_cutin(comp, engagement) {
|
|
548
548
|
_assertClass(comp, Comp);
|
|
@@ -581,7 +581,7 @@ export class Comp {
|
|
|
581
581
|
return takeObject(ret);
|
|
582
582
|
}
|
|
583
583
|
/**
|
|
584
|
-
* @param {
|
|
584
|
+
* @param {OrgType} arg0
|
|
585
585
|
*/
|
|
586
586
|
set org_type(arg0) {
|
|
587
587
|
wasm.__wbg_set_comp_org_type(this.ptr, addHeapObject(arg0));
|
|
@@ -668,7 +668,7 @@ export class Comp {
|
|
|
668
668
|
wasm.__wbg_set_comp_boss_sup(this.ptr, ptr0);
|
|
669
669
|
}
|
|
670
670
|
/**
|
|
671
|
-
* @returns {
|
|
671
|
+
* @returns {Side}
|
|
672
672
|
*/
|
|
673
673
|
side() {
|
|
674
674
|
var ret = wasm.comp_side(this.ptr);
|
|
@@ -689,14 +689,14 @@ export class Comp {
|
|
|
689
689
|
return ret !== 0;
|
|
690
690
|
}
|
|
691
691
|
/**
|
|
692
|
-
* @returns {
|
|
692
|
+
* @returns {CompMeta}
|
|
693
693
|
*/
|
|
694
694
|
meta() {
|
|
695
695
|
var ret = wasm.comp_meta(this.ptr);
|
|
696
696
|
return takeObject(ret);
|
|
697
697
|
}
|
|
698
698
|
/**
|
|
699
|
-
* @param {
|
|
699
|
+
* @param {FleetType} ft
|
|
700
700
|
* @returns {string | undefined}
|
|
701
701
|
*/
|
|
702
702
|
get_fleet_id(ft) {
|
|
@@ -716,7 +716,7 @@ export class Comp {
|
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
718
|
/**
|
|
719
|
-
* @param {
|
|
719
|
+
* @param {FleetType} ft
|
|
720
720
|
* @param {string} key
|
|
721
721
|
* @returns {Ship | undefined}
|
|
722
722
|
*/
|
|
@@ -727,7 +727,7 @@ export class Comp {
|
|
|
727
727
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
728
728
|
}
|
|
729
729
|
/**
|
|
730
|
-
* @param {
|
|
730
|
+
* @param {FleetType} ft
|
|
731
731
|
* @param {string} key
|
|
732
732
|
* @returns {string | undefined}
|
|
733
733
|
*/
|
|
@@ -760,7 +760,7 @@ export class Comp {
|
|
|
760
760
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
761
761
|
}
|
|
762
762
|
/**
|
|
763
|
-
* @returns {
|
|
763
|
+
* @returns {Formation}
|
|
764
764
|
*/
|
|
765
765
|
default_formation() {
|
|
766
766
|
var ret = wasm.comp_default_formation(this.ptr);
|
|
@@ -778,7 +778,7 @@ export class Comp {
|
|
|
778
778
|
/**
|
|
779
779
|
* 制空値
|
|
780
780
|
* @param {boolean} escort_participates
|
|
781
|
-
* @param {
|
|
781
|
+
* @param {AirWaveType} air_type
|
|
782
782
|
* @returns {number | undefined}
|
|
783
783
|
*/
|
|
784
784
|
fighter_power(escort_participates, air_type) {
|
|
@@ -861,7 +861,7 @@ export class FhCore {
|
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
863
|
/**
|
|
864
|
-
* @param {
|
|
864
|
+
* @param {GearState | undefined} input
|
|
865
865
|
* @returns {Gear | undefined}
|
|
866
866
|
*/
|
|
867
867
|
create_gear(input) {
|
|
@@ -869,7 +869,7 @@ export class FhCore {
|
|
|
869
869
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
870
870
|
}
|
|
871
871
|
/**
|
|
872
|
-
* @param {
|
|
872
|
+
* @param {ShipState | undefined} input
|
|
873
873
|
* @returns {Ship | undefined}
|
|
874
874
|
*/
|
|
875
875
|
create_ship(input) {
|
|
@@ -877,7 +877,7 @@ export class FhCore {
|
|
|
877
877
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
878
878
|
}
|
|
879
879
|
/**
|
|
880
|
-
* @param {
|
|
880
|
+
* @param {AirSquadronState | undefined} input
|
|
881
881
|
* @returns {AirSquadron}
|
|
882
882
|
*/
|
|
883
883
|
create_air_squadron(input) {
|
|
@@ -885,7 +885,7 @@ export class FhCore {
|
|
|
885
885
|
return AirSquadron.__wrap(ret);
|
|
886
886
|
}
|
|
887
887
|
/**
|
|
888
|
-
* @param {
|
|
888
|
+
* @param {FleetState | undefined} input
|
|
889
889
|
* @returns {Fleet}
|
|
890
890
|
*/
|
|
891
891
|
create_fleet(input) {
|
|
@@ -893,7 +893,7 @@ export class FhCore {
|
|
|
893
893
|
return Fleet.__wrap(ret);
|
|
894
894
|
}
|
|
895
895
|
/**
|
|
896
|
-
* @param {
|
|
896
|
+
* @param {OrgState | undefined} input
|
|
897
897
|
* @returns {Org | undefined}
|
|
898
898
|
*/
|
|
899
899
|
create_org(input) {
|
|
@@ -938,9 +938,9 @@ export class FhCore {
|
|
|
938
938
|
/**
|
|
939
939
|
* @param {Comp} player
|
|
940
940
|
* @param {Comp} enemy
|
|
941
|
-
* @param {
|
|
941
|
+
* @param {ShellingSupportSimulatorParams} params
|
|
942
942
|
* @param {number} times
|
|
943
|
-
* @returns {
|
|
943
|
+
* @returns {SimulatorResult}
|
|
944
944
|
*/
|
|
945
945
|
simulate_shelling_support(player, enemy, params, times) {
|
|
946
946
|
try {
|
|
@@ -1044,7 +1044,7 @@ export class Fleet {
|
|
|
1044
1044
|
wasm.__wbg_set_fleet_len(this.ptr, arg0);
|
|
1045
1045
|
}
|
|
1046
1046
|
/**
|
|
1047
|
-
* @returns {
|
|
1047
|
+
* @returns {FleetMeta}
|
|
1048
1048
|
*/
|
|
1049
1049
|
meta() {
|
|
1050
1050
|
var ret = wasm.fleet_meta(this.ptr);
|
|
@@ -1116,7 +1116,7 @@ export class Fleet {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
/**
|
|
1118
1118
|
* @param {string} id
|
|
1119
|
-
* @param {
|
|
1119
|
+
* @param {DamageState} state
|
|
1120
1120
|
* @returns {number | undefined}
|
|
1121
1121
|
*/
|
|
1122
1122
|
get_damage_bound(id, state) {
|
|
@@ -1181,7 +1181,7 @@ export class Fleet {
|
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
1183
|
/**
|
|
1184
|
-
* @param {
|
|
1184
|
+
* @param {AirWaveType} air_type
|
|
1185
1185
|
* @returns {number | undefined}
|
|
1186
1186
|
*/
|
|
1187
1187
|
fighter_power(air_type) {
|
|
@@ -1406,7 +1406,7 @@ export class Gear {
|
|
|
1406
1406
|
return takeObject(ret);
|
|
1407
1407
|
}
|
|
1408
1408
|
/**
|
|
1409
|
-
* @param {
|
|
1409
|
+
* @param {GearType} arg0
|
|
1410
1410
|
*/
|
|
1411
1411
|
set gear_type(arg0) {
|
|
1412
1412
|
wasm.__wbg_set_gear_gear_type(this.ptr, addHeapObject(arg0));
|
|
@@ -1663,7 +1663,7 @@ export class Gear {
|
|
|
1663
1663
|
return ret;
|
|
1664
1664
|
}
|
|
1665
1665
|
/**
|
|
1666
|
-
* @param {
|
|
1666
|
+
* @param {GearAttr} attr
|
|
1667
1667
|
* @returns {boolean}
|
|
1668
1668
|
*/
|
|
1669
1669
|
has_attr(attr) {
|
|
@@ -1671,7 +1671,7 @@ export class Gear {
|
|
|
1671
1671
|
return ret !== 0;
|
|
1672
1672
|
}
|
|
1673
1673
|
/**
|
|
1674
|
-
* @returns {
|
|
1674
|
+
* @returns {GearCategory}
|
|
1675
1675
|
*/
|
|
1676
1676
|
category() {
|
|
1677
1677
|
var ret = wasm.gear_category(this.ptr);
|
|
@@ -1765,7 +1765,7 @@ export class Gear {
|
|
|
1765
1765
|
return ret;
|
|
1766
1766
|
}
|
|
1767
1767
|
/**
|
|
1768
|
-
* @param {
|
|
1768
|
+
* @param {AirStateRank} rank
|
|
1769
1769
|
* @returns {number}
|
|
1770
1770
|
*/
|
|
1771
1771
|
contact_selection_rate(rank) {
|
|
@@ -2132,7 +2132,7 @@ export class Org {
|
|
|
2132
2132
|
return takeObject(ret);
|
|
2133
2133
|
}
|
|
2134
2134
|
/**
|
|
2135
|
-
* @param {
|
|
2135
|
+
* @param {OrgType} arg0
|
|
2136
2136
|
*/
|
|
2137
2137
|
set org_type(arg0) {
|
|
2138
2138
|
wasm.__wbg_set_org_org_type(this.ptr, addHeapObject(arg0));
|
|
@@ -2212,7 +2212,7 @@ export class Org {
|
|
|
2212
2212
|
wasm.__wbg_set_org_boss_sup(this.ptr, ptr0, len0);
|
|
2213
2213
|
}
|
|
2214
2214
|
/**
|
|
2215
|
-
* @param {
|
|
2215
|
+
* @param {Role} role
|
|
2216
2216
|
* @returns {number}
|
|
2217
2217
|
*/
|
|
2218
2218
|
fleet_len(role) {
|
|
@@ -2220,7 +2220,7 @@ export class Org {
|
|
|
2220
2220
|
return ret >>> 0;
|
|
2221
2221
|
}
|
|
2222
2222
|
/**
|
|
2223
|
-
* @param {
|
|
2223
|
+
* @param {Role} role
|
|
2224
2224
|
* @param {string} key
|
|
2225
2225
|
* @returns {string | undefined}
|
|
2226
2226
|
*/
|
|
@@ -2259,7 +2259,7 @@ export class Org {
|
|
|
2259
2259
|
}
|
|
2260
2260
|
}
|
|
2261
2261
|
/**
|
|
2262
|
-
* @param {
|
|
2262
|
+
* @param {Role} role
|
|
2263
2263
|
* @returns {number | undefined}
|
|
2264
2264
|
*/
|
|
2265
2265
|
fleet_los_mod(role) {
|
|
@@ -2316,7 +2316,7 @@ export class Org {
|
|
|
2316
2316
|
return Fleet.__wrap(ret);
|
|
2317
2317
|
}
|
|
2318
2318
|
/**
|
|
2319
|
-
* @param {
|
|
2319
|
+
* @param {Role} role
|
|
2320
2320
|
* @param {string} key
|
|
2321
2321
|
* @returns {Ship | undefined}
|
|
2322
2322
|
*/
|
|
@@ -2337,7 +2337,7 @@ export class Org {
|
|
|
2337
2337
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
2338
2338
|
}
|
|
2339
2339
|
/**
|
|
2340
|
-
* @param {
|
|
2340
|
+
* @param {Role} role
|
|
2341
2341
|
* @returns {string}
|
|
2342
2342
|
*/
|
|
2343
2343
|
get_fleet_id_by_role(role) {
|
|
@@ -2468,8 +2468,8 @@ export class Org {
|
|
|
2468
2468
|
}
|
|
2469
2469
|
/**
|
|
2470
2470
|
* @param {Ship} ship
|
|
2471
|
-
* @param {
|
|
2472
|
-
* @returns {
|
|
2471
|
+
* @param {Formation} formation
|
|
2472
|
+
* @returns {WarfareShipEnvironment}
|
|
2473
2473
|
*/
|
|
2474
2474
|
create_warfare_ship_environment(ship, formation) {
|
|
2475
2475
|
_assertClass(ship, Ship);
|
|
@@ -2513,7 +2513,7 @@ export class Ship {
|
|
|
2513
2513
|
get id() {
|
|
2514
2514
|
try {
|
|
2515
2515
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2516
|
-
wasm.
|
|
2516
|
+
wasm.__wbg_get_airsquadron_id(retptr, this.ptr);
|
|
2517
2517
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2518
2518
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2519
2519
|
return getStringFromWasm0(r0, r1);
|
|
@@ -2528,14 +2528,14 @@ export class Ship {
|
|
|
2528
2528
|
set id(arg0) {
|
|
2529
2529
|
var ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2530
2530
|
var len0 = WASM_VECTOR_LEN;
|
|
2531
|
-
wasm.
|
|
2531
|
+
wasm.__wbg_set_airsquadron_id(this.ptr, ptr0, len0);
|
|
2532
2532
|
}
|
|
2533
2533
|
/**
|
|
2534
2534
|
*/
|
|
2535
2535
|
get xxh3() {
|
|
2536
2536
|
try {
|
|
2537
2537
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2538
|
-
wasm.
|
|
2538
|
+
wasm.__wbg_get_airsquadron_xxh3(retptr, this.ptr);
|
|
2539
2539
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2540
2540
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2541
2541
|
u32CvtShim[0] = r0;
|
|
@@ -2553,7 +2553,7 @@ export class Ship {
|
|
|
2553
2553
|
uint64CvtShim[0] = arg0;
|
|
2554
2554
|
const low0 = u32CvtShim[0];
|
|
2555
2555
|
const high0 = u32CvtShim[1];
|
|
2556
|
-
wasm.
|
|
2556
|
+
wasm.__wbg_set_airsquadron_xxh3(this.ptr, low0, high0);
|
|
2557
2557
|
}
|
|
2558
2558
|
/**
|
|
2559
2559
|
*/
|
|
@@ -2634,7 +2634,7 @@ export class Ship {
|
|
|
2634
2634
|
return takeObject(ret);
|
|
2635
2635
|
}
|
|
2636
2636
|
/**
|
|
2637
|
-
* @param {
|
|
2637
|
+
* @param {ShipType} arg0
|
|
2638
2638
|
*/
|
|
2639
2639
|
set ship_type(arg0) {
|
|
2640
2640
|
wasm.__wbg_set_ship_ship_type(this.ptr, addHeapObject(arg0));
|
|
@@ -2646,7 +2646,7 @@ export class Ship {
|
|
|
2646
2646
|
return takeObject(ret);
|
|
2647
2647
|
}
|
|
2648
2648
|
/**
|
|
2649
|
-
* @param {
|
|
2649
|
+
* @param {ShipClass} arg0
|
|
2650
2650
|
*/
|
|
2651
2651
|
set ship_class(arg0) {
|
|
2652
2652
|
wasm.__wbg_set_ship_ship_class(this.ptr, addHeapObject(arg0));
|
|
@@ -2767,14 +2767,14 @@ export class Ship {
|
|
|
2767
2767
|
return ret !== 0;
|
|
2768
2768
|
}
|
|
2769
2769
|
/**
|
|
2770
|
-
* @returns {
|
|
2770
|
+
* @returns {ShipState}
|
|
2771
2771
|
*/
|
|
2772
2772
|
state() {
|
|
2773
2773
|
var ret = wasm.ship_state(this.ptr);
|
|
2774
2774
|
return takeObject(ret);
|
|
2775
2775
|
}
|
|
2776
2776
|
/**
|
|
2777
|
-
* @returns {
|
|
2777
|
+
* @returns {ShipMeta}
|
|
2778
2778
|
*/
|
|
2779
2779
|
meta() {
|
|
2780
2780
|
var ret = wasm.ship_meta(this.ptr);
|
|
@@ -2860,28 +2860,28 @@ export class Ship {
|
|
|
2860
2860
|
return ret !== 0;
|
|
2861
2861
|
}
|
|
2862
2862
|
/**
|
|
2863
|
-
* @returns {
|
|
2863
|
+
* @returns {DamageState}
|
|
2864
2864
|
*/
|
|
2865
2865
|
damage_state() {
|
|
2866
2866
|
var ret = wasm.ship_damage_state(this.ptr);
|
|
2867
2867
|
return takeObject(ret);
|
|
2868
2868
|
}
|
|
2869
2869
|
/**
|
|
2870
|
-
* @returns {
|
|
2870
|
+
* @returns {MoraleState}
|
|
2871
2871
|
*/
|
|
2872
2872
|
morale_state() {
|
|
2873
2873
|
var ret = wasm.ship_morale_state(this.ptr);
|
|
2874
2874
|
return takeObject(ret);
|
|
2875
2875
|
}
|
|
2876
2876
|
/**
|
|
2877
|
-
* @returns {
|
|
2877
|
+
* @returns {ShipCategory}
|
|
2878
2878
|
*/
|
|
2879
2879
|
category() {
|
|
2880
2880
|
var ret = wasm.ship_category(this.ptr);
|
|
2881
2881
|
return takeObject(ret);
|
|
2882
2882
|
}
|
|
2883
2883
|
/**
|
|
2884
|
-
* @param {
|
|
2884
|
+
* @param {ShipAttr} attr
|
|
2885
2885
|
* @returns {boolean}
|
|
2886
2886
|
*/
|
|
2887
2887
|
has_attr(attr) {
|
|
@@ -2902,11 +2902,11 @@ export class Ship {
|
|
|
2902
2902
|
get_gear(key) {
|
|
2903
2903
|
var ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2904
2904
|
var len0 = WASM_VECTOR_LEN;
|
|
2905
|
-
var ret = wasm.
|
|
2905
|
+
var ret = wasm.airsquadron_get_gear(this.ptr, ptr0, len0);
|
|
2906
2906
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
2907
2907
|
}
|
|
2908
2908
|
/**
|
|
2909
|
-
* @param {
|
|
2909
|
+
* @param {DamageState} state
|
|
2910
2910
|
* @returns {number | undefined}
|
|
2911
2911
|
*/
|
|
2912
2912
|
get_damage_bound(state) {
|
|
@@ -3128,7 +3128,7 @@ export class Ship {
|
|
|
3128
3128
|
return ret;
|
|
3129
3129
|
}
|
|
3130
3130
|
/**
|
|
3131
|
-
* @param {
|
|
3131
|
+
* @param {AirWaveType} air_type
|
|
3132
3132
|
* @returns {number | undefined}
|
|
3133
3133
|
*/
|
|
3134
3134
|
fighter_power(air_type) {
|
|
@@ -3284,6 +3284,10 @@ export class Ship {
|
|
|
3284
3284
|
}
|
|
3285
3285
|
}
|
|
3286
3286
|
|
|
3287
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
|
3288
|
+
takeObject(arg0);
|
|
3289
|
+
};
|
|
3290
|
+
|
|
3287
3291
|
export function __wbindgen_json_serialize(arg0, arg1) {
|
|
3288
3292
|
const obj = getObject(arg1);
|
|
3289
3293
|
var ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -3293,10 +3297,6 @@ export function __wbindgen_json_serialize(arg0, arg1) {
|
|
|
3293
3297
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3294
3298
|
};
|
|
3295
3299
|
|
|
3296
|
-
export function __wbindgen_object_drop_ref(arg0) {
|
|
3297
|
-
takeObject(arg0);
|
|
3298
|
-
};
|
|
3299
|
-
|
|
3300
3300
|
export function __wbindgen_string_new(arg0, arg1) {
|
|
3301
3301
|
var ret = getStringFromWasm0(arg0, arg1);
|
|
3302
3302
|
return addHeapObject(ret);
|
|
@@ -3332,15 +3332,15 @@ export function __wbg_error_09919627ac0992f5(arg0, arg1) {
|
|
|
3332
3332
|
}
|
|
3333
3333
|
};
|
|
3334
3334
|
|
|
3335
|
-
export function
|
|
3336
|
-
getObject(arg0).
|
|
3335
|
+
export function __wbg_getRandomValues_fb6b088efb6bead2() { return handleError(function (arg0, arg1) {
|
|
3336
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3337
3337
|
}, arguments) };
|
|
3338
3338
|
|
|
3339
|
-
export function
|
|
3340
|
-
getObject(arg0).
|
|
3339
|
+
export function __wbg_randomFillSync_654a7797990fb8db() { return handleError(function (arg0, arg1, arg2) {
|
|
3340
|
+
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
3341
3341
|
}, arguments) };
|
|
3342
3342
|
|
|
3343
|
-
export function
|
|
3343
|
+
export function __wbg_process_70251ed1291754d5(arg0) {
|
|
3344
3344
|
var ret = getObject(arg0).process;
|
|
3345
3345
|
return addHeapObject(ret);
|
|
3346
3346
|
};
|
|
@@ -3351,12 +3351,12 @@ export function __wbindgen_is_object(arg0) {
|
|
|
3351
3351
|
return ret;
|
|
3352
3352
|
};
|
|
3353
3353
|
|
|
3354
|
-
export function
|
|
3354
|
+
export function __wbg_versions_b23f2588cdb2ddbb(arg0) {
|
|
3355
3355
|
var ret = getObject(arg0).versions;
|
|
3356
3356
|
return addHeapObject(ret);
|
|
3357
3357
|
};
|
|
3358
3358
|
|
|
3359
|
-
export function
|
|
3359
|
+
export function __wbg_node_61b8c9a82499895d(arg0) {
|
|
3360
3360
|
var ret = getObject(arg0).node;
|
|
3361
3361
|
return addHeapObject(ret);
|
|
3362
3362
|
};
|
|
@@ -3366,22 +3366,22 @@ export function __wbindgen_is_string(arg0) {
|
|
|
3366
3366
|
return ret;
|
|
3367
3367
|
};
|
|
3368
3368
|
|
|
3369
|
-
export function
|
|
3369
|
+
export function __wbg_static_accessor_NODE_MODULE_33b45247c55045b0() {
|
|
3370
3370
|
var ret = module;
|
|
3371
3371
|
return addHeapObject(ret);
|
|
3372
3372
|
};
|
|
3373
3373
|
|
|
3374
|
-
export function
|
|
3374
|
+
export function __wbg_require_2a93bc09fee45aca() { return handleError(function (arg0, arg1, arg2) {
|
|
3375
3375
|
var ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
|
|
3376
3376
|
return addHeapObject(ret);
|
|
3377
3377
|
}, arguments) };
|
|
3378
3378
|
|
|
3379
|
-
export function
|
|
3379
|
+
export function __wbg_crypto_2f56257a38275dbd(arg0) {
|
|
3380
3380
|
var ret = getObject(arg0).crypto;
|
|
3381
3381
|
return addHeapObject(ret);
|
|
3382
3382
|
};
|
|
3383
3383
|
|
|
3384
|
-
export function
|
|
3384
|
+
export function __wbg_msCrypto_d07655bf62361f21(arg0) {
|
|
3385
3385
|
var ret = getObject(arg0).msCrypto;
|
|
3386
3386
|
return addHeapObject(ret);
|
|
3387
3387
|
};
|