@shipload/sdk 2.0.0-rc7 → 2.0.0-rc9
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/lib/shipload.d.ts +415 -38
- package/lib/shipload.js +1433 -76
- package/lib/shipload.js.map +1 -1
- package/lib/shipload.m.js +1372 -77
- package/lib/shipload.m.js.map +1 -1
- package/package.json +6 -5
- package/src/capabilities/modules.ts +9 -5
- package/src/contracts/server.ts +279 -22
- package/src/data/capabilities.ts +372 -0
- package/src/data/categories.ts +57 -0
- package/src/data/colors.ts +25 -1
- package/src/data/locations.ts +53 -0
- package/src/data/recipes.ts +141 -26
- package/src/data/tiers.ts +41 -0
- package/src/derivation/crafting.ts +58 -1
- package/src/entities/container.ts +18 -0
- package/src/entities/makers.ts +6 -4
- package/src/entities/ship-deploy.ts +34 -1
- package/src/entities/warehouse.ts +7 -1
- package/src/index-module.ts +73 -4
- package/src/nft/description.ts +173 -0
- package/src/nft/deserializers.ts +81 -0
- package/src/nft/index.ts +2 -0
- package/src/resolution/resolve-item.ts +39 -10
- package/src/travel/travel.ts +17 -8
- package/src/types/entity.ts +1 -1
- package/src/types.ts +6 -6
package/lib/shipload.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _wharfkit_antelope from '@wharfkit/antelope';
|
|
2
|
-
import { Blob, ABI, Struct, Name, UInt64, Checksum256, UInt32, TimePointSec, Checksum256Type, UInt32Type, NameType, UInt64Type, Action, UInt8, UInt16, TimePoint,
|
|
2
|
+
import { Blob, ABI, Struct, Name, UInt64, Checksum256, UInt32, TimePointSec, Checksum256Type, UInt32Type, NameType, UInt64Type, Action, UInt8, Int64, UInt16, TimePoint, Bytes, Int32, UInt16Type, UInt8Type, TimePointType, Int64Type, Int32Type, Checksum512, APIClient } from '@wharfkit/antelope';
|
|
3
3
|
import * as _wharfkit_contract from '@wharfkit/contract';
|
|
4
4
|
import { Contract as Contract$2, PartialBy, ContractArgs, ActionOptions, Table } from '@wharfkit/contract';
|
|
5
5
|
import { ChainDefinition } from '@wharfkit/session';
|
|
@@ -165,6 +165,11 @@ declare namespace Types {
|
|
|
165
165
|
module_cargo_id: UInt64;
|
|
166
166
|
target_cargo_id: UInt64;
|
|
167
167
|
}
|
|
168
|
+
class addnexus extends Struct {
|
|
169
|
+
nexus_name: string;
|
|
170
|
+
x: Int64;
|
|
171
|
+
y: Int64;
|
|
172
|
+
}
|
|
168
173
|
class advance extends Struct {
|
|
169
174
|
reveal: string;
|
|
170
175
|
commit: Checksum256;
|
|
@@ -225,15 +230,9 @@ declare namespace Types {
|
|
|
225
230
|
class commit extends Struct {
|
|
226
231
|
commit: Checksum256;
|
|
227
232
|
}
|
|
228
|
-
class loader_stats extends Struct {
|
|
229
|
-
mass: UInt32;
|
|
230
|
-
thrust: UInt16;
|
|
231
|
-
quantity: UInt8;
|
|
232
|
-
}
|
|
233
233
|
class entity_defaults extends Struct {
|
|
234
234
|
warehouse_capacity: UInt32;
|
|
235
235
|
warehouse_z: UInt16;
|
|
236
|
-
warehouse_loaders: loader_stats;
|
|
237
236
|
container_hullmass: UInt32;
|
|
238
237
|
container_capacity: UInt32;
|
|
239
238
|
container_z: UInt16;
|
|
@@ -241,6 +240,9 @@ declare namespace Types {
|
|
|
241
240
|
class item_def extends Struct {
|
|
242
241
|
id: UInt16;
|
|
243
242
|
mass: UInt32;
|
|
243
|
+
type: UInt8;
|
|
244
|
+
subtype: UInt8;
|
|
245
|
+
tier: UInt8;
|
|
244
246
|
}
|
|
245
247
|
class game_config extends Struct {
|
|
246
248
|
version: UInt32;
|
|
@@ -315,6 +317,11 @@ declare namespace Types {
|
|
|
315
317
|
coordinates: coordinates;
|
|
316
318
|
energy: UInt16;
|
|
317
319
|
}
|
|
320
|
+
class loader_stats extends Struct {
|
|
321
|
+
mass: UInt32;
|
|
322
|
+
thrust: UInt16;
|
|
323
|
+
quantity: UInt8;
|
|
324
|
+
}
|
|
318
325
|
class movement_stats extends Struct {
|
|
319
326
|
thrust: UInt32;
|
|
320
327
|
drain: UInt16;
|
|
@@ -389,6 +396,8 @@ declare namespace Types {
|
|
|
389
396
|
entity_type: Name;
|
|
390
397
|
entity_id: UInt64;
|
|
391
398
|
}
|
|
399
|
+
class getitemdata extends Struct {
|
|
400
|
+
}
|
|
392
401
|
class getitems extends Struct {
|
|
393
402
|
}
|
|
394
403
|
class getlocation extends Struct {
|
|
@@ -399,14 +408,27 @@ declare namespace Types {
|
|
|
399
408
|
x: Int64;
|
|
400
409
|
y: Int64;
|
|
401
410
|
}
|
|
411
|
+
class getmodules extends Struct {
|
|
412
|
+
}
|
|
402
413
|
class getnearby extends Struct {
|
|
403
414
|
entity_type: Name;
|
|
404
415
|
entity_id: UInt64;
|
|
405
416
|
recharge: boolean;
|
|
406
417
|
}
|
|
418
|
+
class getnftinfo extends Struct {
|
|
419
|
+
}
|
|
407
420
|
class getplayer extends Struct {
|
|
408
421
|
account: Name;
|
|
409
422
|
}
|
|
423
|
+
class getrecipe extends Struct {
|
|
424
|
+
output_item_id: UInt16;
|
|
425
|
+
}
|
|
426
|
+
class getrecipes extends Struct {
|
|
427
|
+
lower_bound: UInt16;
|
|
428
|
+
limit: UInt8;
|
|
429
|
+
}
|
|
430
|
+
class getresources extends Struct {
|
|
431
|
+
}
|
|
410
432
|
class getstratum extends Struct {
|
|
411
433
|
x: Int64;
|
|
412
434
|
y: Int64;
|
|
@@ -431,6 +453,38 @@ declare namespace Types {
|
|
|
431
453
|
class init extends Struct {
|
|
432
454
|
seed: Checksum256;
|
|
433
455
|
}
|
|
456
|
+
class recipe_input extends Struct {
|
|
457
|
+
item_id: UInt16;
|
|
458
|
+
category: UInt8;
|
|
459
|
+
quantity: UInt32;
|
|
460
|
+
}
|
|
461
|
+
class stat_source extends Struct {
|
|
462
|
+
input_index: UInt8;
|
|
463
|
+
input_stat_index: UInt8;
|
|
464
|
+
}
|
|
465
|
+
class stat_slot_response extends Struct {
|
|
466
|
+
sources: stat_source[];
|
|
467
|
+
}
|
|
468
|
+
class recipe_item_info extends Struct {
|
|
469
|
+
id: UInt16;
|
|
470
|
+
mass: UInt32;
|
|
471
|
+
}
|
|
472
|
+
class recipe_response extends Struct {
|
|
473
|
+
output_item_id: UInt16;
|
|
474
|
+
output_mass: UInt32;
|
|
475
|
+
inputs: recipe_input[];
|
|
476
|
+
stat_slots: stat_slot_response[];
|
|
477
|
+
blend_weights: Bytes;
|
|
478
|
+
output_item: recipe_item_info;
|
|
479
|
+
input_items: recipe_item_info[];
|
|
480
|
+
}
|
|
481
|
+
class recipes_result extends Struct {
|
|
482
|
+
recipes: recipe_response[];
|
|
483
|
+
}
|
|
484
|
+
class itemdata_result extends Struct {
|
|
485
|
+
items: item_def[];
|
|
486
|
+
recipes: recipes_result;
|
|
487
|
+
}
|
|
434
488
|
class items_info extends Struct {
|
|
435
489
|
items: item_def[];
|
|
436
490
|
}
|
|
@@ -466,6 +520,15 @@ declare namespace Types {
|
|
|
466
520
|
cargo: cargo_item[];
|
|
467
521
|
schedule?: schedule;
|
|
468
522
|
}
|
|
523
|
+
class module_info extends Struct {
|
|
524
|
+
id: UInt16;
|
|
525
|
+
mass: UInt32;
|
|
526
|
+
module_type: UInt8;
|
|
527
|
+
tier: UInt8;
|
|
528
|
+
}
|
|
529
|
+
class modules_result extends Struct {
|
|
530
|
+
modules: module_info[];
|
|
531
|
+
}
|
|
469
532
|
class nearby_system extends Struct {
|
|
470
533
|
distance: UInt64;
|
|
471
534
|
energy_cost: UInt64;
|
|
@@ -479,6 +542,33 @@ declare namespace Types {
|
|
|
479
542
|
max_energy: UInt16;
|
|
480
543
|
systems: nearby_system[];
|
|
481
544
|
}
|
|
545
|
+
class nexus_row extends Struct {
|
|
546
|
+
id: UInt64;
|
|
547
|
+
owner: Name;
|
|
548
|
+
name: string;
|
|
549
|
+
coordinates: coordinates;
|
|
550
|
+
}
|
|
551
|
+
class schema_field extends Struct {
|
|
552
|
+
name: string;
|
|
553
|
+
field_type: string;
|
|
554
|
+
}
|
|
555
|
+
class nft_schema_def extends Struct {
|
|
556
|
+
schema_name: Name;
|
|
557
|
+
fields: schema_field[];
|
|
558
|
+
}
|
|
559
|
+
class nft_template_def extends Struct {
|
|
560
|
+
item_id: UInt16;
|
|
561
|
+
schema_name: Name;
|
|
562
|
+
}
|
|
563
|
+
class nftconfig_row extends Struct {
|
|
564
|
+
item_id: UInt16;
|
|
565
|
+
template_id: Int32;
|
|
566
|
+
schema_name: Name;
|
|
567
|
+
}
|
|
568
|
+
class nftinfo_result extends Struct {
|
|
569
|
+
schemas: nft_schema_def[];
|
|
570
|
+
templates: nft_template_def[];
|
|
571
|
+
}
|
|
482
572
|
class task_event extends Struct {
|
|
483
573
|
event_type: UInt8;
|
|
484
574
|
owner: Name;
|
|
@@ -525,17 +615,29 @@ declare namespace Types {
|
|
|
525
615
|
entitygroup?: UInt64;
|
|
526
616
|
group_members?: entity_ref[];
|
|
527
617
|
}
|
|
618
|
+
class resource_info extends Struct {
|
|
619
|
+
id: UInt16;
|
|
620
|
+
mass: UInt32;
|
|
621
|
+
category: UInt8;
|
|
622
|
+
tier: UInt8;
|
|
623
|
+
}
|
|
528
624
|
class resource_stats extends Struct {
|
|
529
625
|
stat1: UInt16;
|
|
530
626
|
stat2: UInt16;
|
|
531
627
|
stat3: UInt16;
|
|
532
628
|
}
|
|
629
|
+
class resources_result extends Struct {
|
|
630
|
+
resources: resource_info[];
|
|
631
|
+
}
|
|
533
632
|
class rmmodule extends Struct {
|
|
534
633
|
entity_type: Name;
|
|
535
634
|
entity_id: UInt64;
|
|
536
635
|
module_index: UInt8;
|
|
537
636
|
target_cargo_id: UInt64;
|
|
538
637
|
}
|
|
638
|
+
class rmnftcfg extends Struct {
|
|
639
|
+
item_id: UInt16;
|
|
640
|
+
}
|
|
539
641
|
class salt extends Struct {
|
|
540
642
|
salt: UInt64;
|
|
541
643
|
}
|
|
@@ -543,10 +645,16 @@ declare namespace Types {
|
|
|
543
645
|
key: Name;
|
|
544
646
|
value: UInt64;
|
|
545
647
|
}
|
|
648
|
+
class setnftcfg extends Struct {
|
|
649
|
+
item_id: UInt16;
|
|
650
|
+
template_id: Int32;
|
|
651
|
+
schema_name: Name;
|
|
652
|
+
}
|
|
546
653
|
class ship_row extends Struct {
|
|
547
654
|
id: UInt64;
|
|
548
655
|
owner: Name;
|
|
549
656
|
name: string;
|
|
657
|
+
seed: UInt64;
|
|
550
658
|
coordinates: coordinates;
|
|
551
659
|
hullmass?: UInt32;
|
|
552
660
|
capacity?: UInt32;
|
|
@@ -617,10 +725,13 @@ declare namespace Types {
|
|
|
617
725
|
id: UInt64;
|
|
618
726
|
owner: Name;
|
|
619
727
|
name: string;
|
|
728
|
+
seed: UInt64;
|
|
620
729
|
coordinates: coordinates;
|
|
621
|
-
|
|
730
|
+
hullmass?: UInt32;
|
|
731
|
+
capacity?: UInt32;
|
|
622
732
|
cargomass: UInt32;
|
|
623
|
-
loaders
|
|
733
|
+
loaders?: loader_stats;
|
|
734
|
+
modules: module_entry[];
|
|
624
735
|
schedule?: schedule;
|
|
625
736
|
}
|
|
626
737
|
class warp extends Struct {
|
|
@@ -633,12 +744,21 @@ declare namespace Types {
|
|
|
633
744
|
}
|
|
634
745
|
class wipesequence extends Struct {
|
|
635
746
|
}
|
|
747
|
+
class wrap extends Struct {
|
|
748
|
+
owner: Name;
|
|
749
|
+
entity_type: Name;
|
|
750
|
+
entity_id: UInt64;
|
|
751
|
+
cargo_id: UInt64;
|
|
752
|
+
quantity: UInt64;
|
|
753
|
+
}
|
|
636
754
|
}
|
|
637
755
|
declare const TableMap: {
|
|
638
756
|
cargo: typeof Types.cargo_row;
|
|
639
757
|
container: typeof Types.container_row;
|
|
640
758
|
entitygroup: typeof Types.entitygroup_row;
|
|
641
759
|
location: typeof Types.location_row;
|
|
760
|
+
nexus: typeof Types.nexus_row;
|
|
761
|
+
nftconfig: typeof Types.nftconfig_row;
|
|
642
762
|
player: typeof Types.player_row;
|
|
643
763
|
reserve: typeof Types.reserve_row;
|
|
644
764
|
sequence: typeof Types.sequence_row;
|
|
@@ -652,6 +772,8 @@ interface TableTypes {
|
|
|
652
772
|
container: Types.container_row;
|
|
653
773
|
entitygroup: Types.entitygroup_row;
|
|
654
774
|
location: Types.location_row;
|
|
775
|
+
nexus: Types.nexus_row;
|
|
776
|
+
nftconfig: Types.nftconfig_row;
|
|
655
777
|
player: Types.player_row;
|
|
656
778
|
reserve: Types.reserve_row;
|
|
657
779
|
sequence: Types.sequence_row;
|
|
@@ -686,19 +808,16 @@ declare namespace ActionParams {
|
|
|
686
808
|
interface entity_defaults {
|
|
687
809
|
warehouse_capacity: UInt32Type;
|
|
688
810
|
warehouse_z: UInt16Type;
|
|
689
|
-
warehouse_loaders: Type.loader_stats;
|
|
690
811
|
container_hullmass: UInt32Type;
|
|
691
812
|
container_capacity: UInt32Type;
|
|
692
813
|
container_z: UInt16Type;
|
|
693
814
|
}
|
|
694
|
-
interface loader_stats {
|
|
695
|
-
mass: UInt32Type;
|
|
696
|
-
thrust: UInt16Type;
|
|
697
|
-
quantity: UInt8Type;
|
|
698
|
-
}
|
|
699
815
|
interface item_def {
|
|
700
816
|
id: UInt16Type;
|
|
701
817
|
mass: UInt32Type;
|
|
818
|
+
type: UInt8Type;
|
|
819
|
+
subtype: UInt8Type;
|
|
820
|
+
tier: UInt8Type;
|
|
702
821
|
}
|
|
703
822
|
interface entity_ref {
|
|
704
823
|
entity_type: NameType;
|
|
@@ -738,6 +857,11 @@ declare namespace ActionParams {
|
|
|
738
857
|
module_cargo_id: UInt64Type;
|
|
739
858
|
target_cargo_id: UInt64Type;
|
|
740
859
|
}
|
|
860
|
+
interface addnexus {
|
|
861
|
+
nexus_name: string;
|
|
862
|
+
x: Int64Type;
|
|
863
|
+
y: Int64Type;
|
|
864
|
+
}
|
|
741
865
|
interface advance {
|
|
742
866
|
reveal: string;
|
|
743
867
|
commit: Checksum256Type;
|
|
@@ -807,6 +931,8 @@ declare namespace ActionParams {
|
|
|
807
931
|
entity_type: NameType;
|
|
808
932
|
entity_id: UInt64Type;
|
|
809
933
|
}
|
|
934
|
+
interface getitemdata {
|
|
935
|
+
}
|
|
810
936
|
interface getitems {
|
|
811
937
|
}
|
|
812
938
|
interface getlocation {
|
|
@@ -817,14 +943,27 @@ declare namespace ActionParams {
|
|
|
817
943
|
x: Int64Type;
|
|
818
944
|
y: Int64Type;
|
|
819
945
|
}
|
|
946
|
+
interface getmodules {
|
|
947
|
+
}
|
|
820
948
|
interface getnearby {
|
|
821
949
|
entity_type: NameType;
|
|
822
950
|
entity_id: UInt64Type;
|
|
823
951
|
recharge: boolean;
|
|
824
952
|
}
|
|
953
|
+
interface getnftinfo {
|
|
954
|
+
}
|
|
825
955
|
interface getplayer {
|
|
826
956
|
account: NameType;
|
|
827
957
|
}
|
|
958
|
+
interface getrecipe {
|
|
959
|
+
output_item_id: UInt16Type;
|
|
960
|
+
}
|
|
961
|
+
interface getrecipes {
|
|
962
|
+
lower_bound: UInt16Type;
|
|
963
|
+
limit: UInt8Type;
|
|
964
|
+
}
|
|
965
|
+
interface getresources {
|
|
966
|
+
}
|
|
828
967
|
interface getstratum {
|
|
829
968
|
x: Int64Type;
|
|
830
969
|
y: Int64Type;
|
|
@@ -870,9 +1009,17 @@ declare namespace ActionParams {
|
|
|
870
1009
|
module_index: UInt8Type;
|
|
871
1010
|
target_cargo_id: UInt64Type;
|
|
872
1011
|
}
|
|
1012
|
+
interface rmnftcfg {
|
|
1013
|
+
item_id: UInt16Type;
|
|
1014
|
+
}
|
|
873
1015
|
interface salt {
|
|
874
1016
|
salt: UInt64Type;
|
|
875
1017
|
}
|
|
1018
|
+
interface setnftcfg {
|
|
1019
|
+
item_id: UInt16Type;
|
|
1020
|
+
template_id: Int32Type;
|
|
1021
|
+
schema_name: NameType;
|
|
1022
|
+
}
|
|
876
1023
|
interface spawncargo {
|
|
877
1024
|
entity_id: UInt64Type;
|
|
878
1025
|
item_id: UInt64Type;
|
|
@@ -909,9 +1056,17 @@ declare namespace ActionParams {
|
|
|
909
1056
|
}
|
|
910
1057
|
interface wipesequence {
|
|
911
1058
|
}
|
|
1059
|
+
interface wrap {
|
|
1060
|
+
owner: NameType;
|
|
1061
|
+
entity_type: NameType;
|
|
1062
|
+
entity_id: UInt64Type;
|
|
1063
|
+
cargo_id: UInt64Type;
|
|
1064
|
+
quantity: UInt64Type;
|
|
1065
|
+
}
|
|
912
1066
|
}
|
|
913
1067
|
interface ActionNameParams {
|
|
914
1068
|
addmodule: ActionParams.addmodule;
|
|
1069
|
+
addnexus: ActionParams.addnexus;
|
|
915
1070
|
advance: ActionParams.advance;
|
|
916
1071
|
blend: ActionParams.blend;
|
|
917
1072
|
cancel: ActionParams.cancel;
|
|
@@ -927,11 +1082,17 @@ interface ActionNameParams {
|
|
|
927
1082
|
getconfig: ActionParams.getconfig;
|
|
928
1083
|
getentities: ActionParams.getentities;
|
|
929
1084
|
getentity: ActionParams.getentity;
|
|
1085
|
+
getitemdata: ActionParams.getitemdata;
|
|
930
1086
|
getitems: ActionParams.getitems;
|
|
931
1087
|
getlocation: ActionParams.getlocation;
|
|
932
1088
|
getlocdata: ActionParams.getlocdata;
|
|
1089
|
+
getmodules: ActionParams.getmodules;
|
|
933
1090
|
getnearby: ActionParams.getnearby;
|
|
1091
|
+
getnftinfo: ActionParams.getnftinfo;
|
|
934
1092
|
getplayer: ActionParams.getplayer;
|
|
1093
|
+
getrecipe: ActionParams.getrecipe;
|
|
1094
|
+
getrecipes: ActionParams.getrecipes;
|
|
1095
|
+
getresources: ActionParams.getresources;
|
|
935
1096
|
getstratum: ActionParams.getstratum;
|
|
936
1097
|
getsummaries: ActionParams.getsummaries;
|
|
937
1098
|
grouptravel: ActionParams.grouptravel;
|
|
@@ -943,7 +1104,9 @@ interface ActionNameParams {
|
|
|
943
1104
|
recharge: ActionParams.recharge;
|
|
944
1105
|
resolve: ActionParams.resolve;
|
|
945
1106
|
rmmodule: ActionParams.rmmodule;
|
|
1107
|
+
rmnftcfg: ActionParams.rmnftcfg;
|
|
946
1108
|
salt: ActionParams.salt;
|
|
1109
|
+
setnftcfg: ActionParams.setnftcfg;
|
|
947
1110
|
spawncargo: ActionParams.spawncargo;
|
|
948
1111
|
spawnseeded: ActionParams.spawnseeded;
|
|
949
1112
|
transfer: ActionParams.transfer;
|
|
@@ -951,6 +1114,7 @@ interface ActionNameParams {
|
|
|
951
1114
|
warp: ActionParams.warp;
|
|
952
1115
|
wipe: ActionParams.wipe;
|
|
953
1116
|
wipesequence: ActionParams.wipesequence;
|
|
1117
|
+
wrap: ActionParams.wrap;
|
|
954
1118
|
}
|
|
955
1119
|
type ActionNames = keyof ActionNameParams;
|
|
956
1120
|
interface ActionReturnValues {
|
|
@@ -961,11 +1125,17 @@ interface ActionReturnValues {
|
|
|
961
1125
|
getconfig: Types.game_config;
|
|
962
1126
|
getentities: Types.entity_info[];
|
|
963
1127
|
getentity: Types.entity_info;
|
|
1128
|
+
getitemdata: Types.itemdata_result;
|
|
964
1129
|
getitems: Types.items_info;
|
|
965
1130
|
getlocation: Types.location_info;
|
|
966
1131
|
getlocdata: Types.location_derived;
|
|
1132
|
+
getmodules: Types.modules_result;
|
|
967
1133
|
getnearby: Types.nearby_info;
|
|
1134
|
+
getnftinfo: Types.nftinfo_result;
|
|
968
1135
|
getplayer: Types.player_info;
|
|
1136
|
+
getrecipe: Types.recipes_result;
|
|
1137
|
+
getrecipes: Types.recipes_result;
|
|
1138
|
+
getresources: Types.resources_result;
|
|
969
1139
|
getstratum: Types.stratum_data;
|
|
970
1140
|
getsummaries: Types.entity_summary[];
|
|
971
1141
|
grouptravel: Types.task_results;
|
|
@@ -976,6 +1146,7 @@ interface ActionReturnValues {
|
|
|
976
1146
|
transfer: Types.task_results;
|
|
977
1147
|
travel: Types.task_results;
|
|
978
1148
|
warp: Types.task_results;
|
|
1149
|
+
wrap: Types.task_results;
|
|
979
1150
|
}
|
|
980
1151
|
type ActionReturnNames = keyof ActionReturnValues;
|
|
981
1152
|
declare class Contract extends Contract$2 {
|
|
@@ -1073,12 +1244,12 @@ declare const MAX_ORBITAL_ALTITUDE = 3000;
|
|
|
1073
1244
|
declare const BASE_ORBITAL_MASS = 100000;
|
|
1074
1245
|
interface ShipLike {
|
|
1075
1246
|
coordinates: Types.coordinates;
|
|
1076
|
-
hullmass
|
|
1077
|
-
energy
|
|
1078
|
-
engines
|
|
1079
|
-
generator
|
|
1080
|
-
loaders
|
|
1081
|
-
capacity
|
|
1247
|
+
hullmass?: UInt32;
|
|
1248
|
+
energy?: UInt16;
|
|
1249
|
+
engines?: Types.movement_stats;
|
|
1250
|
+
generator?: Types.energy_stats;
|
|
1251
|
+
loaders?: Types.loader_stats;
|
|
1252
|
+
capacity?: UInt32;
|
|
1082
1253
|
}
|
|
1083
1254
|
interface CargoMassInfo {
|
|
1084
1255
|
item_id: UInt16Type;
|
|
@@ -1635,8 +1806,9 @@ interface WarehouseStateInput {
|
|
|
1635
1806
|
y: number;
|
|
1636
1807
|
z?: number;
|
|
1637
1808
|
};
|
|
1809
|
+
hullmass?: number;
|
|
1638
1810
|
capacity: number;
|
|
1639
|
-
loaders
|
|
1811
|
+
loaders?: Types.loader_stats;
|
|
1640
1812
|
schedule?: Types.schedule;
|
|
1641
1813
|
cargo?: Types.cargo_item[];
|
|
1642
1814
|
}
|
|
@@ -1658,6 +1830,7 @@ declare class Warehouse extends Types.entity_info {
|
|
|
1658
1830
|
get isFull(): boolean;
|
|
1659
1831
|
getCargoForItem(goodId: UInt64Type): EntityInventory | undefined;
|
|
1660
1832
|
get orbitalAltitude(): number;
|
|
1833
|
+
get totalMass(): UInt64;
|
|
1661
1834
|
}
|
|
1662
1835
|
|
|
1663
1836
|
interface ContainerStateInput {
|
|
@@ -1693,6 +1866,10 @@ declare function computeContainerCapabilities(stats: Record<string, number>): {
|
|
|
1693
1866
|
hullmass: number;
|
|
1694
1867
|
capacity: number;
|
|
1695
1868
|
};
|
|
1869
|
+
declare function computeContainerT2Capabilities(stats: Record<string, number>): {
|
|
1870
|
+
hullmass: number;
|
|
1871
|
+
capacity: number;
|
|
1872
|
+
};
|
|
1696
1873
|
|
|
1697
1874
|
type EntityType = 'ship' | 'warehouse' | 'container' | 'location';
|
|
1698
1875
|
declare class EntitiesManager extends BaseManager {
|
|
@@ -1817,6 +1994,7 @@ interface CategoryStacks {
|
|
|
1817
1994
|
stacks: StackInput[];
|
|
1818
1995
|
}
|
|
1819
1996
|
declare function encodeStats(values: number[]): bigint;
|
|
1997
|
+
declare function decodeStat(seed: bigint, index: number): number;
|
|
1820
1998
|
declare function decodeStats(seed: bigint, count: number): number[];
|
|
1821
1999
|
declare function decodeCraftedItemStats(itemId: number, seed: bigint): Record<string, number>;
|
|
1822
2000
|
declare function blendStacks(stacks: StackInput[], statKey: string): number;
|
|
@@ -1835,6 +2013,12 @@ declare function computeEntityStats(entityRecipeId: string, componentStacks: Rec
|
|
|
1835
2013
|
key: string;
|
|
1836
2014
|
value: number;
|
|
1837
2015
|
}[];
|
|
2016
|
+
declare const categoryItemMass: Record<string, number>;
|
|
2017
|
+
declare function computeInputMass(itemId: string | number, itemType: 'component' | 'module' | 'entity'): number;
|
|
2018
|
+
declare function blendCrossGroup(sources: {
|
|
2019
|
+
value: number;
|
|
2020
|
+
weight: number;
|
|
2021
|
+
}[]): number;
|
|
1838
2022
|
declare function blendCargoStacks(itemId: number, stacks: {
|
|
1839
2023
|
quantity: number;
|
|
1840
2024
|
seed: UInt64;
|
|
@@ -1969,7 +2153,7 @@ interface Entity {
|
|
|
1969
2153
|
type ShipEntity = Entity & Partial<MovementCapability> & Partial<EnergyCapability> & StorageCapability & Partial<LoaderCapability> & MassCapability & ScheduleCapability & {
|
|
1970
2154
|
extractor?: Types.extractor_stats;
|
|
1971
2155
|
};
|
|
1972
|
-
type WarehouseEntity = Entity & StorageCapability & LoaderCapability & ScheduleCapability;
|
|
2156
|
+
type WarehouseEntity = Entity & StorageCapability & Partial<LoaderCapability> & MassCapability & ScheduleCapability;
|
|
1973
2157
|
type ContainerEntity = Entity & StorageCapability & MassCapability & ScheduleCapability;
|
|
1974
2158
|
type AnyEntity = ShipEntity | WarehouseEntity | ContainerEntity;
|
|
1975
2159
|
|
|
@@ -1998,11 +2182,12 @@ declare function capsHasCrafter(caps: EntityCapabilities): boolean;
|
|
|
1998
2182
|
declare function calc_craft_duration(speed: number, totalInputMass: number, quantity: number): UInt32;
|
|
1999
2183
|
declare function calc_craft_energy(drain: number, duration: number): UInt16;
|
|
2000
2184
|
|
|
2001
|
-
declare const ITEM_ENGINE_T1 =
|
|
2002
|
-
declare const ITEM_GENERATOR_T1 =
|
|
2003
|
-
declare const ITEM_EXTRACTOR_T1 =
|
|
2004
|
-
declare const ITEM_LOADER_T1 =
|
|
2005
|
-
declare const ITEM_MANUFACTURING_T1 =
|
|
2185
|
+
declare const ITEM_ENGINE_T1 = 10100;
|
|
2186
|
+
declare const ITEM_GENERATOR_T1 = 10101;
|
|
2187
|
+
declare const ITEM_EXTRACTOR_T1 = 10102;
|
|
2188
|
+
declare const ITEM_LOADER_T1 = 10103;
|
|
2189
|
+
declare const ITEM_MANUFACTURING_T1 = 10104;
|
|
2190
|
+
declare const ITEM_STORAGE_T1 = 10105;
|
|
2006
2191
|
declare const MODULE_ANY = 0;
|
|
2007
2192
|
declare const MODULE_ENGINE = 1;
|
|
2008
2193
|
declare const MODULE_GENERATOR = 2;
|
|
@@ -2011,6 +2196,7 @@ declare const MODULE_LOADER = 4;
|
|
|
2011
2196
|
declare const MODULE_WARP = 5;
|
|
2012
2197
|
declare const MODULE_CRAFTER = 6;
|
|
2013
2198
|
declare const MODULE_LAUNCHER = 7;
|
|
2199
|
+
declare const MODULE_STORAGE = 8;
|
|
2014
2200
|
interface CargoSeed {
|
|
2015
2201
|
itemId: number;
|
|
2016
2202
|
seed: bigint;
|
|
@@ -2028,18 +2214,74 @@ declare const tierColors: Record<ResourceTier, string>;
|
|
|
2028
2214
|
declare const categoryIcons: Record<ResourceCategory, string>;
|
|
2029
2215
|
declare const componentIcon = "\u25A3";
|
|
2030
2216
|
declare const moduleIcon = "\u2B22";
|
|
2217
|
+
declare const itemIcons: Record<number, string>;
|
|
2031
2218
|
|
|
2032
|
-
|
|
2033
|
-
declare const
|
|
2034
|
-
declare const
|
|
2035
|
-
declare const
|
|
2036
|
-
declare const
|
|
2219
|
+
type CraftedItemCategory = 'component' | 'module' | 'entity' | 'resource';
|
|
2220
|
+
declare const ITEM_TYPE_RESOURCE = 0;
|
|
2221
|
+
declare const ITEM_TYPE_COMPONENT = 1;
|
|
2222
|
+
declare const ITEM_TYPE_MODULE = 2;
|
|
2223
|
+
declare const ITEM_TYPE_ENTITY = 3;
|
|
2224
|
+
declare function itemTypeCode(id: number): number;
|
|
2225
|
+
declare function itemTier(id: number): number;
|
|
2226
|
+
declare function itemOffset(id: number): number;
|
|
2227
|
+
declare function itemCategory(id: number): CraftedItemCategory;
|
|
2228
|
+
declare function isRelatedItem(a: number, b: number): boolean;
|
|
2229
|
+
declare function isCraftedItem(id: number): boolean;
|
|
2230
|
+
|
|
2231
|
+
interface CategoryInfo {
|
|
2232
|
+
id: ResourceCategory;
|
|
2233
|
+
name: string;
|
|
2234
|
+
label: string;
|
|
2235
|
+
description: string;
|
|
2236
|
+
color: string;
|
|
2237
|
+
}
|
|
2238
|
+
declare function getCategoryInfo(): CategoryInfo[];
|
|
2239
|
+
declare function getCategoryInfo(id: ResourceCategory): CategoryInfo | undefined;
|
|
2240
|
+
|
|
2241
|
+
interface PlanetSubtypeInfo {
|
|
2242
|
+
id: number;
|
|
2243
|
+
label: string;
|
|
2244
|
+
description: string;
|
|
2245
|
+
paletteType: string;
|
|
2246
|
+
}
|
|
2247
|
+
declare function getPlanetSubtypes(): PlanetSubtypeInfo[];
|
|
2248
|
+
declare function getPlanetSubtype(id: number): PlanetSubtypeInfo | undefined;
|
|
2249
|
+
|
|
2250
|
+
interface CapabilityAttribute {
|
|
2251
|
+
capability: string;
|
|
2252
|
+
attribute: string;
|
|
2253
|
+
description: string;
|
|
2254
|
+
}
|
|
2255
|
+
interface StatMapping {
|
|
2256
|
+
stat: string;
|
|
2257
|
+
capability: string;
|
|
2258
|
+
attribute: string;
|
|
2259
|
+
rationale: string;
|
|
2260
|
+
}
|
|
2261
|
+
declare const capabilityNames: string[];
|
|
2262
|
+
declare const capabilityAttributes: CapabilityAttribute[];
|
|
2263
|
+
declare const statMappings: StatMapping[];
|
|
2264
|
+
declare function isInvertedAttribute(attribute: string): boolean;
|
|
2265
|
+
declare function getCapabilityAttributes(capability?: string): CapabilityAttribute[];
|
|
2266
|
+
declare function getStatMappings(): StatMapping[];
|
|
2267
|
+
declare function getStatMappingsForStat(stat: string): StatMapping[];
|
|
2268
|
+
declare function getStatMappingsForCapability(capability: string): StatMapping[];
|
|
2269
|
+
|
|
2270
|
+
declare const ITEM_DRILL_SHAFT = 10005;
|
|
2271
|
+
declare const ITEM_EXTRACTION_PROBE = 10006;
|
|
2272
|
+
declare const ITEM_CARGO_ARM = 10007;
|
|
2273
|
+
declare const ITEM_TOOL_BIT = 10008;
|
|
2274
|
+
declare const ITEM_REACTION_CHAMBER = 10009;
|
|
2037
2275
|
declare const ITEM_HULL_PLATES = 10001;
|
|
2038
2276
|
declare const ITEM_CARGO_LINING = 10002;
|
|
2039
|
-
declare const
|
|
2040
|
-
declare const ITEM_THRUSTER_CORE =
|
|
2041
|
-
declare const ITEM_POWER_CELL =
|
|
2042
|
-
declare const ITEM_SHIP_T1_PACKED =
|
|
2277
|
+
declare const ITEM_CONTAINER_T1_PACKED = 10200;
|
|
2278
|
+
declare const ITEM_THRUSTER_CORE = 10003;
|
|
2279
|
+
declare const ITEM_POWER_CELL = 10004;
|
|
2280
|
+
declare const ITEM_SHIP_T1_PACKED = 10201;
|
|
2281
|
+
declare const ITEM_WAREHOUSE_T1_PACKED = 10202;
|
|
2282
|
+
declare const ITEM_HULL_PLATES_T2 = 20001;
|
|
2283
|
+
declare const ITEM_CARGO_LINING_T2 = 20002;
|
|
2284
|
+
declare const ITEM_CONTAINER_T2_PACKED = 20200;
|
|
2043
2285
|
interface RecipeInput {
|
|
2044
2286
|
category?: ResourceCategory;
|
|
2045
2287
|
itemId?: number;
|
|
@@ -2062,6 +2304,10 @@ interface ComponentDefinition {
|
|
|
2062
2304
|
name: string;
|
|
2063
2305
|
}[];
|
|
2064
2306
|
}
|
|
2307
|
+
interface ModuleSlot {
|
|
2308
|
+
type: number;
|
|
2309
|
+
label?: string;
|
|
2310
|
+
}
|
|
2065
2311
|
interface EntityRecipe {
|
|
2066
2312
|
id: string;
|
|
2067
2313
|
name: string;
|
|
@@ -2074,6 +2320,7 @@ interface EntityRecipe {
|
|
|
2074
2320
|
sourceComponentId: number;
|
|
2075
2321
|
sourceStatKey: string;
|
|
2076
2322
|
}[];
|
|
2323
|
+
moduleSlots?: ModuleSlot[];
|
|
2077
2324
|
}
|
|
2078
2325
|
interface CraftableItem {
|
|
2079
2326
|
type: 'component' | 'entity' | 'module';
|
|
@@ -2104,6 +2351,7 @@ declare function getModuleRecipeByItemId(itemId: number): ModuleRecipe | undefin
|
|
|
2104
2351
|
declare function getComponentById(id: number): ComponentDefinition | undefined;
|
|
2105
2352
|
declare function getEntityRecipe(id: string): EntityRecipe | undefined;
|
|
2106
2353
|
declare function getEntityRecipeByItemId(itemId: number): EntityRecipe | undefined;
|
|
2354
|
+
declare function getEntitySlotLayout(packedItemId: number): ModuleSlot[];
|
|
2107
2355
|
declare function getAllCraftableItems(): CraftableItem[];
|
|
2108
2356
|
declare function getComponentsForCategory(category: ResourceCategory): ComponentDefinition[];
|
|
2109
2357
|
declare function getComponentsForStat(statKey: string): ComponentDefinition[];
|
|
@@ -2135,6 +2383,13 @@ declare function computeManufacturingCapabilities(stats: Record<string, number>)
|
|
|
2135
2383
|
speed: number;
|
|
2136
2384
|
drain: number;
|
|
2137
2385
|
};
|
|
2386
|
+
declare function computeStorageCapabilities(stats: Record<string, number>, baseCapacity: number): {
|
|
2387
|
+
capacityBonus: number;
|
|
2388
|
+
};
|
|
2389
|
+
declare function computeWarehouseHullCapabilities(stats: Record<string, number>): {
|
|
2390
|
+
hullmass: number;
|
|
2391
|
+
capacity: number;
|
|
2392
|
+
};
|
|
2138
2393
|
|
|
2139
2394
|
interface ResolvedItemStat {
|
|
2140
2395
|
key: string;
|
|
@@ -2153,6 +2408,14 @@ interface ResolvedAttributeGroup {
|
|
|
2153
2408
|
}[];
|
|
2154
2409
|
}
|
|
2155
2410
|
type ResolvedItemType = 'resource' | 'component' | 'module' | 'entity';
|
|
2411
|
+
interface ResolvedModuleSlot {
|
|
2412
|
+
name?: string;
|
|
2413
|
+
installed: boolean;
|
|
2414
|
+
attributes?: {
|
|
2415
|
+
label: string;
|
|
2416
|
+
value: number;
|
|
2417
|
+
}[];
|
|
2418
|
+
}
|
|
2156
2419
|
interface ResolvedItem {
|
|
2157
2420
|
itemId: number;
|
|
2158
2421
|
name: string;
|
|
@@ -2163,9 +2426,123 @@ interface ResolvedItem {
|
|
|
2163
2426
|
itemType: ResolvedItemType;
|
|
2164
2427
|
stats?: ResolvedItemStat[];
|
|
2165
2428
|
attributes?: ResolvedAttributeGroup[];
|
|
2429
|
+
moduleSlots?: ResolvedModuleSlot[];
|
|
2166
2430
|
}
|
|
2167
2431
|
declare function resolveItem(itemId: UInt16Type, seed?: UInt64Type, modules?: Types.module_entry[]): ResolvedItem;
|
|
2168
2432
|
|
|
2433
|
+
interface NFTInstalledModule {
|
|
2434
|
+
item_id: number;
|
|
2435
|
+
seed: string;
|
|
2436
|
+
}
|
|
2437
|
+
interface NFTModuleSlot {
|
|
2438
|
+
type: number;
|
|
2439
|
+
installed?: NFTInstalledModule;
|
|
2440
|
+
}
|
|
2441
|
+
interface NFTCargoItem {
|
|
2442
|
+
item_id: number;
|
|
2443
|
+
quantity: number;
|
|
2444
|
+
seed: string;
|
|
2445
|
+
modules?: NFTModuleSlot[];
|
|
2446
|
+
}
|
|
2447
|
+
interface NFTCommonBase {
|
|
2448
|
+
quantity: number;
|
|
2449
|
+
seed: string;
|
|
2450
|
+
origin_x: string;
|
|
2451
|
+
origin_y: string;
|
|
2452
|
+
}
|
|
2453
|
+
declare function readCommonBase(data: Record<string, any>): NFTCommonBase;
|
|
2454
|
+
declare function deserializeScalar(data: Record<string, any>, itemId: number): NFTCargoItem;
|
|
2455
|
+
declare const deserializeResource: typeof deserializeScalar;
|
|
2456
|
+
declare const deserializeComponent: typeof deserializeScalar;
|
|
2457
|
+
declare const deserializeModule: typeof deserializeScalar;
|
|
2458
|
+
declare function deserializeEntity(data: Record<string, any>, itemId: number): NFTCargoItem;
|
|
2459
|
+
declare function deserializeAsset(data: Record<string, any>, itemId: number): NFTCargoItem;
|
|
2460
|
+
|
|
2461
|
+
declare function computeBaseHullmass(seed: bigint): number;
|
|
2462
|
+
declare function computeBaseCapacityShip(seed: bigint): number;
|
|
2463
|
+
declare function computeBaseCapacityWarehouse(seed: bigint): number;
|
|
2464
|
+
declare const computeEngineThrust: (vol: number) => number;
|
|
2465
|
+
declare const computeEngineDrain: (thm: number) => number;
|
|
2466
|
+
declare const computeGeneratorCap: (res: number) => number;
|
|
2467
|
+
declare const computeGeneratorRech: (clr: number) => number;
|
|
2468
|
+
declare const computeExtractorRate: (str: number) => number;
|
|
2469
|
+
declare const computeExtractorDrain: (con: number) => number;
|
|
2470
|
+
declare const computeExtractorDepth: (tol: number) => number;
|
|
2471
|
+
declare const computeExtractorDrill: (ref: number) => number;
|
|
2472
|
+
declare const computeLoaderMass: (duc: number) => number;
|
|
2473
|
+
declare const computeLoaderThrust: (pla: number) => number;
|
|
2474
|
+
declare const computeCrafterSpeed: (rea: number) => number;
|
|
2475
|
+
declare const computeCrafterDrain: (clr: number) => number;
|
|
2476
|
+
declare function entityDisplayName(itemId: number): string;
|
|
2477
|
+
declare function moduleDisplayName(itemId: number): string;
|
|
2478
|
+
declare function formatModuleLine(slot: number, itemId: number, seed: bigint): string;
|
|
2479
|
+
declare function buildEntityDescription(itemId: number, hullSeed: bigint, moduleItems: number[], moduleSeeds: bigint[]): string;
|
|
2480
|
+
|
|
2481
|
+
type index_NFTInstalledModule = NFTInstalledModule;
|
|
2482
|
+
type index_NFTModuleSlot = NFTModuleSlot;
|
|
2483
|
+
type index_NFTCargoItem = NFTCargoItem;
|
|
2484
|
+
type index_NFTCommonBase = NFTCommonBase;
|
|
2485
|
+
declare const index_readCommonBase: typeof readCommonBase;
|
|
2486
|
+
declare const index_deserializeScalar: typeof deserializeScalar;
|
|
2487
|
+
declare const index_deserializeResource: typeof deserializeResource;
|
|
2488
|
+
declare const index_deserializeComponent: typeof deserializeComponent;
|
|
2489
|
+
declare const index_deserializeModule: typeof deserializeModule;
|
|
2490
|
+
declare const index_deserializeEntity: typeof deserializeEntity;
|
|
2491
|
+
declare const index_deserializeAsset: typeof deserializeAsset;
|
|
2492
|
+
declare const index_computeBaseHullmass: typeof computeBaseHullmass;
|
|
2493
|
+
declare const index_computeBaseCapacityShip: typeof computeBaseCapacityShip;
|
|
2494
|
+
declare const index_computeBaseCapacityWarehouse: typeof computeBaseCapacityWarehouse;
|
|
2495
|
+
declare const index_computeEngineThrust: typeof computeEngineThrust;
|
|
2496
|
+
declare const index_computeEngineDrain: typeof computeEngineDrain;
|
|
2497
|
+
declare const index_computeGeneratorCap: typeof computeGeneratorCap;
|
|
2498
|
+
declare const index_computeGeneratorRech: typeof computeGeneratorRech;
|
|
2499
|
+
declare const index_computeExtractorRate: typeof computeExtractorRate;
|
|
2500
|
+
declare const index_computeExtractorDrain: typeof computeExtractorDrain;
|
|
2501
|
+
declare const index_computeExtractorDepth: typeof computeExtractorDepth;
|
|
2502
|
+
declare const index_computeExtractorDrill: typeof computeExtractorDrill;
|
|
2503
|
+
declare const index_computeLoaderMass: typeof computeLoaderMass;
|
|
2504
|
+
declare const index_computeLoaderThrust: typeof computeLoaderThrust;
|
|
2505
|
+
declare const index_computeCrafterSpeed: typeof computeCrafterSpeed;
|
|
2506
|
+
declare const index_computeCrafterDrain: typeof computeCrafterDrain;
|
|
2507
|
+
declare const index_entityDisplayName: typeof entityDisplayName;
|
|
2508
|
+
declare const index_moduleDisplayName: typeof moduleDisplayName;
|
|
2509
|
+
declare const index_formatModuleLine: typeof formatModuleLine;
|
|
2510
|
+
declare const index_buildEntityDescription: typeof buildEntityDescription;
|
|
2511
|
+
declare namespace index {
|
|
2512
|
+
export {
|
|
2513
|
+
index_NFTInstalledModule as NFTInstalledModule,
|
|
2514
|
+
index_NFTModuleSlot as NFTModuleSlot,
|
|
2515
|
+
index_NFTCargoItem as NFTCargoItem,
|
|
2516
|
+
index_NFTCommonBase as NFTCommonBase,
|
|
2517
|
+
index_readCommonBase as readCommonBase,
|
|
2518
|
+
index_deserializeScalar as deserializeScalar,
|
|
2519
|
+
index_deserializeResource as deserializeResource,
|
|
2520
|
+
index_deserializeComponent as deserializeComponent,
|
|
2521
|
+
index_deserializeModule as deserializeModule,
|
|
2522
|
+
index_deserializeEntity as deserializeEntity,
|
|
2523
|
+
index_deserializeAsset as deserializeAsset,
|
|
2524
|
+
index_computeBaseHullmass as computeBaseHullmass,
|
|
2525
|
+
index_computeBaseCapacityShip as computeBaseCapacityShip,
|
|
2526
|
+
index_computeBaseCapacityWarehouse as computeBaseCapacityWarehouse,
|
|
2527
|
+
index_computeEngineThrust as computeEngineThrust,
|
|
2528
|
+
index_computeEngineDrain as computeEngineDrain,
|
|
2529
|
+
index_computeGeneratorCap as computeGeneratorCap,
|
|
2530
|
+
index_computeGeneratorRech as computeGeneratorRech,
|
|
2531
|
+
index_computeExtractorRate as computeExtractorRate,
|
|
2532
|
+
index_computeExtractorDrain as computeExtractorDrain,
|
|
2533
|
+
index_computeExtractorDepth as computeExtractorDepth,
|
|
2534
|
+
index_computeExtractorDrill as computeExtractorDrill,
|
|
2535
|
+
index_computeLoaderMass as computeLoaderMass,
|
|
2536
|
+
index_computeLoaderThrust as computeLoaderThrust,
|
|
2537
|
+
index_computeCrafterSpeed as computeCrafterSpeed,
|
|
2538
|
+
index_computeCrafterDrain as computeCrafterDrain,
|
|
2539
|
+
index_entityDisplayName as entityDisplayName,
|
|
2540
|
+
index_moduleDisplayName as moduleDisplayName,
|
|
2541
|
+
index_formatModuleLine as formatModuleLine,
|
|
2542
|
+
index_buildEntityDescription as buildEntityDescription,
|
|
2543
|
+
};
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2169
2546
|
type movement_stats = Types.movement_stats;
|
|
2170
2547
|
type energy_stats = Types.energy_stats;
|
|
2171
2548
|
type loader_stats = Types.loader_stats;
|
|
@@ -2179,4 +2556,4 @@ type location_epoch = Types.location_epoch;
|
|
|
2179
2556
|
type location_derived = Types.location_derived;
|
|
2180
2557
|
type location_row = Types.location_row;
|
|
2181
2558
|
|
|
2182
|
-
export { ActionsManager, AnyEntity, BASE_ORBITAL_MASS, COMMIT_ALREADY_SET, COMMIT_CANNOT_MATCH, COMMIT_NOT_SET, COMPANY_NOT_FOUND, CONTAINER_Z, CargoData, CargoMassInfo, CargoSeed, CategoryStacks, ComponentDefinition, ComponentStat, Container, ContainerEntity, ContainerStateInput, Coordinates, CoordinatesType, CraftableItem, CrafterCapability, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, Distance, EPOCH_NON_ZERO, EPOCH_NOT_READY, ERROR_SYSTEM_ALREADY_INITIALIZED, ERROR_SYSTEM_DISABLED, ERROR_SYSTEM_NOT_INITIALIZED, EnergyCapability, EntitiesManager, Entity, EntityCapabilities, EntityInventory, EntityRecipe, EntityRefInput, EntityState, EntityType, EntityTypeName, EpochInfo, EpochsManager, EstimateTravelTimeOptions, EstimatedTravelTime, ExtractorCapability, GAME_NOT_FOUND, GAME_SEED_NOT_SET, GameState, HasCapacity, HasCargo, HasCargomass, HasScheduleAndLocation, INITIAL_CONTAINER_CAPACITY, INITIAL_CONTAINER_HULLMASS, INITIAL_WAREHOUSE_CAPACITY, INSUFFICIENT_BALANCE, INSUFFICIENT_ITEM_QUANTITY, INSUFFICIENT_ITEM_SUPPLY, INVALID_AMOUNT, ITEM_CARGO_ARM, ITEM_CARGO_LINING,
|
|
2559
|
+
export { ActionsManager, AnyEntity, BASE_ORBITAL_MASS, COMMIT_ALREADY_SET, COMMIT_CANNOT_MATCH, COMMIT_NOT_SET, COMPANY_NOT_FOUND, CONTAINER_Z, CapabilityAttribute, CargoData, CargoMassInfo, CargoSeed, CategoryInfo, CategoryStacks, ComponentDefinition, ComponentStat, Container, ContainerEntity, ContainerStateInput, Coordinates, CoordinatesType, CraftableItem, CraftedItemCategory, CrafterCapability, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, Distance, EPOCH_NON_ZERO, EPOCH_NOT_READY, ERROR_SYSTEM_ALREADY_INITIALIZED, ERROR_SYSTEM_DISABLED, ERROR_SYSTEM_NOT_INITIALIZED, EnergyCapability, EntitiesManager, Entity, EntityCapabilities, EntityInventory, EntityRecipe, EntityRefInput, EntityState, EntityType, EntityTypeName, EpochInfo, EpochsManager, EstimateTravelTimeOptions, EstimatedTravelTime, ExtractorCapability, GAME_NOT_FOUND, GAME_SEED_NOT_SET, GameState, HasCapacity, HasCargo, HasCargomass, HasScheduleAndLocation, INITIAL_CONTAINER_CAPACITY, INITIAL_CONTAINER_HULLMASS, INITIAL_WAREHOUSE_CAPACITY, INSUFFICIENT_BALANCE, INSUFFICIENT_ITEM_QUANTITY, INSUFFICIENT_ITEM_SUPPLY, INVALID_AMOUNT, ITEM_CARGO_ARM, ITEM_CARGO_LINING, ITEM_CARGO_LINING_T2, ITEM_CONTAINER_T1_PACKED, ITEM_CONTAINER_T2_PACKED, ITEM_DOES_NOT_EXIST, ITEM_DRILL_SHAFT, ITEM_ENGINE_T1, ITEM_EXTRACTION_PROBE, ITEM_EXTRACTOR_T1, ITEM_GENERATOR_T1, ITEM_HULL_PLATES, ITEM_HULL_PLATES_T2, ITEM_LOADER_T1, ITEM_MANUFACTURING_T1, ITEM_NOT_AVAILABLE_AT_LOCATION, ITEM_POWER_CELL, ITEM_REACTION_CHAMBER, ITEM_SHIP_T1_PACKED, ITEM_STORAGE_T1, ITEM_THRUSTER_CORE, ITEM_TOOL_BIT, ITEM_TYPE_COMPONENT, ITEM_TYPE_ENTITY, ITEM_TYPE_MODULE, ITEM_TYPE_RESOURCE, ITEM_WAREHOUSE_T1_PACKED, InventoryAccessor, Item, LOCATION_MAX_DEPTH, LOCATION_MIN_DEPTH, LoadTimeBreakdown, LoaderCapability, Location, LocationType, LocationsManager, MAX_ORBITAL_ALTITUDE, MIN_ORBITAL_ALTITUDE, MODULE_ANY, MODULE_CRAFTER, MODULE_ENGINE, MODULE_EXTRACTOR, MODULE_GENERATOR, MODULE_LAUNCHER, MODULE_LOADER, MODULE_STORAGE, MODULE_WARP, MassCapability, ModuleEntry, ModuleRecipe, ModuleSlot, MovementCapability, index as NFT, NFTCargoItem, NFTCommonBase, NFTInstalledModule, NFTModuleSlot, NO_SCHEDULE, NamedStats, PLANET_SUBTYPE_GAS_GIANT, PLANET_SUBTYPE_ICY, PLANET_SUBTYPE_INDUSTRIAL, PLANET_SUBTYPE_OCEAN, PLANET_SUBTYPE_ROCKY, PLANET_SUBTYPE_TERRESTRIAL, PLAYER_ALREADY_JOINED, PLAYER_NOT_FOUND, PRECISION, PlanetSubtypeInfo, platform as PlatformContract, Player, PlayerStateInput, PlayersManager, Projectable, ProjectedEntity, REQUIRES_MORE_THAN_ONE, REQUIRES_POSITIVE_VALUE, RecipeInput, ResolvedAttributeGroup, ResolvedItem, ResolvedItemStat, ResolvedItemType, ResolvedModuleSlot, ResourceCategory, ResourceStats, ResourceTier, SHIP_ALREADY_THERE, SHIP_ALREADY_TRAVELING, SHIP_CANNOT_BUY_TRAVELING, SHIP_CANNOT_CANCEL_TASK, SHIP_CANNOT_UPDATE_TRAVELING, SHIP_CARGO_NOT_LOADED, SHIP_CARGO_NOT_OWNED, SHIP_INVALID_CARGO, SHIP_INVALID_DESTINATION, SHIP_INVALID_TRAVEL_DURATION, SHIP_NOT_ARRIVED, SHIP_NOT_ENOUGH_ENERGY, SHIP_NOT_ENOUGH_ENERGY_CAPACITY, SHIP_NOT_FOUND, SHIP_NOT_IDLE, SHIP_NOT_OWNED, SHIP_NO_COMPLETED_TASKS, SHIP_NO_TASKS_TO_CANCEL, ScheduleAccessor, ScheduleCapability, ScheduleData, Scheduleable, server as ServerContract, Ship, ShipEntity, ShipLike, ShipStateInput, Shipload, StackInput, StatDefinition, StatMapping, StorageCapability, StratumInfo, TRAVEL_MAX_DURATION, TaskCancelable, TaskType, TransferEntity, WAREHOUSE_ALREADY_AT_LOCATION, WAREHOUSE_CAPACITY_EXCEEDED, WAREHOUSE_NOT_FOUND, WAREHOUSE_Z, Warehouse, WarehouseEntity, WarehouseStateInput, availableCapacity$1 as availableCapacity, availableCapacityFromMass, blendCargoStacks, blendComponentStacks, blendCrossGroup, blendStacks, buildEntityDescription, calcCargoMass, calcEnergyUsage, calcLoadDuration, calc_acceleration, calc_craft_duration, calc_craft_energy, calc_energyusage, calc_extraction_duration, calc_extraction_energy, calc_flighttime, calc_loader_acceleration, calc_loader_flighttime, calc_orbital_altitude, calc_rechargetime, calc_ship_acceleration, calc_ship_flighttime, calc_ship_mass, calc_ship_rechargetime, calc_transfer_duration, calculateFlightTime, calculateLoadTimeBreakdown, calculateRefuelingTime, calculateTransferTime, canMove, capabilityAttributes, capabilityNames, capsHasCrafter, capsHasExtractor, capsHasLoaders, capsHasMass, capsHasMovement, capsHasStorage, cargoUtils, cargo_item, categoryColors, categoryIcons, categoryItemMass, componentIcon, components, computeBaseCapacityShip, computeBaseCapacityWarehouse, computeBaseHullmass, computeComponentStats, computeContainerCapabilities, computeContainerT2Capabilities, computeCrafterDrain, computeCrafterSpeed, computeEngineCapabilities, computeEngineDrain, computeEngineThrust, computeEntityStats, computeExtractorCapabilities, computeExtractorDepth, computeExtractorDrain, computeExtractorDrill, computeExtractorRate, computeGeneratorCap, computeGeneratorCapabilities, computeGeneratorRech, computeInputMass, computeLoaderCapabilities, computeLoaderMass, computeLoaderThrust, computeManufacturingCapabilities, computeShipHullCapabilities, computeStorageCapabilities, computeWarehouseHullCapabilities, container_row, coordsToLocationId, createInventoryAccessor, createProjectedEntity, createScheduleAccessor, decodeCraftedItemStats, decodeStat, decodeStats, Shipload as default, depthScaleFactor, deriveLocation, deriveLocationEpoch, deriveLocationSize, deriveLocationStatic, deriveResourceStats, deriveStratum, deserializeAsset, deserializeComponent, deserializeEntity, deserializeModule, deserializeResource, distanceBetweenCoordinates, distanceBetweenPoints, encodeStats, energyPercent, energy_stats, entityDisplayName, entityRecipes, estimateDealTravelTime, estimateTravelTime, extractor_stats, findNearbyPlanets, formatModuleLine, getAllCraftableItems, getCapabilityAttributes, getCategoryInfo, getComponentById, getComponentsForCategory, getComponentsForStat, getCurrentEpoch, getDepthThreshold, getDestinationLocation, getEligibleResources, getEntityRecipe, getEntityRecipeByItemId, getEntitySlotLayout, getEpochInfo, getFlightOrigin, getItem, getItems, getLocationCandidates, getLocationType, getModuleCapabilityType, getModuleRecipe, getModuleRecipeByItemId, getPlanetSubtype, getPlanetSubtypes, getPositionAt, getResourceTier, getResourceWeight, getStatDefinitions, getStatMappings, getStatMappingsForCapability, getStatMappingsForStat, getStatName, getSystemName, hasEnergy, hasEnergyForDistance, hasExtractor, hasLoaders, hasMass, hasSchedule, hasSpace$1 as hasSpace, hasSpaceForMass, hasStorage, hasSystem, hash, hash512, isCraftedItem, isExtractableLocation, isFull$1 as isFull, isFullFromMass, isInvertedAttribute, isModuleItem, isRelatedItem, itemCategory, itemIcons, itemIds, itemOffset, itemTier, itemTypeCode, lerp, loader_stats, location_derived, location_epoch, location_row, location_static, makeContainer, makeShip, makeWarehouse, maxTravelDistance, moduleAccepts, moduleDisplayName, moduleIcon, moduleRecipes, movement_stats, needsRecharge, projectEntity, projectEntityAt, readCommonBase, resolveItem, resolveStats, rotation, schedule, statMappings, task, tierColors, toLocation, warehouse_row };
|