@shipload/sdk 1.0.0-next.34 → 1.0.0-next.36
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 +398 -51
- package/lib/shipload.js +1481 -400
- package/lib/shipload.js.map +1 -1
- package/lib/shipload.m.js +1442 -401
- package/lib/shipload.m.js.map +1 -1
- package/lib/testing.d.ts +101 -20
- package/lib/testing.js +201 -57
- package/lib/testing.js.map +1 -1
- package/lib/testing.m.js +201 -57
- package/lib/testing.m.js.map +1 -1
- package/package.json +1 -1
- package/src/capabilities/crafting.ts +2 -3
- package/src/capabilities/gathering.test.ts +16 -0
- package/src/capabilities/gathering.ts +8 -11
- package/src/contracts/server.ts +147 -29
- package/src/coordinates/address.ts +88 -0
- package/src/coordinates/constants.test.ts +15 -0
- package/src/coordinates/constants.ts +23 -0
- package/src/coordinates/index.ts +15 -0
- package/src/coordinates/memo.test.ts +47 -0
- package/src/coordinates/memo.ts +20 -0
- package/src/coordinates/permutation.ts +77 -0
- package/src/coordinates/regions.ts +48 -0
- package/src/coordinates/sectors.ts +115 -0
- package/src/data/capability-formulas.ts +0 -1
- package/src/data/entities.json +4 -4
- package/src/data/items.json +5 -5
- package/src/data/recipes.json +39 -65
- package/src/derivation/capabilities.test.ts +133 -0
- package/src/derivation/capabilities.ts +66 -14
- package/src/derivation/rollups.test.ts +55 -0
- package/src/derivation/rollups.ts +56 -0
- package/src/derivation/wormhole.ts +115 -0
- package/src/entities/makers.ts +30 -3
- package/src/errors.ts +2 -0
- package/src/index-module.ts +38 -2
- package/src/managers/actions.ts +79 -5
- package/src/managers/construction.ts +6 -4
- package/src/managers/context.ts +9 -0
- package/src/managers/coordinates.ts +14 -0
- package/src/managers/plot.ts +2 -4
- package/src/nft/description.ts +25 -6
- package/src/planner/index.ts +127 -0
- package/src/planner/planner.test.ts +319 -0
- package/src/resolution/resolve-item.ts +4 -1
- package/src/scheduling/availability.ts +1 -1
- package/src/scheduling/cancel.test.ts +348 -0
- package/src/scheduling/cancel.ts +209 -0
- package/src/scheduling/lanes.test.ts +249 -0
- package/src/scheduling/lanes.ts +140 -2
- package/src/scheduling/projection.ts +75 -16
- package/src/scheduling/schedule.ts +3 -1
- package/src/shipload.ts +5 -0
- package/src/testing/projection-parity.ts +26 -2
- package/src/travel/travel.ts +116 -105
- package/src/types/capabilities.ts +23 -6
- package/src/types/entity.ts +3 -3
- package/src/types.ts +2 -1
- package/src/utils/system.ts +11 -0
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, Asset, UInt64, Checksum256, UInt32, TimePointSec, ExtendedAsset, Checksum256Type, UInt32Type, NameType, UInt64Type, AssetType, ExtendedAssetType, Action, UInt16, UInt8, Int64, TimePoint, BlockTimestamp, Bytes, Int32, UInt16Type, UInt8Type, Int64Type, TimePointType, Int32Type, Checksum512, APIClient } from '@wharfkit/antelope';
|
|
2
|
+
import { Blob, ABI, Struct, Name, Asset, UInt64, Checksum256, UInt32, TimePointSec, ExtendedAsset, Checksum256Type, UInt32Type, NameType, UInt64Type, AssetType, ExtendedAssetType, Action, UInt16, UInt8, Int64, TimePoint, BlockTimestamp, Bytes, Int32, UInt16Type, UInt8Type, Int64Type, TimePointType, Int32Type, Checksum512, Transaction, 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/common';
|
|
@@ -453,10 +453,13 @@ declare namespace Types {
|
|
|
453
453
|
quantity: UInt32;
|
|
454
454
|
inputs: cargo_item[];
|
|
455
455
|
target?: UInt64;
|
|
456
|
+
slot?: UInt8;
|
|
456
457
|
}
|
|
457
|
-
class
|
|
458
|
+
class crafter_lane extends Struct {
|
|
459
|
+
slot_index: UInt8;
|
|
458
460
|
speed: UInt16;
|
|
459
461
|
drain: UInt32;
|
|
462
|
+
output_pct: UInt16;
|
|
460
463
|
}
|
|
461
464
|
class demolish extends Struct {
|
|
462
465
|
entity_id: UInt64;
|
|
@@ -489,20 +492,23 @@ declare namespace Types {
|
|
|
489
492
|
class warp_stats extends Struct {
|
|
490
493
|
range: UInt32;
|
|
491
494
|
}
|
|
492
|
-
class
|
|
495
|
+
class hauler_stats extends Struct {
|
|
496
|
+
capacity: UInt8;
|
|
497
|
+
efficiency: UInt16;
|
|
498
|
+
drain: UInt32;
|
|
499
|
+
}
|
|
500
|
+
class gatherer_lane extends Struct {
|
|
501
|
+
slot_index: UInt8;
|
|
493
502
|
yield: UInt16;
|
|
494
503
|
drain: UInt32;
|
|
495
504
|
depth: UInt16;
|
|
505
|
+
output_pct: UInt16;
|
|
496
506
|
}
|
|
497
|
-
class
|
|
507
|
+
class loader_lane extends Struct {
|
|
508
|
+
slot_index: UInt8;
|
|
498
509
|
mass: UInt32;
|
|
499
510
|
thrust: UInt16;
|
|
500
|
-
|
|
501
|
-
}
|
|
502
|
-
class hauler_stats extends Struct {
|
|
503
|
-
capacity: UInt8;
|
|
504
|
-
efficiency: UInt16;
|
|
505
|
-
drain: UInt32;
|
|
511
|
+
output_pct: UInt16;
|
|
506
512
|
}
|
|
507
513
|
class task extends Struct {
|
|
508
514
|
type: UInt8;
|
|
@@ -546,10 +552,10 @@ declare namespace Types {
|
|
|
546
552
|
engines?: movement_stats;
|
|
547
553
|
warp?: warp_stats;
|
|
548
554
|
generator?: energy_stats;
|
|
549
|
-
gatherer?: gatherer_stats;
|
|
550
|
-
loaders?: loader_stats;
|
|
551
555
|
hauler?: hauler_stats;
|
|
552
|
-
|
|
556
|
+
gatherer_lanes: gatherer_lane[];
|
|
557
|
+
crafter_lanes: crafter_lane[];
|
|
558
|
+
loader_lanes: loader_lane[];
|
|
553
559
|
lanes: lane[];
|
|
554
560
|
holds: hold[];
|
|
555
561
|
}
|
|
@@ -625,6 +631,7 @@ declare namespace Types {
|
|
|
625
631
|
destination_id: UInt64;
|
|
626
632
|
stratum: UInt16;
|
|
627
633
|
quantity: UInt32;
|
|
634
|
+
slot?: UInt8;
|
|
628
635
|
}
|
|
629
636
|
class genesisfleet extends Struct {
|
|
630
637
|
entities: entity_row[];
|
|
@@ -635,6 +642,12 @@ declare namespace Types {
|
|
|
635
642
|
owner: Name;
|
|
636
643
|
asset_id: UInt64;
|
|
637
644
|
}
|
|
645
|
+
class getdistance extends Struct {
|
|
646
|
+
ax: Int64;
|
|
647
|
+
ay: Int64;
|
|
648
|
+
bx: Int64;
|
|
649
|
+
by: Int64;
|
|
650
|
+
}
|
|
638
651
|
class geteligible extends Struct {
|
|
639
652
|
coords: coordinates;
|
|
640
653
|
stratum: UInt16;
|
|
@@ -714,6 +727,17 @@ declare namespace Types {
|
|
|
714
727
|
owner: Name;
|
|
715
728
|
entity_type?: Name;
|
|
716
729
|
}
|
|
730
|
+
class getwormhole extends Struct {
|
|
731
|
+
x: Int64;
|
|
732
|
+
y: Int64;
|
|
733
|
+
}
|
|
734
|
+
class grouptransit extends Struct {
|
|
735
|
+
entities: entity_ref[];
|
|
736
|
+
ax: Int64;
|
|
737
|
+
ay: Int64;
|
|
738
|
+
bx: Int64;
|
|
739
|
+
by: Int64;
|
|
740
|
+
}
|
|
717
741
|
class grouptravel extends Struct {
|
|
718
742
|
entities: entity_ref[];
|
|
719
743
|
x: Int64;
|
|
@@ -836,6 +860,7 @@ declare namespace Types {
|
|
|
836
860
|
class location_info extends Struct {
|
|
837
861
|
coords: coordinates;
|
|
838
862
|
is_system: boolean;
|
|
863
|
+
is_wormhole: boolean;
|
|
839
864
|
}
|
|
840
865
|
class module_info extends Struct {
|
|
841
866
|
id: UInt16;
|
|
@@ -945,10 +970,10 @@ declare namespace Types {
|
|
|
945
970
|
engines?: movement_stats;
|
|
946
971
|
warp?: warp_stats;
|
|
947
972
|
generator?: energy_stats;
|
|
948
|
-
gatherer?: gatherer_stats;
|
|
949
|
-
loaders?: loader_stats;
|
|
950
973
|
hauler?: hauler_stats;
|
|
951
|
-
|
|
974
|
+
gatherer_lanes: gatherer_lane[];
|
|
975
|
+
crafter_lanes: crafter_lane[];
|
|
976
|
+
loader_lanes: loader_lane[];
|
|
952
977
|
}
|
|
953
978
|
class recharge extends Struct {
|
|
954
979
|
id: UInt64;
|
|
@@ -1015,6 +1040,11 @@ declare namespace Types {
|
|
|
1015
1040
|
class rmnftcfg extends Struct {
|
|
1016
1041
|
item_id: UInt16;
|
|
1017
1042
|
}
|
|
1043
|
+
class setcoords extends Struct {
|
|
1044
|
+
entity_id: UInt64;
|
|
1045
|
+
x: Int64;
|
|
1046
|
+
y: Int64;
|
|
1047
|
+
}
|
|
1018
1048
|
class setnftcfg extends Struct {
|
|
1019
1049
|
item_id: UInt16;
|
|
1020
1050
|
template_id: Int32;
|
|
@@ -1068,6 +1098,13 @@ declare namespace Types {
|
|
|
1068
1098
|
class task_results extends Struct {
|
|
1069
1099
|
entities: entity_task_info[];
|
|
1070
1100
|
}
|
|
1101
|
+
class transit extends Struct {
|
|
1102
|
+
id: UInt64;
|
|
1103
|
+
ax: Int64;
|
|
1104
|
+
ay: Int64;
|
|
1105
|
+
bx: Int64;
|
|
1106
|
+
by: Int64;
|
|
1107
|
+
}
|
|
1071
1108
|
class travel extends Struct {
|
|
1072
1109
|
id: UInt64;
|
|
1073
1110
|
x: Int64;
|
|
@@ -1097,6 +1134,11 @@ declare namespace Types {
|
|
|
1097
1134
|
}
|
|
1098
1135
|
class wipe extends Struct {
|
|
1099
1136
|
}
|
|
1137
|
+
class wormhole_info extends Struct {
|
|
1138
|
+
coords: coordinates;
|
|
1139
|
+
is_wormhole: boolean;
|
|
1140
|
+
destination: coordinates;
|
|
1141
|
+
}
|
|
1100
1142
|
class wrapconfig_row extends Struct {
|
|
1101
1143
|
fee_pct: UInt16;
|
|
1102
1144
|
fee_account: Name;
|
|
@@ -1331,6 +1373,7 @@ declare namespace ActionParams {
|
|
|
1331
1373
|
quantity: UInt32Type;
|
|
1332
1374
|
inputs: Type.cargo_item[];
|
|
1333
1375
|
target?: UInt64Type;
|
|
1376
|
+
slot?: UInt8Type;
|
|
1334
1377
|
}
|
|
1335
1378
|
interface demolish {
|
|
1336
1379
|
entity_id: UInt64Type;
|
|
@@ -1359,6 +1402,7 @@ declare namespace ActionParams {
|
|
|
1359
1402
|
destination_id: UInt64Type;
|
|
1360
1403
|
stratum: UInt16Type;
|
|
1361
1404
|
quantity: UInt32Type;
|
|
1405
|
+
slot?: UInt8Type;
|
|
1362
1406
|
}
|
|
1363
1407
|
interface genesisfleet {
|
|
1364
1408
|
entities: Type.entity_row[];
|
|
@@ -1369,6 +1413,12 @@ declare namespace ActionParams {
|
|
|
1369
1413
|
owner: NameType;
|
|
1370
1414
|
asset_id: UInt64Type;
|
|
1371
1415
|
}
|
|
1416
|
+
interface getdistance {
|
|
1417
|
+
ax: Int64Type;
|
|
1418
|
+
ay: Int64Type;
|
|
1419
|
+
bx: Int64Type;
|
|
1420
|
+
by: Int64Type;
|
|
1421
|
+
}
|
|
1372
1422
|
interface geteligible {
|
|
1373
1423
|
coords: Type.coordinates;
|
|
1374
1424
|
stratum: UInt16Type;
|
|
@@ -1448,6 +1498,17 @@ declare namespace ActionParams {
|
|
|
1448
1498
|
owner: NameType;
|
|
1449
1499
|
entity_type?: NameType;
|
|
1450
1500
|
}
|
|
1501
|
+
interface getwormhole {
|
|
1502
|
+
x: Int64Type;
|
|
1503
|
+
y: Int64Type;
|
|
1504
|
+
}
|
|
1505
|
+
interface grouptransit {
|
|
1506
|
+
entities: Type.entity_ref[];
|
|
1507
|
+
ax: Int64Type;
|
|
1508
|
+
ay: Int64Type;
|
|
1509
|
+
bx: Int64Type;
|
|
1510
|
+
by: Int64Type;
|
|
1511
|
+
}
|
|
1451
1512
|
interface grouptravel {
|
|
1452
1513
|
entities: Type.entity_ref[];
|
|
1453
1514
|
x: Int64Type;
|
|
@@ -1537,6 +1598,11 @@ declare namespace ActionParams {
|
|
|
1537
1598
|
interface rmnftcfg {
|
|
1538
1599
|
item_id: UInt16Type;
|
|
1539
1600
|
}
|
|
1601
|
+
interface setcoords {
|
|
1602
|
+
entity_id: UInt64Type;
|
|
1603
|
+
x: Int64Type;
|
|
1604
|
+
y: Int64Type;
|
|
1605
|
+
}
|
|
1540
1606
|
interface setnftcfg {
|
|
1541
1607
|
item_id: UInt16Type;
|
|
1542
1608
|
template_id: Int32Type;
|
|
@@ -1571,6 +1637,13 @@ declare namespace ActionParams {
|
|
|
1571
1637
|
module_index: UInt8Type;
|
|
1572
1638
|
module_ref: Type.cargo_ref;
|
|
1573
1639
|
}
|
|
1640
|
+
interface transit {
|
|
1641
|
+
id: UInt64Type;
|
|
1642
|
+
ax: Int64Type;
|
|
1643
|
+
ay: Int64Type;
|
|
1644
|
+
bx: Int64Type;
|
|
1645
|
+
by: Int64Type;
|
|
1646
|
+
}
|
|
1574
1647
|
interface travel {
|
|
1575
1648
|
id: UInt64Type;
|
|
1576
1649
|
x: Int64Type;
|
|
@@ -1618,6 +1691,7 @@ interface ActionNameParams {
|
|
|
1618
1691
|
genesisfleet: ActionParams.genesisfleet;
|
|
1619
1692
|
getconfig: ActionParams.getconfig;
|
|
1620
1693
|
getdeposit: ActionParams.getdeposit;
|
|
1694
|
+
getdistance: ActionParams.getdistance;
|
|
1621
1695
|
geteligible: ActionParams.geteligible;
|
|
1622
1696
|
getentcls: ActionParams.getentcls;
|
|
1623
1697
|
getentities: ActionParams.getentities;
|
|
@@ -1645,6 +1719,8 @@ interface ActionNameParams {
|
|
|
1645
1719
|
getslots: ActionParams.getslots;
|
|
1646
1720
|
getstratum: ActionParams.getstratum;
|
|
1647
1721
|
getsummaries: ActionParams.getsummaries;
|
|
1722
|
+
getwormhole: ActionParams.getwormhole;
|
|
1723
|
+
grouptransit: ActionParams.grouptransit;
|
|
1648
1724
|
grouptravel: ActionParams.grouptravel;
|
|
1649
1725
|
hash: ActionParams.hash;
|
|
1650
1726
|
hash512: ActionParams.hash512;
|
|
@@ -1669,6 +1745,7 @@ interface ActionNameParams {
|
|
|
1669
1745
|
reveal: ActionParams.reveal;
|
|
1670
1746
|
rmmodule: ActionParams.rmmodule;
|
|
1671
1747
|
rmnftcfg: ActionParams.rmnftcfg;
|
|
1748
|
+
setcoords: ActionParams.setcoords;
|
|
1672
1749
|
setnftcfg: ActionParams.setnftcfg;
|
|
1673
1750
|
setthreshold: ActionParams.setthreshold;
|
|
1674
1751
|
setwrapcost: ActionParams.setwrapcost;
|
|
@@ -1676,6 +1753,7 @@ interface ActionNameParams {
|
|
|
1676
1753
|
stowcargo: ActionParams.stowcargo;
|
|
1677
1754
|
stowentity: ActionParams.stowentity;
|
|
1678
1755
|
swapmodule: ActionParams.swapmodule;
|
|
1756
|
+
transit: ActionParams.transit;
|
|
1679
1757
|
travel: ActionParams.travel;
|
|
1680
1758
|
undeploy: ActionParams.undeploy;
|
|
1681
1759
|
unload: ActionParams.unload;
|
|
@@ -1694,6 +1772,7 @@ interface ActionReturnValues {
|
|
|
1694
1772
|
gather: Types.task_results;
|
|
1695
1773
|
getconfig: Types.game_config;
|
|
1696
1774
|
getdeposit: ExtendedAsset;
|
|
1775
|
+
getdistance: UInt64;
|
|
1697
1776
|
geteligible: UInt16[];
|
|
1698
1777
|
getentcls: Types.enum_result;
|
|
1699
1778
|
getentities: Types.entity_info[];
|
|
@@ -1721,6 +1800,8 @@ interface ActionReturnValues {
|
|
|
1721
1800
|
getslots: Types.entity_layouts_result;
|
|
1722
1801
|
getstratum: Types.stratum_data;
|
|
1723
1802
|
getsummaries: Types.entity_summary[];
|
|
1803
|
+
getwormhole: Types.wormhole_info;
|
|
1804
|
+
grouptransit: Types.task_results;
|
|
1724
1805
|
grouptravel: Types.task_results;
|
|
1725
1806
|
hash: Checksum256;
|
|
1726
1807
|
hash512: Checksum512;
|
|
@@ -1733,6 +1814,7 @@ interface ActionReturnValues {
|
|
|
1733
1814
|
resolveall: Types.resolveall_results;
|
|
1734
1815
|
stowcargo: Types.task_results;
|
|
1735
1816
|
stowentity: Types.task_results;
|
|
1817
|
+
transit: Types.task_results;
|
|
1736
1818
|
travel: Types.task_results;
|
|
1737
1819
|
undeploy: Types.task_results;
|
|
1738
1820
|
unload: Types.task_results;
|
|
@@ -1830,6 +1912,8 @@ declare const GROUP_NOT_FOUND = "Entity group not found.";
|
|
|
1830
1912
|
declare const GROUP_DUPLICATE_ENTITY = "Duplicate entity in group.";
|
|
1831
1913
|
declare const GROUP_HAUL_CAPACITY_EXCEEDED = "Group travel requires sufficient hauler capacity for all non-self-propelled entities.";
|
|
1832
1914
|
declare const CANCEL_CONTAINS_GROUPED_TASK = "Cannot cancel range containing grouped task - cancel non-grouped tasks first.";
|
|
1915
|
+
declare const WOULD_STRAND = "Cancelling this would leave a later task without the cargo it needs.";
|
|
1916
|
+
declare const WOULD_OVERFILL = "Cancelling this would overfill the other entity with returned cargo.";
|
|
1833
1917
|
declare const WARP_NO_CAPABILITY = "Entity does not have warp capability.";
|
|
1834
1918
|
declare const WARP_HAS_SCHEDULE = "Entity must be idle to warp.";
|
|
1835
1919
|
declare const WARP_HAS_CARGO = "Entity must have no cargo to warp.";
|
|
@@ -1879,7 +1963,7 @@ interface ShipLike {
|
|
|
1879
1963
|
energy?: UInt16;
|
|
1880
1964
|
engines?: Types.movement_stats;
|
|
1881
1965
|
generator?: Types.energy_stats;
|
|
1882
|
-
|
|
1966
|
+
loader_lanes?: Types.loader_lane[];
|
|
1883
1967
|
hauler?: Types.hauler_stats;
|
|
1884
1968
|
capacity?: UInt32;
|
|
1885
1969
|
}
|
|
@@ -1897,6 +1981,7 @@ declare enum TaskType {
|
|
|
1897
1981
|
WARP = 6,
|
|
1898
1982
|
CRAFT = 7,
|
|
1899
1983
|
DEPLOY = 8,
|
|
1984
|
+
TRANSIT = 9,
|
|
1900
1985
|
UNWRAP = 10,
|
|
1901
1986
|
UNDEPLOY = 11,
|
|
1902
1987
|
DEMOLISH = 13,
|
|
@@ -2130,6 +2215,41 @@ declare class EntityInventory extends Types.cargo_item {
|
|
|
2130
2215
|
get isEmpty(): boolean;
|
|
2131
2216
|
}
|
|
2132
2217
|
|
|
2218
|
+
interface LoaderStats {
|
|
2219
|
+
mass: {
|
|
2220
|
+
toNumber(): number;
|
|
2221
|
+
multiplying(v: unknown): {
|
|
2222
|
+
toNumber(): number;
|
|
2223
|
+
};
|
|
2224
|
+
};
|
|
2225
|
+
thrust: {
|
|
2226
|
+
toNumber(): number;
|
|
2227
|
+
};
|
|
2228
|
+
quantity: {
|
|
2229
|
+
toNumber(): number;
|
|
2230
|
+
gt(v: unknown): boolean;
|
|
2231
|
+
};
|
|
2232
|
+
}
|
|
2233
|
+
interface GathererStats {
|
|
2234
|
+
yield: {
|
|
2235
|
+
toNumber(): number;
|
|
2236
|
+
};
|
|
2237
|
+
drain: {
|
|
2238
|
+
toNumber(): number;
|
|
2239
|
+
};
|
|
2240
|
+
depth: {
|
|
2241
|
+
toNumber(): number;
|
|
2242
|
+
toString(): string;
|
|
2243
|
+
};
|
|
2244
|
+
}
|
|
2245
|
+
interface CrafterStats {
|
|
2246
|
+
speed: {
|
|
2247
|
+
toNumber(): number;
|
|
2248
|
+
};
|
|
2249
|
+
drain: {
|
|
2250
|
+
toNumber(): number;
|
|
2251
|
+
};
|
|
2252
|
+
}
|
|
2133
2253
|
interface MovementCapability {
|
|
2134
2254
|
engines: Types.movement_stats;
|
|
2135
2255
|
generator: Types.energy_stats;
|
|
@@ -2143,10 +2263,10 @@ interface StorageCapability {
|
|
|
2143
2263
|
cargo: Types.cargo_item[];
|
|
2144
2264
|
}
|
|
2145
2265
|
interface LoaderCapability {
|
|
2146
|
-
loaders:
|
|
2266
|
+
loaders: LoaderStats;
|
|
2147
2267
|
}
|
|
2148
2268
|
interface GathererCapability {
|
|
2149
|
-
gatherer:
|
|
2269
|
+
gatherer: GathererStats;
|
|
2150
2270
|
}
|
|
2151
2271
|
interface MassCapability {
|
|
2152
2272
|
hullmass: UInt32;
|
|
@@ -2160,9 +2280,9 @@ interface EntityCapabilities {
|
|
|
2160
2280
|
capacity?: UInt32;
|
|
2161
2281
|
engines?: Types.movement_stats;
|
|
2162
2282
|
generator?: Types.energy_stats;
|
|
2163
|
-
loaders?:
|
|
2164
|
-
gatherer?:
|
|
2165
|
-
crafter?:
|
|
2283
|
+
loaders?: LoaderStats;
|
|
2284
|
+
gatherer?: GathererStats;
|
|
2285
|
+
crafter?: CrafterStats;
|
|
2166
2286
|
hauler?: Types.hauler_stats;
|
|
2167
2287
|
}
|
|
2168
2288
|
interface EntityState {
|
|
@@ -2723,6 +2843,57 @@ declare class LocationsManager extends BaseManager {
|
|
|
2723
2843
|
getStrata(coords: CoordinatesType, now?: BlockTimestamp): Promise<LocationStratum[]>;
|
|
2724
2844
|
}
|
|
2725
2845
|
|
|
2846
|
+
interface CoordinateAddress {
|
|
2847
|
+
sector: string;
|
|
2848
|
+
region: string;
|
|
2849
|
+
localX: number;
|
|
2850
|
+
localY: number;
|
|
2851
|
+
}
|
|
2852
|
+
declare function encodeAddress(seed: Checksum256Type, x: number, y: number): CoordinateAddress;
|
|
2853
|
+
declare function decodeAddress(seed: Checksum256Type, addr: CoordinateAddress): {
|
|
2854
|
+
x: number;
|
|
2855
|
+
y: number;
|
|
2856
|
+
};
|
|
2857
|
+
declare function addressFromCoordinates(seed: Checksum256Type, coords: {
|
|
2858
|
+
x: number | {
|
|
2859
|
+
toNumber(): number;
|
|
2860
|
+
};
|
|
2861
|
+
y: number | {
|
|
2862
|
+
toNumber(): number;
|
|
2863
|
+
};
|
|
2864
|
+
}): CoordinateAddress;
|
|
2865
|
+
|
|
2866
|
+
declare function encodeSector(seed: Checksum256Type, sx: number, sy: number): string;
|
|
2867
|
+
declare function decodeSector(seed: Checksum256Type, name: string): {
|
|
2868
|
+
sx: number;
|
|
2869
|
+
sy: number;
|
|
2870
|
+
};
|
|
2871
|
+
|
|
2872
|
+
declare function encodeRegion(seed: Checksum256Type, rx: number, ry: number): string;
|
|
2873
|
+
declare function decodeRegion(seed: Checksum256Type, token: string): {
|
|
2874
|
+
rx: number;
|
|
2875
|
+
ry: number;
|
|
2876
|
+
};
|
|
2877
|
+
|
|
2878
|
+
declare function encodeAddressMemo(seed: Checksum256Type, x: number, y: number): CoordinateAddress;
|
|
2879
|
+
|
|
2880
|
+
declare const COORD_MIN = -2147483648;
|
|
2881
|
+
declare const COORD_MAX = 2147483647;
|
|
2882
|
+
declare const COORD_OFFSET = 2147485000;
|
|
2883
|
+
declare const SECTOR_DIV = 100000000;
|
|
2884
|
+
declare const REGION_DIV = 10000;
|
|
2885
|
+
declare const SECTORS_PER_AXIS = 43;
|
|
2886
|
+
declare const REGION_PER_AXIS = 10000;
|
|
2887
|
+
declare const LOCAL_HALF = 5000;
|
|
2888
|
+
|
|
2889
|
+
declare class CoordinatesManager extends BaseManager {
|
|
2890
|
+
encode(x: number, y: number): Promise<CoordinateAddress>;
|
|
2891
|
+
decode(addr: CoordinateAddress): Promise<{
|
|
2892
|
+
x: number;
|
|
2893
|
+
y: number;
|
|
2894
|
+
}>;
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2726
2897
|
declare class EpochsManager extends BaseManager {
|
|
2727
2898
|
getCurrentHeight(): Promise<UInt64>;
|
|
2728
2899
|
getFinalizedEpoch(reload?: boolean): Promise<UInt64>;
|
|
@@ -2745,7 +2916,12 @@ type EntityRefInput = {
|
|
|
2745
2916
|
};
|
|
2746
2917
|
declare class ActionsManager extends BaseManager {
|
|
2747
2918
|
travel(shipId: UInt64Type, destination: CoordinatesType, recharge?: boolean): Action;
|
|
2919
|
+
private entityRefs;
|
|
2748
2920
|
grouptravel(entities: EntityRefInput[], destination: CoordinatesType, recharge?: boolean): Action;
|
|
2921
|
+
transit(shipId: UInt64Type, entrance: CoordinatesType, exit: CoordinatesType): Action;
|
|
2922
|
+
grouptransit(entities: EntityRefInput[], entrance: CoordinatesType, exit: CoordinatesType): Action;
|
|
2923
|
+
getwormhole(x: Int64Type, y: Int64Type): Action;
|
|
2924
|
+
getdistance(origin: CoordinatesType, destination: CoordinatesType): Action;
|
|
2749
2925
|
resolve(entityId: UInt64Type, count?: UInt64Type): Action;
|
|
2750
2926
|
resolveall(owner: NameType): Action;
|
|
2751
2927
|
cancel(entityId: UInt64Type, laneKey: number, count: UInt64Type): Action;
|
|
@@ -2756,9 +2932,16 @@ declare class ActionsManager extends BaseManager {
|
|
|
2756
2932
|
unload(id: UInt64Type, toId: UInt64Type, items: ActionParams.Type.cargo_item[]): Action;
|
|
2757
2933
|
foundCompany(account: NameType, name: string): Action;
|
|
2758
2934
|
join(account: NameType): Action;
|
|
2759
|
-
gather(sourceId: UInt64Type, destinationId: UInt64Type, stratum: UInt16Type, quantity: UInt32Type): Action;
|
|
2935
|
+
gather(sourceId: UInt64Type, destinationId: UInt64Type, stratum: UInt16Type, quantity: UInt32Type, slot?: UInt8Type): Action;
|
|
2936
|
+
bundleGather(gathers: {
|
|
2937
|
+
sourceId: UInt64Type;
|
|
2938
|
+
destinationId: UInt64Type;
|
|
2939
|
+
stratum: UInt16Type;
|
|
2940
|
+
quantity: UInt32Type;
|
|
2941
|
+
slot?: UInt8Type;
|
|
2942
|
+
}[]): Transaction;
|
|
2760
2943
|
warp(entityId: UInt64Type, destination: CoordinatesType): Action;
|
|
2761
|
-
craft(entityId: UInt64Type, recipeId: number, quantity: number, inputs: ActionParams.Type.cargo_item[], target?: UInt64Type): Action;
|
|
2944
|
+
craft(entityId: UInt64Type, recipeId: number, quantity: number, inputs: ActionParams.Type.cargo_item[], target?: UInt64Type, slot?: UInt8Type): Action;
|
|
2762
2945
|
blend(entityId: UInt64Type, inputs: ActionParams.Type.cargo_item[]): Action;
|
|
2763
2946
|
deploy(entityId: UInt64Type, ref: ActionParams.Type.cargo_ref): Action;
|
|
2764
2947
|
claimplot(entityId: UInt64Type, targetItemId: UInt16Type, coords: ActionParams.Type.coordinates): Action;
|
|
@@ -2810,7 +2993,7 @@ declare class NftManager extends BaseManager {
|
|
|
2810
2993
|
getWrapDeposit(itemType: number, tier: number): Promise<WrapDeposit | null>;
|
|
2811
2994
|
}
|
|
2812
2995
|
|
|
2813
|
-
type EntityInfo$
|
|
2996
|
+
type EntityInfo$2 = Types.entity_info;
|
|
2814
2997
|
interface BoundingBox {
|
|
2815
2998
|
min_x: number;
|
|
2816
2999
|
min_y: number;
|
|
@@ -3018,6 +3201,7 @@ declare class GameContext {
|
|
|
3018
3201
|
private _entities?;
|
|
3019
3202
|
private _players?;
|
|
3020
3203
|
private _locations?;
|
|
3204
|
+
private _coordinates?;
|
|
3021
3205
|
private _epochs?;
|
|
3022
3206
|
private _actions?;
|
|
3023
3207
|
private _nft?;
|
|
@@ -3029,6 +3213,7 @@ declare class GameContext {
|
|
|
3029
3213
|
get entities(): EntitiesManager;
|
|
3030
3214
|
get players(): PlayersManager;
|
|
3031
3215
|
get locations(): LocationsManager;
|
|
3216
|
+
get coordinates(): CoordinatesManager;
|
|
3032
3217
|
get epochs(): EpochsManager;
|
|
3033
3218
|
get actions(): ActionsManager;
|
|
3034
3219
|
get nft(): NftManager;
|
|
@@ -3081,6 +3266,7 @@ declare class Shipload {
|
|
|
3081
3266
|
get entities(): EntitiesManager;
|
|
3082
3267
|
get players(): PlayersManager;
|
|
3083
3268
|
get locations(): LocationsManager;
|
|
3269
|
+
get coordinates(): CoordinatesManager;
|
|
3084
3270
|
get epochs(): EpochsManager;
|
|
3085
3271
|
get actions(): ActionsManager;
|
|
3086
3272
|
get nft(): NftManager;
|
|
@@ -3252,6 +3438,7 @@ declare function isGatherableLocation(locationType: LocationType): boolean;
|
|
|
3252
3438
|
declare function getLocationTypeName(type: LocationType): string;
|
|
3253
3439
|
declare function getSystemName(gameSeed: Checksum256Type, location: CoordinatesType): string;
|
|
3254
3440
|
declare function hasSystem(gameSeed: Checksum256Type, coordinates: CoordinatesType): boolean;
|
|
3441
|
+
declare function getLocationKind(gameSeed: Checksum256Type, x: number, y: number): 'wormhole' | 'system' | 'empty';
|
|
3255
3442
|
declare function deriveLocationStatic(gameSeed: Checksum256Type, coordinates: CoordinatesType): Types.location_static;
|
|
3256
3443
|
declare function isLocationBuildable(gameSeed: Checksum256Type, coordinates: CoordinatesType): boolean;
|
|
3257
3444
|
declare function deriveLocation(gameSeed: Checksum256Type, coordinates: CoordinatesType): Types.location_derived;
|
|
@@ -3307,6 +3494,7 @@ declare function findNearbyPlanets(seed: Checksum256, origin: ActionParams.Type.
|
|
|
3307
3494
|
declare function calc_rechargetime(capacity: UInt32Type, energy: UInt32Type, recharge: UInt32Type): UInt32;
|
|
3308
3495
|
declare function calc_ship_rechargetime(ship: ShipLike): UInt32;
|
|
3309
3496
|
declare function calc_flighttime(distance: UInt64Type, acceleration: number): UInt32;
|
|
3497
|
+
declare function calc_transit_duration(ax: number, ay: number, bx: number, by: number): UInt32;
|
|
3310
3498
|
declare function calc_loader_flighttime(ship: ShipLike, mass: UInt64, altitude?: number): UInt32;
|
|
3311
3499
|
declare function calc_loader_acceleration(ship: ShipLike, mass: UInt64): number;
|
|
3312
3500
|
declare function calc_ship_flighttime(ship: ShipLike, mass: UInt64, distance: UInt64): UInt32;
|
|
@@ -3340,6 +3528,17 @@ interface EstimateTravelTimeOptions {
|
|
|
3340
3528
|
declare function estimateTravelTime(ship: ShipLike, travelMass: UInt64Type, distance: UInt64Type, options?: EstimateTravelTimeOptions): EstimatedTravelTime;
|
|
3341
3529
|
declare function estimateDealTravelTime(ship: ShipLike, shipMass: UInt64Type, distance: UInt64Type, loadMass: UInt32Type): UInt32;
|
|
3342
3530
|
declare function hasEnergyForDistance(ship: ShipLike, distance: UInt64Type): boolean;
|
|
3531
|
+
interface TransferLoaderLane {
|
|
3532
|
+
slot_index?: {
|
|
3533
|
+
toNumber(): number;
|
|
3534
|
+
} | number;
|
|
3535
|
+
thrust: {
|
|
3536
|
+
toNumber(): number;
|
|
3537
|
+
} | number;
|
|
3538
|
+
mass: {
|
|
3539
|
+
toNumber(): number;
|
|
3540
|
+
} | number;
|
|
3541
|
+
}
|
|
3343
3542
|
interface TransferEntity {
|
|
3344
3543
|
location: {
|
|
3345
3544
|
z?: {
|
|
@@ -3347,17 +3546,7 @@ interface TransferEntity {
|
|
|
3347
3546
|
} | number;
|
|
3348
3547
|
};
|
|
3349
3548
|
entityClass: EntityClass;
|
|
3350
|
-
|
|
3351
|
-
thrust: {
|
|
3352
|
-
toNumber(): number;
|
|
3353
|
-
} | number;
|
|
3354
|
-
mass: {
|
|
3355
|
-
toNumber(): number;
|
|
3356
|
-
} | number;
|
|
3357
|
-
quantity: {
|
|
3358
|
-
toNumber(): number;
|
|
3359
|
-
} | number;
|
|
3360
|
-
};
|
|
3549
|
+
loaderLanes?: TransferLoaderLane[];
|
|
3361
3550
|
}
|
|
3362
3551
|
interface HasScheduleAndLocation extends ScheduleData {
|
|
3363
3552
|
coordinates: ActionParams.Type.coordinates;
|
|
@@ -3366,13 +3555,38 @@ declare function getFlightOrigin(entity: HasScheduleAndLocation, flightTaskIndex
|
|
|
3366
3555
|
declare function getDestinationLocation(entity: HasScheduleAndLocation): ActionParams.Type.coordinates | undefined;
|
|
3367
3556
|
/** Returns chain-tile coordinates (rounded). For visual position use getInterpolatedPosition. */
|
|
3368
3557
|
declare function getPositionAt(entity: HasScheduleAndLocation, taskIndex: number, taskProgress: number): ActionParams.Type.coordinates;
|
|
3558
|
+
declare function calc_onesided_duration(loaderThrust: number, loaderMass: number, activeZ: number, counterpartZ: number, activeEntityClass: EntityClass, counterpartEntityClass: EntityClass, cargoMass: number): number;
|
|
3369
3559
|
declare function calc_transfer_duration(source: TransferEntity, dest: TransferEntity, cargoMass: number): number;
|
|
3370
3560
|
|
|
3371
3561
|
type ModuleEntry$2 = Types.module_entry;
|
|
3372
3562
|
type Lane = Types.lane;
|
|
3373
3563
|
type Schedule = Types.schedule;
|
|
3564
|
+
interface ResolvedGathererLane {
|
|
3565
|
+
slotIndex: number;
|
|
3566
|
+
yield: number;
|
|
3567
|
+
drain: number;
|
|
3568
|
+
depth: number;
|
|
3569
|
+
outputPct: number;
|
|
3570
|
+
}
|
|
3571
|
+
interface ResolvedCrafterLane {
|
|
3572
|
+
slotIndex: number;
|
|
3573
|
+
speed: number;
|
|
3574
|
+
drain: number;
|
|
3575
|
+
outputPct: number;
|
|
3576
|
+
}
|
|
3577
|
+
interface ResolvedLoaderLane {
|
|
3578
|
+
slotIndex: number;
|
|
3579
|
+
thrust: number;
|
|
3580
|
+
mass: number;
|
|
3581
|
+
outputPct: number;
|
|
3582
|
+
valid: boolean;
|
|
3583
|
+
}
|
|
3374
3584
|
declare function laneKeyForModule(slotIndex: number): number;
|
|
3375
|
-
declare function
|
|
3585
|
+
declare function resolveLaneGatherer(modules: ModuleEntry$2[], entityItemId: number, laneKey: number): ResolvedGathererLane;
|
|
3586
|
+
declare function selectGatherLane(modules: ModuleEntry$2[], entityItemId: number, lanes: Lane[], stratum: number, explicitSlot?: number): number;
|
|
3587
|
+
declare function resolveLaneCrafter(modules: ModuleEntry$2[], entityItemId: number, laneKey: number): ResolvedCrafterLane;
|
|
3588
|
+
declare function resolveLaneLoader(modules: ModuleEntry$2[], entityItemId: number, laneKey: number): ResolvedLoaderLane;
|
|
3589
|
+
declare function workerLaneKey(modules: ModuleEntry$2[], moduleSubtype: ModuleType, lanes: Lane[], stratum?: number): number;
|
|
3376
3590
|
declare function rawScheduleEnd(schedule: Schedule): Date;
|
|
3377
3591
|
declare function candidateLaneCompletesAt(entity: ScheduleData, laneKey: number, durationSec: number, now: Date): Date;
|
|
3378
3592
|
|
|
@@ -3429,11 +3643,13 @@ interface ProjectedEntity {
|
|
|
3429
3643
|
shipMass: UInt32;
|
|
3430
3644
|
capacity?: UInt64;
|
|
3431
3645
|
engines?: Types.movement_stats;
|
|
3432
|
-
|
|
3646
|
+
loaderLanes: Types.loader_lane[];
|
|
3433
3647
|
generator?: Types.energy_stats;
|
|
3434
3648
|
hauler?: Types.hauler_stats;
|
|
3435
3649
|
readonly cargoMass: UInt64;
|
|
3436
3650
|
readonly totalMass: UInt64;
|
|
3651
|
+
readonly gathererLanes: Types.gatherer_lane[];
|
|
3652
|
+
readonly crafterLanes: Types.crafter_lane[];
|
|
3437
3653
|
hasMovement(): boolean;
|
|
3438
3654
|
hasStorage(): boolean;
|
|
3439
3655
|
hasLoaders(): boolean;
|
|
@@ -3446,7 +3662,9 @@ interface Projectable extends ScheduleData {
|
|
|
3446
3662
|
hullmass?: UInt32;
|
|
3447
3663
|
generator?: Types.energy_stats;
|
|
3448
3664
|
engines?: Types.movement_stats;
|
|
3449
|
-
|
|
3665
|
+
loader_lanes?: Types.loader_lane[];
|
|
3666
|
+
gatherer_lanes?: Types.gatherer_lane[];
|
|
3667
|
+
crafter_lanes?: Types.crafter_lane[];
|
|
3450
3668
|
hauler?: Types.hauler_stats;
|
|
3451
3669
|
capacity?: UInt32;
|
|
3452
3670
|
cargo: Types.cargo_item[];
|
|
@@ -3475,13 +3693,57 @@ interface TaskCargoChange {
|
|
|
3475
3693
|
}
|
|
3476
3694
|
declare function taskCargoChanges(task: Types.task): TaskCargoChange[];
|
|
3477
3695
|
|
|
3478
|
-
type EntityInfo = Types.entity_info;
|
|
3479
|
-
type CounterpartLookup = (entityId: UInt64) => EntityInfo | undefined;
|
|
3696
|
+
type EntityInfo$1 = Types.entity_info;
|
|
3697
|
+
type CounterpartLookup = (entityId: UInt64) => EntityInfo$1 | undefined;
|
|
3480
3698
|
type IdleResolveTarget = ScheduleData & {
|
|
3481
3699
|
id: UInt64;
|
|
3482
3700
|
};
|
|
3483
3701
|
declare function composeIdleResolve(blocker: IdleResolveTarget, action: Action, actions: ActionsManager, now: Date, lookupCounterpart?: CounterpartLookup): Action[];
|
|
3484
3702
|
|
|
3703
|
+
declare enum CancelBlockReason {
|
|
3704
|
+
TASK_NEVER = "TASK_NEVER",
|
|
3705
|
+
BEFORE_START_RUNNING = "BEFORE_START_RUNNING",
|
|
3706
|
+
DONE = "DONE",
|
|
3707
|
+
CONTAINS_LINKED_TASK = "CONTAINS_LINKED_TASK",
|
|
3708
|
+
WOULD_STRAND = "WOULD_STRAND",
|
|
3709
|
+
WOULD_OVERFILL = "WOULD_OVERFILL",
|
|
3710
|
+
NOT_OWNER = "NOT_OWNER"
|
|
3711
|
+
}
|
|
3712
|
+
type EntityInfo = InstanceType<typeof Types.entity_info>;
|
|
3713
|
+
type EntityRef = InstanceType<typeof Types.entity_ref>;
|
|
3714
|
+
type CargoItem$2 = InstanceType<typeof Types.cargo_item>;
|
|
3715
|
+
interface CancelRefund {
|
|
3716
|
+
giver: EntityRef;
|
|
3717
|
+
cargo: CargoItem$2[];
|
|
3718
|
+
}
|
|
3719
|
+
interface CancelReleasedHold {
|
|
3720
|
+
counterpart: EntityRef;
|
|
3721
|
+
kind: number;
|
|
3722
|
+
}
|
|
3723
|
+
interface CancelEffects {
|
|
3724
|
+
refunds: CancelRefund[];
|
|
3725
|
+
releasedHolds: CancelReleasedHold[];
|
|
3726
|
+
abandonsRunning: boolean;
|
|
3727
|
+
keepsPlotDeposits?: {
|
|
3728
|
+
plot: EntityRef;
|
|
3729
|
+
};
|
|
3730
|
+
energyForfeited?: number;
|
|
3731
|
+
}
|
|
3732
|
+
interface CancelPlan {
|
|
3733
|
+
ok: boolean;
|
|
3734
|
+
blockedReason?: CancelBlockReason;
|
|
3735
|
+
range: {
|
|
3736
|
+
count: number;
|
|
3737
|
+
taskIndices: number[];
|
|
3738
|
+
};
|
|
3739
|
+
effects: CancelEffects;
|
|
3740
|
+
}
|
|
3741
|
+
interface CancelEligibilityInput {
|
|
3742
|
+
now: Date;
|
|
3743
|
+
counterparts?: Map<string, EntityInfo>;
|
|
3744
|
+
}
|
|
3745
|
+
declare function cancelEligibility(entity: EntityInfo, laneKey: number, fromTaskIndex: number, input: CancelEligibilityInput): CancelPlan;
|
|
3746
|
+
|
|
3485
3747
|
type Task = Types.task;
|
|
3486
3748
|
type CargoItem$1 = Types.cargo_item;
|
|
3487
3749
|
interface CargoEffect {
|
|
@@ -3513,9 +3775,7 @@ interface Entity {
|
|
|
3513
3775
|
entity_name: string;
|
|
3514
3776
|
location: Coordinates | Types.coordinates;
|
|
3515
3777
|
}
|
|
3516
|
-
type ShipEntity = Entity & Partial<MovementCapability> & Partial<EnergyCapability> & StorageCapability & Partial<LoaderCapability> & MassCapability & ScheduleCapability &
|
|
3517
|
-
gatherer?: Types.gatherer_stats;
|
|
3518
|
-
};
|
|
3778
|
+
type ShipEntity = Entity & Partial<MovementCapability> & Partial<EnergyCapability> & StorageCapability & Partial<LoaderCapability> & MassCapability & ScheduleCapability & Partial<GathererCapability>;
|
|
3519
3779
|
type WarehouseEntity = Entity & StorageCapability & Partial<LoaderCapability> & MassCapability & ScheduleCapability;
|
|
3520
3780
|
type ContainerEntity = Entity & StorageCapability & MassCapability & ScheduleCapability;
|
|
3521
3781
|
type AnyEntity = ShipEntity | WarehouseEntity | ContainerEntity;
|
|
@@ -3533,16 +3793,17 @@ declare function calcEnergyUsage(entity: MovementCapability, distance: UInt64):
|
|
|
3533
3793
|
declare function energyPercent(entity: MovementCapability & EnergyCapability): number;
|
|
3534
3794
|
declare function needsRecharge(entity: MovementCapability & EnergyCapability): boolean;
|
|
3535
3795
|
|
|
3536
|
-
declare
|
|
3537
|
-
declare function
|
|
3796
|
+
declare const GATHER_MASS_DIVISOR = 228;
|
|
3797
|
+
declare function calc_gather_duration(gatherer: GathererStats, itemMass: number, quantity: number, stratum: number, richness: number): UInt32;
|
|
3798
|
+
declare function calc_gather_rate(gatherer: GathererStats, itemMass: number, stratum: number, richness: number): {
|
|
3538
3799
|
unitsPerSec: number;
|
|
3539
3800
|
unitsPerMin: number;
|
|
3540
3801
|
secPerUnit: number;
|
|
3541
3802
|
};
|
|
3542
|
-
declare function calc_gather_energy(gatherer:
|
|
3803
|
+
declare function calc_gather_energy(gatherer: GathererStats, duration: number): UInt32;
|
|
3543
3804
|
|
|
3544
3805
|
interface CrafterCapability {
|
|
3545
|
-
crafter:
|
|
3806
|
+
crafter: CrafterStats;
|
|
3546
3807
|
}
|
|
3547
3808
|
declare function capsHasCrafter(caps: EntityCapabilities): boolean;
|
|
3548
3809
|
declare function calc_craft_duration(speed: number, totalInputMass: number): UInt32;
|
|
@@ -3699,6 +3960,25 @@ declare function computeWarehouseHullCapabilities(stats: Record<string, number>)
|
|
|
3699
3960
|
hullmass: number;
|
|
3700
3961
|
capacity: number;
|
|
3701
3962
|
};
|
|
3963
|
+
interface GathererLaneEntry {
|
|
3964
|
+
slotIndex: number;
|
|
3965
|
+
yield: number;
|
|
3966
|
+
drain: number;
|
|
3967
|
+
depth: number;
|
|
3968
|
+
outputPct: number;
|
|
3969
|
+
}
|
|
3970
|
+
interface CrafterLaneEntry {
|
|
3971
|
+
slotIndex: number;
|
|
3972
|
+
speed: number;
|
|
3973
|
+
drain: number;
|
|
3974
|
+
outputPct: number;
|
|
3975
|
+
}
|
|
3976
|
+
interface LoaderLaneEntry {
|
|
3977
|
+
slotIndex: number;
|
|
3978
|
+
mass: number;
|
|
3979
|
+
thrust: number;
|
|
3980
|
+
outputPct: number;
|
|
3981
|
+
}
|
|
3702
3982
|
interface ComputedCapabilities {
|
|
3703
3983
|
hullmass: number;
|
|
3704
3984
|
capacity: number;
|
|
@@ -3715,15 +3995,18 @@ interface ComputedCapabilities {
|
|
|
3715
3995
|
drain: number;
|
|
3716
3996
|
depth: number;
|
|
3717
3997
|
};
|
|
3998
|
+
gathererLanes?: GathererLaneEntry[];
|
|
3718
3999
|
loaders?: {
|
|
3719
4000
|
mass: number;
|
|
3720
4001
|
thrust: number;
|
|
3721
4002
|
quantity: number;
|
|
3722
4003
|
};
|
|
4004
|
+
loaderLanes?: LoaderLaneEntry[];
|
|
3723
4005
|
crafter?: {
|
|
3724
4006
|
speed: number;
|
|
3725
4007
|
drain: number;
|
|
3726
4008
|
};
|
|
4009
|
+
crafterLanes?: CrafterLaneEntry[];
|
|
3727
4010
|
hauler?: {
|
|
3728
4011
|
capacity: number;
|
|
3729
4012
|
efficiency: number;
|
|
@@ -3743,6 +4026,52 @@ declare function computeContainerT2Capabilities(stats: Record<string, number>):
|
|
|
3743
4026
|
capacity: number;
|
|
3744
4027
|
};
|
|
3745
4028
|
|
|
4029
|
+
declare const WH: {
|
|
4030
|
+
readonly RSIZE: 75;
|
|
4031
|
+
readonly ZONE: 16384;
|
|
4032
|
+
readonly THRESHOLD: 8192;
|
|
4033
|
+
readonly MIN_REACH: 50000;
|
|
4034
|
+
readonly TRANSIT_SPEED: 500;
|
|
4035
|
+
};
|
|
4036
|
+
declare function feistel(seed: Checksum256Type, idx: number, key: string): number;
|
|
4037
|
+
declare function feistelInv(seed: Checksum256Type, idx: number, key: string): number;
|
|
4038
|
+
type Region = {
|
|
4039
|
+
rx: number;
|
|
4040
|
+
ry: number;
|
|
4041
|
+
};
|
|
4042
|
+
declare function regionOf(x: number, y: number): Region;
|
|
4043
|
+
declare function partnerRegion(seed: Checksum256Type, R: Region): Region;
|
|
4044
|
+
declare function wormholeAtRegionEndpoint(seed: Checksum256Type, rx: number, ry: number): {
|
|
4045
|
+
from: {
|
|
4046
|
+
x: number;
|
|
4047
|
+
y: number;
|
|
4048
|
+
};
|
|
4049
|
+
to: {
|
|
4050
|
+
x: number;
|
|
4051
|
+
y: number;
|
|
4052
|
+
};
|
|
4053
|
+
} | null;
|
|
4054
|
+
declare function wormholeAt(seed: Checksum256Type, x: number, y: number): {
|
|
4055
|
+
x: number;
|
|
4056
|
+
y: number;
|
|
4057
|
+
} | null;
|
|
4058
|
+
declare function isValidWormholePair(seed: Checksum256Type, ax: number, ay: number, bx: number, by: number): boolean;
|
|
4059
|
+
|
|
4060
|
+
declare function rollupGatherer(lanes: Types.gatherer_lane[]): {
|
|
4061
|
+
yield: UInt16;
|
|
4062
|
+
drain: UInt32;
|
|
4063
|
+
depth: UInt16;
|
|
4064
|
+
} | undefined;
|
|
4065
|
+
declare function rollupCrafter(lanes: Types.crafter_lane[]): {
|
|
4066
|
+
speed: UInt16;
|
|
4067
|
+
drain: UInt32;
|
|
4068
|
+
} | undefined;
|
|
4069
|
+
declare function rollupLoaders(lanes: Types.loader_lane[]): {
|
|
4070
|
+
mass: UInt32;
|
|
4071
|
+
thrust: UInt16;
|
|
4072
|
+
quantity: UInt8;
|
|
4073
|
+
} | undefined;
|
|
4074
|
+
|
|
3746
4075
|
interface ResolvedItemStat {
|
|
3747
4076
|
key: string;
|
|
3748
4077
|
label: string;
|
|
@@ -3839,6 +4168,8 @@ declare function deserializeAsset(data: Record<string, any>, itemId: number): NF
|
|
|
3839
4168
|
|
|
3840
4169
|
declare function computeBaseHullmass(stats: bigint): number;
|
|
3841
4170
|
declare function computeBaseCapacityShip(stats: bigint): number;
|
|
4171
|
+
declare function computeBaseCapacityContainer(stats: bigint): number;
|
|
4172
|
+
declare function computeBaseCapacityContainerT2(stats: bigint): number;
|
|
3842
4173
|
declare function computeBaseCapacityWarehouse(stats: bigint): number;
|
|
3843
4174
|
declare const computeEngineThrust: (vol: number) => number;
|
|
3844
4175
|
declare const computeEngineDrain: (thm: number) => number;
|
|
@@ -3953,6 +4284,8 @@ declare const index_deserializeEntity: typeof deserializeEntity;
|
|
|
3953
4284
|
declare const index_deserializeAsset: typeof deserializeAsset;
|
|
3954
4285
|
declare const index_computeBaseHullmass: typeof computeBaseHullmass;
|
|
3955
4286
|
declare const index_computeBaseCapacityShip: typeof computeBaseCapacityShip;
|
|
4287
|
+
declare const index_computeBaseCapacityContainer: typeof computeBaseCapacityContainer;
|
|
4288
|
+
declare const index_computeBaseCapacityContainerT2: typeof computeBaseCapacityContainerT2;
|
|
3956
4289
|
declare const index_computeBaseCapacityWarehouse: typeof computeBaseCapacityWarehouse;
|
|
3957
4290
|
declare const index_computeEngineThrust: typeof computeEngineThrust;
|
|
3958
4291
|
declare const index_computeEngineDrain: typeof computeEngineDrain;
|
|
@@ -4013,6 +4346,8 @@ declare namespace index {
|
|
|
4013
4346
|
index_deserializeAsset as deserializeAsset,
|
|
4014
4347
|
index_computeBaseHullmass as computeBaseHullmass,
|
|
4015
4348
|
index_computeBaseCapacityShip as computeBaseCapacityShip,
|
|
4349
|
+
index_computeBaseCapacityContainer as computeBaseCapacityContainer,
|
|
4350
|
+
index_computeBaseCapacityContainerT2 as computeBaseCapacityContainerT2,
|
|
4016
4351
|
index_computeBaseCapacityWarehouse as computeBaseCapacityWarehouse,
|
|
4017
4352
|
index_computeEngineThrust as computeEngineThrust,
|
|
4018
4353
|
index_computeEngineDrain as computeEngineDrain,
|
|
@@ -4137,6 +4472,20 @@ declare function parseWireEntity(raw: WireEntity): Types.entity_info;
|
|
|
4137
4472
|
declare function setSubscriptionsDebug(on: boolean): void;
|
|
4138
4473
|
declare function isSubscriptionsDebugEnabled(): boolean;
|
|
4139
4474
|
|
|
4475
|
+
interface LanePlanEntry {
|
|
4476
|
+
slot: number;
|
|
4477
|
+
quantity: number;
|
|
4478
|
+
}
|
|
4479
|
+
type PlanTarget = {
|
|
4480
|
+
quantity: number;
|
|
4481
|
+
} | 'max';
|
|
4482
|
+
interface GatherPlanEntity extends Projectable {
|
|
4483
|
+
gatherer_lanes: Types.gatherer_lane[];
|
|
4484
|
+
loader_lanes: Types.loader_lane[];
|
|
4485
|
+
}
|
|
4486
|
+
declare function planParallelGather(entity: GatherPlanEntity, target: PlanTarget, stratum: number, now: Date): LanePlanEntry[];
|
|
4487
|
+
declare function planParallelTransfer(entity: GatherPlanEntity, target: PlanTarget): LanePlanEntry[];
|
|
4488
|
+
|
|
4140
4489
|
type Ship = Entity$1;
|
|
4141
4490
|
type Warehouse = Entity$1;
|
|
4142
4491
|
type Container = Entity$1;
|
|
@@ -4146,13 +4495,11 @@ type Nexus = Entity$1;
|
|
|
4146
4495
|
|
|
4147
4496
|
type movement_stats = Types.movement_stats;
|
|
4148
4497
|
type energy_stats = Types.energy_stats;
|
|
4149
|
-
type loader_stats = Types.loader_stats;
|
|
4150
4498
|
type lane = Types.lane;
|
|
4151
4499
|
type task = Types.task;
|
|
4152
4500
|
type cargo_item = Types.cargo_item;
|
|
4153
4501
|
type entity_row = Types.entity_row;
|
|
4154
|
-
type gatherer_stats = Types.gatherer_stats;
|
|
4155
4502
|
type location_static = Types.location_static;
|
|
4156
4503
|
type location_derived = Types.location_derived;
|
|
4157
4504
|
|
|
4158
|
-
export { ALL_ENTITY_TYPES, ATOMICASSETS_ACCOUNT, AckMessage, ActionsManager, AnyEntity, AtomicAssetRow, AtomicAttributeType, AtomicSchemaRow, BASE_ORBITAL_MASS, BLEND_INPUTS_MUST_MATCH, BLEND_REQUIRES_MULTIPLE, BLEND_STAT_LESS_NOT_SUPPORTED, BoundingBox, BoundsDeltaMessage, BoundsSubscriptionHandle, BroadEntitySubscriptionFilter, BuildMethod, BuildState, BuildableTarget, CANCEL_CONTAINS_GROUPED_TASK, CAP_DEMOLISH, CAP_MODULES, CAP_UNDEPLOY, CAP_WRAP, CATEGORY_LABELS, COMMIT_ALREADY_SET, COMMIT_CANNOT_MATCH, COMMIT_NOT_SET, COMPANY_NOT_FOUND, COMPONENT_TIER_PREFIXES, CONTAINER_NOT_FOUND, CONTAINER_Z, CRAFT_ENERGY_DIVISOR, CRAFT_EXCEEDS_ENERGY_CAPACITY, CRAFT_NOT_ENOUGH_ENERGY, CapabilityAttribute, CapabilityInput, CargoData, CargoMassInfo, CargoStack, CategoryInfo, CategoryStacks, ClientMessage, ComputedCapabilities, ConnectionState, ConstructionManager, Container, ContainerEntity, Coordinates, CoordinatesType, CounterpartLookup, CraftedItemCategory, CrafterCapability, DEPLOY_ENTITY_HAS_SCHEDULE, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, DESTINATION_CAPACITY_EXCEEDED, DecodedAtomicAsset, DerivedStratum, DescribeOptions, DisplayNameResult, Distance, ENTITY_ALREADY_THERE, ENTITY_CAPACITY_EXCEEDED, ENTITY_CARGO_NOT_LOADED, ENTITY_CARGO_NOT_OWNED, ENTITY_CONTAINER, ENTITY_EXTRACTOR, ENTITY_FACTORY, ENTITY_INVALID_CARGO, ENTITY_INVALID_DESTINATION, ENTITY_INVALID_TRAVEL_DURATION, ENTITY_NEXUS, ENTITY_NOT_ENOUGH_ENERGY, ENTITY_NOT_ENOUGH_ENERGY_CAPACITY, ENTITY_NO_CRAFTER, ENTITY_SHIP, ENTITY_WAREHOUSE, EPOCH_NON_ZERO, EPOCH_NOT_READY, ERROR_SYSTEM_ALREADY_INITIALIZED, ERROR_SYSTEM_DISABLED, ERROR_SYSTEM_NOT_INITIALIZED, EffectiveReserveInput, EnergyCapability, EntitiesManager, EntitiesSubscriptionHandle, Entity$1 as Entity, EntityCapabilities, EntityClass, EntityDeletedMessage, EntityInfo$1 as EntityInfo, EntityInstance, EntityInventory, EntityLayout, EntityRefInput, EntitySlot, EntityState, EntityStateInput, EntitySubscriptionFilter, EntitySubscriptionHandle, EntitySubscriptionHandlers, EntitySubscriptionMeta, EntityTypeName, EpochInfo, EpochsManager, ErrorMessage, EstimateTravelTimeOptions, EstimatedTravelTime, EventCatchupCompleteMessage, EventMessage, ExactEntitySubscriptionFilter, Extractor, Factory, FetchAssetsOptions, FinalizerCapability, FinalizerEntityRef, FloatPosition, GAME_NOT_FOUND, GAME_SEED_NOT_SET, GATHERER_DEPTH_MAX_TIER, GATHERER_DEPTH_TABLE, GATHER_EXCEEDS_ENERGY_CAPACITY, GATHER_NOT_ENOUGH_ENERGY, GROUP_DUPLICATE_ENTITY, GROUP_EMPTY, GROUP_ENTITY_NOT_MOVABLE, GROUP_HAUL_CAPACITY_EXCEEDED, GROUP_NOT_FOUND, GROUP_NOT_SAME_LOCATION, GROUP_NOT_SAME_OWNER, GROUP_NO_THRUST, GameState, GathererCapability, GathererDepthParams, HasCapacity, HasCargo, HasCargomass, HasScheduleAndLocation, HoldKind, INSUFFICIENT_BALANCE, INSUFFICIENT_ITEM_QUANTITY, INSUFFICIENT_ITEM_SUPPLY, INVALID_AMOUNT, ITEM_BATTERY_T1, ITEM_BEAM, ITEM_BIOMASS_T1, ITEM_BIOMASS_T10, ITEM_BIOMASS_T2, ITEM_BIOMASS_T3, ITEM_BIOMASS_T4, ITEM_BIOMASS_T5, ITEM_BIOMASS_T6, ITEM_BIOMASS_T7, ITEM_BIOMASS_T8, ITEM_BIOMASS_T9, ITEM_CERAMIC, ITEM_CONTAINER_T1_PACKED, ITEM_CONTAINER_T2_PACKED, ITEM_CRAFTER_T1, ITEM_CRYSTAL_T1, ITEM_CRYSTAL_T10, ITEM_CRYSTAL_T2, ITEM_CRYSTAL_T3, ITEM_CRYSTAL_T4, ITEM_CRYSTAL_T5, ITEM_CRYSTAL_T6, ITEM_CRYSTAL_T7, ITEM_CRYSTAL_T8, ITEM_CRYSTAL_T9, ITEM_DOES_NOT_EXIST, ITEM_ENGINE_T1, ITEM_EXTRACTOR_T1_PACKED, ITEM_FACTORY_T1_PACKED, ITEM_FRAME, ITEM_FRAME_T2, ITEM_GAS_T1, ITEM_GAS_T10, ITEM_GAS_T2, ITEM_GAS_T3, ITEM_GAS_T4, ITEM_GAS_T5, ITEM_GAS_T6, ITEM_GAS_T7, ITEM_GAS_T8, ITEM_GAS_T9, ITEM_GATHERER_T1, ITEM_GENERATOR_T1, ITEM_HAULER_T1, ITEM_LOADER_T1, ITEM_NOT_AVAILABLE_AT_LOCATION, ITEM_NOT_DEPLOYABLE, ITEM_NOT_PACKED_ENTITY, ITEM_ORE_T1, ITEM_ORE_T10, ITEM_ORE_T2, ITEM_ORE_T3, ITEM_ORE_T4, ITEM_ORE_T5, ITEM_ORE_T6, ITEM_ORE_T7, ITEM_ORE_T8, ITEM_ORE_T9, ITEM_PLASMA_CELL, ITEM_PLATE, ITEM_PLATE_T2, ITEM_POLYMER, ITEM_REACTOR, ITEM_REGOLITH_T1, ITEM_REGOLITH_T10, ITEM_REGOLITH_T2, ITEM_REGOLITH_T3, ITEM_REGOLITH_T4, ITEM_REGOLITH_T5, ITEM_REGOLITH_T6, ITEM_REGOLITH_T7, ITEM_REGOLITH_T8, ITEM_REGOLITH_T9, ITEM_RESIN, ITEM_RESONATOR, ITEM_SENSOR, ITEM_SHIP_T1_PACKED, ITEM_STORAGE_T1, ITEM_TYPE_COMPONENT, ITEM_TYPE_ENTITY, ITEM_TYPE_MODULE, ITEM_TYPE_RESOURCE, ITEM_WAREHOUSE_T1_PACKED, ITEM_WARP_T1, IdleResolveTarget, ImmutableEntry, ImmutableModuleSlot, InboundTransfer, InstalledModule, InventoryAccessor, Item, ItemType, KindMeta, LANE_BARRIER, LANE_MOBILITY, LOCATION_MAX_DEPTH, LOCATION_MIN_DEPTH, LaneView, LoadTimeBreakdown, LoaderCapability, Location, LocationStratum, LocationType, LocationsManager, MAX_ORBITAL_ALTITUDE, MAX_STARS_PER_STAT, MAX_STAR_RATING, MIN_ORBITAL_ALTITUDE, MIN_TRANSFER_DISTANCE_ORBITAL_VESSEL, MIN_TRANSFER_DISTANCE_PLANETARY_STRUCTURE, MODULE_ANY, MODULE_BATTERY, MODULE_CARGO_NOT_FOUND, MODULE_CRAFTER, MODULE_ENGINE, MODULE_ENTITY_BUSY, MODULE_GATHERER, MODULE_GENERATOR, MODULE_HAULER, MODULE_LAUNCHER, MODULE_LOADER, MODULE_NOT_MODULE, MODULE_SLOT_EMPTY, MODULE_SLOT_INVALID, MODULE_SLOT_OCCUPIED, MODULE_STORAGE, MODULE_TIER_PREFIXES, MODULE_TYPE_MISMATCH, MODULE_WARP, MassCapability, MintAssetParams, ModuleDescription, ModuleEntry, ModuleType, MovementCapability, index as NFT, NFTCargoItem, NFTCommonBase, NFTInstalledModule, NFTModuleSlot, NO_SCHEDULE, NamedStats, Nexus, NftConfigForItem, NftManager, OrderedTask, OwnerSubscriptionHandle, PLANETARY_STRUCTURE_Z, 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, PLAYER_NOT_JOINED, PRECISION, PackedModule, PackedModuleInput, PingMessage, PlanetSubtypeInfo, platform as PlatformContract, Types$1 as PlatformTypes, Player, PlayerStateInput, PlayersManager, PongMessage, Projectable, ProjectedEntity, ProjectionOptions, RECIPE_INPUTS_EXCESS, RECIPE_INPUTS_INSUFFICIENT, RECIPE_INPUTS_INVALID, RECIPE_INPUTS_MIXED, RECIPE_NOT_FOUND, REQUIRES_MORE_THAN_ONE, REQUIRES_POSITIVE_VALUE, RESERVE_TIERS, RESOLVE_COUNT_EXCEEDS_COMPLETED, RESOURCE_TIER_ADJECTIVES, RawData, Recipe, RecipeInput, RecipeSlotInput, RenderDescriptionOptions, Reservation, ReserveTier, ResolvedAttributeGroup, ResolvedEvent, ResolvedItem, ResolvedItemStat, ResolvedItemType, ResolvedModuleSlot, ResourceCategory, ResourceStats, SHIPLOAD_COLLECTION, SHIP_ALREADY_TRAVELING, SHIP_CANNOT_BUY_TRAVELING, SHIP_CANNOT_CANCEL_TASK, SHIP_CANNOT_UPDATE_TRAVELING, SHIP_NOT_ARRIVED, SHIP_NOT_FOUND, SHIP_NOT_IDLE, SHIP_NOT_OWNED, SHIP_NO_COMPLETED_TASKS, SHIP_NO_TASKS_TO_CANCEL, SLOT_FORMULAS, STAR_STEP, ScheduleAccessor, ScheduleCapability, ScheduleData, ScheduledBuild, SchemaField, server as ServerContract, ServerMessage, Types as ServerTypes, Ship, ShipEntity, ShipLike, Shipload, SlotConsumer, SlotConsumerKind, SnapshotMessage, SourceCargoStack, SourceEntityRef, StackInput, StatDefinition, StatMapping, StatSlot, StorageCapability, StratumInfo, SubscribeEntityMessage, SubscribeEventsMessage, SubscribeMessage, SubscriptionEntityType, SubscriptionsManager, SubscriptionsOptions, TIER_ROLL_MAX, TRAVEL_MAX_DURATION, TaskCancelable, TaskCargoChange, TaskCargoDirection, TaskType, TemplateMeta, TextSpan, TierRange, TransferEntity, UnsubscribeEntityMessage, UnsubscribeEventsMessage, UnsubscribeMessage, UpdateBoundsMessage, UpdateMessage, ValidateDisplayNameOptions, WAREHOUSE_ALREADY_AT_LOCATION, WAREHOUSE_NOT_FOUND, WARP_HAS_CARGO, WARP_HAS_SCHEDULE, WARP_NOT_FULL_ENERGY, WARP_NO_CAPABILITY, WARP_OUT_OF_RANGE, Warehouse, WarehouseEntity, WebSocketConnection, WebSocketConnectionOptions, WireCoordinates, WireEntity, WrapDeposit, YIELD_FRACTION_DEEP, YIELD_FRACTION_SHALLOW, allBuildableItems, allPlotBuildableItems, availableBuildMethods, availableCapacity$1 as availableCapacity, availableCapacityFromMass, availableForItem, baseName, blendCargoStacks, blendComponentStacks, blendCrossGroup, blendStacks, buildComponentImmutable, buildEntityDescription, buildEntityImmutable, buildImmutableData, buildMintAssetAction, buildModuleImmutable, buildResourceImmutable, calcCargoItemMass, calcCargoMass, calcEnergyUsage, calcStacksMass, calc_acceleration, calc_craft_duration, calc_craft_energy, calc_energyusage, calc_flighttime, calc_gather_duration, calc_gather_energy, calc_gather_rate, 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, candidateLaneCompletesAt, capabilityAttributes, capabilityNames, capsHasCrafter, capsHasGatherer, capsHasHauler, capsHasLoaders, capsHasMass, capsHasMovement, capsHasStorage, cargoItem, cargoItemToStack, cargoReadyAt, cargoRef, cargoUtils, cargo_item, categoryColors, categoryFromIndex, categoryLabel, categoryLabelFromIndex, componentIcon, composeIdleResolve, computeBaseCapacity, computeBaseCapacityShip, computeBaseCapacityWarehouse, computeBaseHullmass, computeComponentStats, computeContainerCapabilities, computeContainerT2Capabilities, computeCraftedOutputStats, computeCrafterCapabilities, computeCrafterDrain, computeCrafterSpeed, computeEngineCapabilities, computeEngineDrain, computeEngineThrust, computeEntityCapabilities, computeEntityStats, computeGathererCapabilities, computeGathererDepth, computeGathererDrain, computeGathererYield, computeGeneratorCap, computeGeneratorCapabilities, computeGeneratorRech, computeHaulPenalty, computeHaulerCapabilities, computeHaulerCapacity, computeHaulerDrain$1 as computeHaulerDrain, computeHaulerEfficiency, computeInputMass, computeLoaderCapabilities, computeLoaderMass, computeLoaderThrust, computeNftImageUrl, computeShipHullCapabilities, computeStorageCapabilities, computeWarehouseHullCapabilities, computeWarpCapabilities, computeWarpRange, coordsToLocationId, createInventoryAccessor, createProjectedEntity, createScheduleAccessor, decodeAtomicAsset, decodeCraftedItemStats, decodeStat, decodeStats, Shipload as default, deriveLocation, deriveLocationSize, deriveLocationStatic, deriveResourceStats, deriveStatMappings, deriveStrata, deriveStratum, describeItem, describeModule, describeModuleForItem, describeModuleForSlot, deserializeAsset, deserializeAtomicData, deserializeComponent, deserializeEntity, deserializeModule, deserializeResource, displayName, distanceBetweenCoordinates, distanceBetweenPoints, easeFlightProgress, encodeGatheredCargoStats, encodeStats, energyAtTime, energyPercent, energy_stats, entityDisplayName, entity_row, estimateDealTravelTime, estimateTravelTime, fetchAtomicAssetsForOwner, fetchAtomicSchemas, filterByBuildMethod, findNearbyPlanets, flightSpeedFactor, formatLocation, formatMass, formatMassDelta, formatMassScaled, formatModuleLine, formatTier, gathererDepthForTier, gatherer_stats, getCapabilityAttributes, getCategoryInfo, getComponents, getCurrentEpoch, getDepthThreshold, getDestinationLocation, getEffectiveReserve, getEligibleResources, getEntityClass, getEntityItems, getEntityLayout, getEpochInfo, getFlightOrigin, getInterpolatedPosition, getItem, getItems, getKindMeta, getLocationCandidates, getLocationProfile, getLocationType, getLocationTypeName, getModuleCapabilityType, getModules, getPackedEntityType, getPlanetSubtype, getPlanetSubtypes, getPositionAt, getRecipe, getResourceTier, getResourceWeight, getResources, getStatDefinitions, getStatMappings, getStatMappingsForCapability, getStatMappingsForStat, getStatName, getSystemName, getTemplateMeta, hasEnergy, hasEnergyForDistance, hasGatherer, hasLoaders, hasMass, hasSchedule, hasSpace$1 as hasSpace, hasSpaceForMass, hasStorage, hasSystem, hash, hash512, interpolateFlightPosition, isBuildable, isContainer, isCraftedItem, isExtractor, isFactory, isFull$1 as isFull, isFullFromMass, isGatherableLocation, isInvertedAttribute, isLocationBuildable, isModuleItem, isNexus, isPlot, isPlotBuildable, isRelatedItem, isShip, isSubscriptionsDebugEnabled, isWarehouse, itemAbbreviations, itemCategory, itemIds, itemOffset, itemTier, itemTypeCode, kindCan, lane, laneKeyForModule, lerp, loader_stats, location_derived, location_static, makeEntity, mapEntity, maxCraftable, maxTravelDistance, mergeStacks, moduleAccepts, moduleDisplayName, moduleIcon, moduleSlotTypeToCode, movement_stats, needsRecharge, normalizeDisplayName, parseWireEntity, projectEntity, projectEntityAt, projectRemainingAt, projectedCargoAvailableAt, rawScheduleEnd, readCommonBase, removeFromStacks, renderDescription, resolveItem, resolveItemCategory, resolveLockedAmount, resolveStats, rollTier, rollWithinTier, rotation, schedule, setSubscriptionsDebug, stackKey, stackToCargoItem, stacksEqual, starRating, starsForStat, statMagnitude, subtractFromStacks, task, taskCargoChanges, taskCargoEffect, tierAdjective, tierColors, tierOfReserve, toLocation, typeLabel, validateDisplayName, validateSchedule, workerLaneKey, yieldThresholdAt };
|
|
4505
|
+
export { ALL_ENTITY_TYPES, ATOMICASSETS_ACCOUNT, AckMessage, ActionsManager, AnyEntity, AtomicAssetRow, AtomicAttributeType, AtomicSchemaRow, BASE_ORBITAL_MASS, BLEND_INPUTS_MUST_MATCH, BLEND_REQUIRES_MULTIPLE, BLEND_STAT_LESS_NOT_SUPPORTED, BoundingBox, BoundsDeltaMessage, BoundsSubscriptionHandle, BroadEntitySubscriptionFilter, BuildMethod, BuildState, BuildableTarget, CANCEL_CONTAINS_GROUPED_TASK, CAP_DEMOLISH, CAP_MODULES, CAP_UNDEPLOY, CAP_WRAP, CATEGORY_LABELS, COMMIT_ALREADY_SET, COMMIT_CANNOT_MATCH, COMMIT_NOT_SET, COMPANY_NOT_FOUND, COMPONENT_TIER_PREFIXES, CONTAINER_NOT_FOUND, CONTAINER_Z, COORD_MAX, COORD_MIN, COORD_OFFSET, CRAFT_ENERGY_DIVISOR, CRAFT_EXCEEDS_ENERGY_CAPACITY, CRAFT_NOT_ENOUGH_ENERGY, CancelBlockReason, CancelEffects, CancelEligibilityInput, CancelPlan, CancelRefund, CancelReleasedHold, CapabilityAttribute, CapabilityInput, CargoData, CargoMassInfo, CargoStack, CategoryInfo, CategoryStacks, ClientMessage, ComputedCapabilities, ConnectionState, ConstructionManager, Container, ContainerEntity, CoordinateAddress, Coordinates, CoordinatesType, CounterpartLookup, CraftedItemCategory, CrafterCapability, CrafterStats, DEPLOY_ENTITY_HAS_SCHEDULE, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, DESTINATION_CAPACITY_EXCEEDED, DecodedAtomicAsset, DerivedStratum, DescribeOptions, DisplayNameResult, Distance, ENTITY_ALREADY_THERE, ENTITY_CAPACITY_EXCEEDED, ENTITY_CARGO_NOT_LOADED, ENTITY_CARGO_NOT_OWNED, ENTITY_CONTAINER, ENTITY_EXTRACTOR, ENTITY_FACTORY, ENTITY_INVALID_CARGO, ENTITY_INVALID_DESTINATION, ENTITY_INVALID_TRAVEL_DURATION, ENTITY_NEXUS, ENTITY_NOT_ENOUGH_ENERGY, ENTITY_NOT_ENOUGH_ENERGY_CAPACITY, ENTITY_NO_CRAFTER, ENTITY_SHIP, ENTITY_WAREHOUSE, EPOCH_NON_ZERO, EPOCH_NOT_READY, ERROR_SYSTEM_ALREADY_INITIALIZED, ERROR_SYSTEM_DISABLED, ERROR_SYSTEM_NOT_INITIALIZED, EffectiveReserveInput, EnergyCapability, EntitiesManager, EntitiesSubscriptionHandle, Entity$1 as Entity, EntityCapabilities, EntityClass, EntityDeletedMessage, EntityInfo$2 as EntityInfo, EntityInstance, EntityInventory, EntityLayout, EntityRefInput, EntitySlot, EntityState, EntityStateInput, EntitySubscriptionFilter, EntitySubscriptionHandle, EntitySubscriptionHandlers, EntitySubscriptionMeta, EntityTypeName, EpochInfo, EpochsManager, ErrorMessage, EstimateTravelTimeOptions, EstimatedTravelTime, EventCatchupCompleteMessage, EventMessage, ExactEntitySubscriptionFilter, Extractor, Factory, FetchAssetsOptions, FinalizerCapability, FinalizerEntityRef, FloatPosition, GAME_NOT_FOUND, GAME_SEED_NOT_SET, GATHERER_DEPTH_MAX_TIER, GATHERER_DEPTH_TABLE, GATHER_EXCEEDS_ENERGY_CAPACITY, GATHER_MASS_DIVISOR, GATHER_NOT_ENOUGH_ENERGY, GROUP_DUPLICATE_ENTITY, GROUP_EMPTY, GROUP_ENTITY_NOT_MOVABLE, GROUP_HAUL_CAPACITY_EXCEEDED, GROUP_NOT_FOUND, GROUP_NOT_SAME_LOCATION, GROUP_NOT_SAME_OWNER, GROUP_NO_THRUST, GameState, GatherPlanEntity, GathererCapability, GathererDepthParams, GathererStats, HasCapacity, HasCargo, HasCargomass, HasScheduleAndLocation, HoldKind, INSUFFICIENT_BALANCE, INSUFFICIENT_ITEM_QUANTITY, INSUFFICIENT_ITEM_SUPPLY, INVALID_AMOUNT, ITEM_BATTERY_T1, ITEM_BEAM, ITEM_BIOMASS_T1, ITEM_BIOMASS_T10, ITEM_BIOMASS_T2, ITEM_BIOMASS_T3, ITEM_BIOMASS_T4, ITEM_BIOMASS_T5, ITEM_BIOMASS_T6, ITEM_BIOMASS_T7, ITEM_BIOMASS_T8, ITEM_BIOMASS_T9, ITEM_CERAMIC, ITEM_CONTAINER_T1_PACKED, ITEM_CONTAINER_T2_PACKED, ITEM_CRAFTER_T1, ITEM_CRYSTAL_T1, ITEM_CRYSTAL_T10, ITEM_CRYSTAL_T2, ITEM_CRYSTAL_T3, ITEM_CRYSTAL_T4, ITEM_CRYSTAL_T5, ITEM_CRYSTAL_T6, ITEM_CRYSTAL_T7, ITEM_CRYSTAL_T8, ITEM_CRYSTAL_T9, ITEM_DOES_NOT_EXIST, ITEM_ENGINE_T1, ITEM_EXTRACTOR_T1_PACKED, ITEM_FACTORY_T1_PACKED, ITEM_FRAME, ITEM_FRAME_T2, ITEM_GAS_T1, ITEM_GAS_T10, ITEM_GAS_T2, ITEM_GAS_T3, ITEM_GAS_T4, ITEM_GAS_T5, ITEM_GAS_T6, ITEM_GAS_T7, ITEM_GAS_T8, ITEM_GAS_T9, ITEM_GATHERER_T1, ITEM_GENERATOR_T1, ITEM_HAULER_T1, ITEM_LOADER_T1, ITEM_NOT_AVAILABLE_AT_LOCATION, ITEM_NOT_DEPLOYABLE, ITEM_NOT_PACKED_ENTITY, ITEM_ORE_T1, ITEM_ORE_T10, ITEM_ORE_T2, ITEM_ORE_T3, ITEM_ORE_T4, ITEM_ORE_T5, ITEM_ORE_T6, ITEM_ORE_T7, ITEM_ORE_T8, ITEM_ORE_T9, ITEM_PLASMA_CELL, ITEM_PLATE, ITEM_PLATE_T2, ITEM_POLYMER, ITEM_REACTOR, ITEM_REGOLITH_T1, ITEM_REGOLITH_T10, ITEM_REGOLITH_T2, ITEM_REGOLITH_T3, ITEM_REGOLITH_T4, ITEM_REGOLITH_T5, ITEM_REGOLITH_T6, ITEM_REGOLITH_T7, ITEM_REGOLITH_T8, ITEM_REGOLITH_T9, ITEM_RESIN, ITEM_RESONATOR, ITEM_SENSOR, ITEM_SHIP_T1_PACKED, ITEM_STORAGE_T1, ITEM_TYPE_COMPONENT, ITEM_TYPE_ENTITY, ITEM_TYPE_MODULE, ITEM_TYPE_RESOURCE, ITEM_WAREHOUSE_T1_PACKED, ITEM_WARP_T1, IdleResolveTarget, ImmutableEntry, ImmutableModuleSlot, InboundTransfer, InstalledModule, InventoryAccessor, Item, ItemType, KindMeta, LANE_BARRIER, LANE_MOBILITY, LOCAL_HALF, LOCATION_MAX_DEPTH, LOCATION_MIN_DEPTH, LanePlanEntry, LaneView, LoadTimeBreakdown, LoaderCapability, LoaderStats, Location, LocationStratum, LocationType, LocationsManager, MAX_ORBITAL_ALTITUDE, MAX_STARS_PER_STAT, MAX_STAR_RATING, MIN_ORBITAL_ALTITUDE, MIN_TRANSFER_DISTANCE_ORBITAL_VESSEL, MIN_TRANSFER_DISTANCE_PLANETARY_STRUCTURE, MODULE_ANY, MODULE_BATTERY, MODULE_CARGO_NOT_FOUND, MODULE_CRAFTER, MODULE_ENGINE, MODULE_ENTITY_BUSY, MODULE_GATHERER, MODULE_GENERATOR, MODULE_HAULER, MODULE_LAUNCHER, MODULE_LOADER, MODULE_NOT_MODULE, MODULE_SLOT_EMPTY, MODULE_SLOT_INVALID, MODULE_SLOT_OCCUPIED, MODULE_STORAGE, MODULE_TIER_PREFIXES, MODULE_TYPE_MISMATCH, MODULE_WARP, MassCapability, MintAssetParams, ModuleDescription, ModuleEntry, ModuleType, MovementCapability, index as NFT, NFTCargoItem, NFTCommonBase, NFTInstalledModule, NFTModuleSlot, NO_SCHEDULE, NamedStats, Nexus, NftConfigForItem, NftManager, OrderedTask, OwnerSubscriptionHandle, PLANETARY_STRUCTURE_Z, 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, PLAYER_NOT_JOINED, PRECISION, PackedModule, PackedModuleInput, PingMessage, PlanTarget, PlanetSubtypeInfo, platform as PlatformContract, Types$1 as PlatformTypes, Player, PlayerStateInput, PlayersManager, PongMessage, Projectable, ProjectedEntity, ProjectionOptions, RECIPE_INPUTS_EXCESS, RECIPE_INPUTS_INSUFFICIENT, RECIPE_INPUTS_INVALID, RECIPE_INPUTS_MIXED, RECIPE_NOT_FOUND, REGION_DIV, REGION_PER_AXIS, REQUIRES_MORE_THAN_ONE, REQUIRES_POSITIVE_VALUE, RESERVE_TIERS, RESOLVE_COUNT_EXCEEDS_COMPLETED, RESOURCE_TIER_ADJECTIVES, RawData, Recipe, RecipeInput, RecipeSlotInput, RenderDescriptionOptions, Reservation, ReserveTier, ResolvedAttributeGroup, ResolvedCrafterLane, ResolvedEvent, ResolvedGathererLane, ResolvedItem, ResolvedItemStat, ResolvedItemType, ResolvedLoaderLane, ResolvedModuleSlot, ResourceCategory, ResourceStats, SECTORS_PER_AXIS, SECTOR_DIV, SHIPLOAD_COLLECTION, SHIP_ALREADY_TRAVELING, SHIP_CANNOT_BUY_TRAVELING, SHIP_CANNOT_CANCEL_TASK, SHIP_CANNOT_UPDATE_TRAVELING, SHIP_NOT_ARRIVED, SHIP_NOT_FOUND, SHIP_NOT_IDLE, SHIP_NOT_OWNED, SHIP_NO_COMPLETED_TASKS, SHIP_NO_TASKS_TO_CANCEL, SLOT_FORMULAS, STAR_STEP, ScheduleAccessor, ScheduleCapability, ScheduleData, ScheduledBuild, SchemaField, server as ServerContract, ServerMessage, Types as ServerTypes, Ship, ShipEntity, ShipLike, Shipload, SlotConsumer, SlotConsumerKind, SnapshotMessage, SourceCargoStack, SourceEntityRef, StackInput, StatDefinition, StatMapping, StatSlot, StorageCapability, StratumInfo, SubscribeEntityMessage, SubscribeEventsMessage, SubscribeMessage, SubscriptionEntityType, SubscriptionsManager, SubscriptionsOptions, TIER_ROLL_MAX, TRAVEL_MAX_DURATION, TaskCancelable, TaskCargoChange, TaskCargoDirection, TaskType, TemplateMeta, TextSpan, TierRange, TransferEntity, UnsubscribeEntityMessage, UnsubscribeEventsMessage, UnsubscribeMessage, UpdateBoundsMessage, UpdateMessage, ValidateDisplayNameOptions, WAREHOUSE_ALREADY_AT_LOCATION, WAREHOUSE_NOT_FOUND, WARP_HAS_CARGO, WARP_HAS_SCHEDULE, WARP_NOT_FULL_ENERGY, WARP_NO_CAPABILITY, WARP_OUT_OF_RANGE, WH, WOULD_OVERFILL, WOULD_STRAND, Warehouse, WarehouseEntity, WebSocketConnection, WebSocketConnectionOptions, WireCoordinates, WireEntity, WrapDeposit, YIELD_FRACTION_DEEP, YIELD_FRACTION_SHALLOW, addressFromCoordinates, allBuildableItems, allPlotBuildableItems, availableBuildMethods, availableCapacity$1 as availableCapacity, availableCapacityFromMass, availableForItem, baseName, blendCargoStacks, blendComponentStacks, blendCrossGroup, blendStacks, buildComponentImmutable, buildEntityDescription, buildEntityImmutable, buildImmutableData, buildMintAssetAction, buildModuleImmutable, buildResourceImmutable, calcCargoItemMass, calcCargoMass, calcEnergyUsage, calcStacksMass, calc_acceleration, calc_craft_duration, calc_craft_energy, calc_energyusage, calc_flighttime, calc_gather_duration, calc_gather_energy, calc_gather_rate, calc_loader_acceleration, calc_loader_flighttime, calc_onesided_duration, calc_orbital_altitude, calc_rechargetime, calc_ship_acceleration, calc_ship_flighttime, calc_ship_mass, calc_ship_rechargetime, calc_transfer_duration, calc_transit_duration, calculateFlightTime, calculateLoadTimeBreakdown, calculateRefuelingTime, calculateTransferTime, canMove, cancelEligibility, candidateLaneCompletesAt, capabilityAttributes, capabilityNames, capsHasCrafter, capsHasGatherer, capsHasHauler, capsHasLoaders, capsHasMass, capsHasMovement, capsHasStorage, cargoItem, cargoItemToStack, cargoReadyAt, cargoRef, cargoUtils, cargo_item, categoryColors, categoryFromIndex, categoryLabel, categoryLabelFromIndex, componentIcon, composeIdleResolve, computeBaseCapacity, computeBaseCapacityShip, computeBaseCapacityWarehouse, computeBaseHullmass, computeComponentStats, computeContainerCapabilities, computeContainerT2Capabilities, computeCraftedOutputStats, computeCrafterCapabilities, computeCrafterDrain, computeCrafterSpeed, computeEngineCapabilities, computeEngineDrain, computeEngineThrust, computeEntityCapabilities, computeEntityStats, computeGathererCapabilities, computeGathererDepth, computeGathererDrain, computeGathererYield, computeGeneratorCap, computeGeneratorCapabilities, computeGeneratorRech, computeHaulPenalty, computeHaulerCapabilities, computeHaulerCapacity, computeHaulerDrain$1 as computeHaulerDrain, computeHaulerEfficiency, computeInputMass, computeLoaderCapabilities, computeLoaderMass, computeLoaderThrust, computeNftImageUrl, computeShipHullCapabilities, computeStorageCapabilities, computeWarehouseHullCapabilities, computeWarpCapabilities, computeWarpRange, coordsToLocationId, createInventoryAccessor, createProjectedEntity, createScheduleAccessor, decodeAddress, decodeAtomicAsset, decodeCraftedItemStats, decodeRegion, decodeSector, decodeStat, decodeStats, Shipload as default, deriveLocation, deriveLocationSize, deriveLocationStatic, deriveResourceStats, deriveStatMappings, deriveStrata, deriveStratum, describeItem, describeModule, describeModuleForItem, describeModuleForSlot, deserializeAsset, deserializeAtomicData, deserializeComponent, deserializeEntity, deserializeModule, deserializeResource, displayName, distanceBetweenCoordinates, distanceBetweenPoints, easeFlightProgress, encodeAddress, encodeAddressMemo, encodeGatheredCargoStats, encodeRegion, encodeSector, encodeStats, energyAtTime, energyPercent, energy_stats, entityDisplayName, entity_row, estimateDealTravelTime, estimateTravelTime, feistel, feistelInv, fetchAtomicAssetsForOwner, fetchAtomicSchemas, filterByBuildMethod, findNearbyPlanets, flightSpeedFactor, formatLocation, formatMass, formatMassDelta, formatMassScaled, formatModuleLine, formatTier, gathererDepthForTier, getCapabilityAttributes, getCategoryInfo, getComponents, getCurrentEpoch, getDepthThreshold, getDestinationLocation, getEffectiveReserve, getEligibleResources, getEntityClass, getEntityItems, getEntityLayout, getEpochInfo, getFlightOrigin, getInterpolatedPosition, getItem, getItems, getKindMeta, getLocationCandidates, getLocationKind, getLocationProfile, getLocationType, getLocationTypeName, getModuleCapabilityType, getModules, getPackedEntityType, getPlanetSubtype, getPlanetSubtypes, getPositionAt, getRecipe, getResourceTier, getResourceWeight, getResources, getStatDefinitions, getStatMappings, getStatMappingsForCapability, getStatMappingsForStat, getStatName, getSystemName, getTemplateMeta, hasEnergy, hasEnergyForDistance, hasGatherer, hasLoaders, hasMass, hasSchedule, hasSpace$1 as hasSpace, hasSpaceForMass, hasStorage, hasSystem, hash, hash512, interpolateFlightPosition, isBuildable, isContainer, isCraftedItem, isExtractor, isFactory, isFull$1 as isFull, isFullFromMass, isGatherableLocation, isInvertedAttribute, isLocationBuildable, isModuleItem, isNexus, isPlot, isPlotBuildable, isRelatedItem, isShip, isSubscriptionsDebugEnabled, isValidWormholePair, isWarehouse, itemAbbreviations, itemCategory, itemIds, itemOffset, itemTier, itemTypeCode, kindCan, lane, laneKeyForModule, lerp, location_derived, location_static, makeEntity, mapEntity, maxCraftable, maxTravelDistance, mergeStacks, moduleAccepts, moduleDisplayName, moduleIcon, moduleSlotTypeToCode, movement_stats, needsRecharge, normalizeDisplayName, parseWireEntity, partnerRegion, planParallelGather, planParallelTransfer, projectEntity, projectEntityAt, projectRemainingAt, projectedCargoAvailableAt, rawScheduleEnd, readCommonBase, regionOf, removeFromStacks, renderDescription, resolveItem, resolveItemCategory, resolveLaneCrafter, resolveLaneGatherer, resolveLaneLoader, resolveLockedAmount, resolveStats, rollTier, rollWithinTier, rollupCrafter, rollupGatherer, rollupLoaders, rotation, schedule, selectGatherLane, setSubscriptionsDebug, stackKey, stackToCargoItem, stacksEqual, starRating, starsForStat, statMagnitude, subtractFromStacks, task, taskCargoChanges, taskCargoEffect, tierAdjective, tierColors, tierOfReserve, toLocation, typeLabel, validateDisplayName, validateSchedule, workerLaneKey, wormholeAt, wormholeAtRegionEndpoint, yieldThresholdAt };
|