@shipload/sdk 1.0.0-next.25 → 1.0.0-next.27
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 +264 -119
- package/lib/shipload.js +884 -405
- package/lib/shipload.js.map +1 -1
- package/lib/shipload.m.js +873 -403
- package/lib/shipload.m.js.map +1 -1
- package/lib/testing.d.ts +35 -21
- package/lib/testing.js +101 -37
- package/lib/testing.js.map +1 -1
- package/lib/testing.m.js +101 -37
- package/lib/testing.m.js.map +1 -1
- package/package.json +1 -1
- package/src/capabilities/craftable.ts +51 -0
- package/src/capabilities/crafting.test.ts +7 -0
- package/src/capabilities/crafting.ts +3 -3
- package/src/capabilities/index.ts +0 -1
- package/src/contracts/platform.ts +21 -1
- package/src/contracts/server.ts +106 -60
- package/src/data/capabilities.ts +5 -0
- package/src/derivation/capabilities.ts +4 -3
- package/src/entities/entity.ts +1 -1
- package/src/entities/makers.ts +14 -5
- package/src/entities/slot-multiplier.ts +2 -0
- package/src/index-module.ts +24 -4
- package/src/managers/actions.ts +16 -1
- package/src/managers/construction-types.ts +2 -1
- package/src/managers/construction.ts +126 -70
- package/src/scheduling/accessor.ts +65 -23
- package/src/scheduling/availability.ts +108 -0
- package/src/scheduling/energy.ts +18 -11
- package/src/scheduling/lane-core.ts +130 -0
- package/src/scheduling/lanes.ts +60 -0
- package/src/scheduling/projection.ts +30 -54
- package/src/scheduling/schedule.ts +236 -116
- package/src/travel/travel.ts +21 -16
- package/src/types/capabilities.ts +1 -0
- package/src/capabilities/loading.ts +0 -8
package/lib/shipload.d.ts
CHANGED
|
@@ -73,6 +73,12 @@ declare namespace Types$1 {
|
|
|
73
73
|
token_contract: Name;
|
|
74
74
|
token_symbol: Asset.Symbol;
|
|
75
75
|
}
|
|
76
|
+
class relgateasset extends Struct {
|
|
77
|
+
asset_id: UInt64;
|
|
78
|
+
}
|
|
79
|
+
class relgateowner extends Struct {
|
|
80
|
+
owner: Name;
|
|
81
|
+
}
|
|
76
82
|
class setepochtime extends Struct {
|
|
77
83
|
contract: Name;
|
|
78
84
|
epochtime: UInt32;
|
|
@@ -131,6 +137,7 @@ declare namespace Types$1 {
|
|
|
131
137
|
}
|
|
132
138
|
class wrapgate_row extends Struct {
|
|
133
139
|
owner: Name;
|
|
140
|
+
game: Name;
|
|
134
141
|
last_asset_id: UInt64;
|
|
135
142
|
}
|
|
136
143
|
}
|
|
@@ -205,6 +212,12 @@ declare namespace ActionParams$1 {
|
|
|
205
212
|
token_contract: NameType;
|
|
206
213
|
token_symbol: Asset.SymbolType;
|
|
207
214
|
}
|
|
215
|
+
interface relgateasset {
|
|
216
|
+
asset_id: UInt64Type;
|
|
217
|
+
}
|
|
218
|
+
interface relgateowner {
|
|
219
|
+
owner: NameType;
|
|
220
|
+
}
|
|
208
221
|
interface setepochtime {
|
|
209
222
|
contract: NameType;
|
|
210
223
|
epochtime: UInt32Type;
|
|
@@ -263,6 +276,8 @@ interface ActionNameParams$1 {
|
|
|
263
276
|
enablegame: ActionParams$1.enablegame;
|
|
264
277
|
foundcompany: ActionParams$1.foundcompany;
|
|
265
278
|
open: ActionParams$1.open;
|
|
279
|
+
relgateasset: ActionParams$1.relgateasset;
|
|
280
|
+
relgateowner: ActionParams$1.relgateowner;
|
|
266
281
|
setepochtime: ActionParams$1.setepochtime;
|
|
267
282
|
settoken: ActionParams$1.settoken;
|
|
268
283
|
startgame: ActionParams$1.startgame;
|
|
@@ -345,6 +360,7 @@ declare namespace Types {
|
|
|
345
360
|
}
|
|
346
361
|
class cancel extends Struct {
|
|
347
362
|
id: UInt64;
|
|
363
|
+
lane_key: UInt8;
|
|
348
364
|
count: UInt64;
|
|
349
365
|
}
|
|
350
366
|
class entity_ref extends Struct {
|
|
@@ -376,6 +392,9 @@ declare namespace Types {
|
|
|
376
392
|
id: UInt64;
|
|
377
393
|
entity_id?: UInt64;
|
|
378
394
|
}
|
|
395
|
+
class claim_row extends Struct {
|
|
396
|
+
owner: Name;
|
|
397
|
+
}
|
|
379
398
|
class coordinates extends Struct {
|
|
380
399
|
x: Int64;
|
|
381
400
|
y: Int64;
|
|
@@ -386,6 +405,9 @@ declare namespace Types {
|
|
|
386
405
|
target_item_id: UInt16;
|
|
387
406
|
coords: coordinates;
|
|
388
407
|
}
|
|
408
|
+
class claimstarter extends Struct {
|
|
409
|
+
owner: Name;
|
|
410
|
+
}
|
|
389
411
|
class cleanrsvp extends Struct {
|
|
390
412
|
epoch: UInt64;
|
|
391
413
|
max_rows: UInt64;
|
|
@@ -433,7 +455,7 @@ declare namespace Types {
|
|
|
433
455
|
}
|
|
434
456
|
class crafter_stats extends Struct {
|
|
435
457
|
speed: UInt16;
|
|
436
|
-
drain:
|
|
458
|
+
drain: UInt32;
|
|
437
459
|
}
|
|
438
460
|
class demolish extends Struct {
|
|
439
461
|
entity_id: UInt64;
|
|
@@ -452,23 +474,23 @@ declare namespace Types {
|
|
|
452
474
|
enabled: boolean;
|
|
453
475
|
}
|
|
454
476
|
class energy_stats extends Struct {
|
|
455
|
-
capacity:
|
|
456
|
-
recharge:
|
|
477
|
+
capacity: UInt32;
|
|
478
|
+
recharge: UInt32;
|
|
457
479
|
}
|
|
458
480
|
class entity_current_state extends Struct {
|
|
459
481
|
coordinates: coordinates;
|
|
460
|
-
energy:
|
|
482
|
+
energy: UInt32;
|
|
461
483
|
}
|
|
462
484
|
class movement_stats extends Struct {
|
|
463
485
|
thrust: UInt32;
|
|
464
|
-
drain:
|
|
486
|
+
drain: UInt32;
|
|
465
487
|
}
|
|
466
488
|
class warp_stats extends Struct {
|
|
467
489
|
range: UInt32;
|
|
468
490
|
}
|
|
469
491
|
class gatherer_stats extends Struct {
|
|
470
492
|
yield: UInt16;
|
|
471
|
-
drain:
|
|
493
|
+
drain: UInt32;
|
|
472
494
|
depth: UInt16;
|
|
473
495
|
}
|
|
474
496
|
class loader_stats extends Struct {
|
|
@@ -479,7 +501,7 @@ declare namespace Types {
|
|
|
479
501
|
class hauler_stats extends Struct {
|
|
480
502
|
capacity: UInt8;
|
|
481
503
|
efficiency: UInt16;
|
|
482
|
-
drain:
|
|
504
|
+
drain: UInt32;
|
|
483
505
|
}
|
|
484
506
|
class task extends Struct {
|
|
485
507
|
type: UInt8;
|
|
@@ -489,12 +511,16 @@ declare namespace Types {
|
|
|
489
511
|
cargo: cargo_item[];
|
|
490
512
|
entitytarget?: entity_ref;
|
|
491
513
|
entitygroup?: UInt64;
|
|
492
|
-
energy_cost?:
|
|
514
|
+
energy_cost?: UInt32;
|
|
493
515
|
}
|
|
494
516
|
class schedule extends Struct {
|
|
495
517
|
started: TimePoint;
|
|
496
518
|
tasks: task[];
|
|
497
519
|
}
|
|
520
|
+
class lane extends Struct {
|
|
521
|
+
lane_key: UInt8;
|
|
522
|
+
schedule: schedule;
|
|
523
|
+
}
|
|
498
524
|
class entity_info extends Struct {
|
|
499
525
|
type: Name;
|
|
500
526
|
id: UInt64;
|
|
@@ -505,7 +531,7 @@ declare namespace Types {
|
|
|
505
531
|
cargomass: UInt32;
|
|
506
532
|
cargo: cargo_view[];
|
|
507
533
|
modules: module_entry[];
|
|
508
|
-
energy?:
|
|
534
|
+
energy?: UInt32;
|
|
509
535
|
hullmass?: UInt32;
|
|
510
536
|
capacity?: UInt32;
|
|
511
537
|
engines?: movement_stats;
|
|
@@ -515,13 +541,7 @@ declare namespace Types {
|
|
|
515
541
|
loaders?: loader_stats;
|
|
516
542
|
hauler?: hauler_stats;
|
|
517
543
|
crafter?: crafter_stats;
|
|
518
|
-
|
|
519
|
-
current_task?: task;
|
|
520
|
-
current_task_elapsed: UInt32;
|
|
521
|
-
current_task_remaining: UInt32;
|
|
522
|
-
pending_tasks: task[];
|
|
523
|
-
idle_at?: TimePoint;
|
|
524
|
-
schedule?: schedule;
|
|
544
|
+
lanes: lane[];
|
|
525
545
|
}
|
|
526
546
|
class slot_def extends Struct {
|
|
527
547
|
type: UInt8;
|
|
@@ -542,10 +562,10 @@ declare namespace Types {
|
|
|
542
562
|
name: string;
|
|
543
563
|
stats: UInt64;
|
|
544
564
|
coordinates: coordinates;
|
|
545
|
-
energy?:
|
|
565
|
+
energy?: UInt32;
|
|
546
566
|
cargomass: UInt32;
|
|
547
567
|
modules: module_entry[];
|
|
548
|
-
|
|
568
|
+
lanes: lane[];
|
|
549
569
|
}
|
|
550
570
|
class entity_seq_row extends Struct {
|
|
551
571
|
next_id: UInt64;
|
|
@@ -595,6 +615,9 @@ declare namespace Types {
|
|
|
595
615
|
stratum: UInt16;
|
|
596
616
|
quantity: UInt32;
|
|
597
617
|
}
|
|
618
|
+
class genesisfleet extends Struct {
|
|
619
|
+
entities: entity_row[];
|
|
620
|
+
}
|
|
598
621
|
class getconfig extends Struct {
|
|
599
622
|
}
|
|
600
623
|
class getdeposit extends Struct {
|
|
@@ -817,7 +840,7 @@ declare namespace Types {
|
|
|
817
840
|
can_travel: boolean;
|
|
818
841
|
current: entity_current_state;
|
|
819
842
|
projected: entity_current_state;
|
|
820
|
-
max_energy:
|
|
843
|
+
max_energy: UInt32;
|
|
821
844
|
systems: nearby_system[];
|
|
822
845
|
}
|
|
823
846
|
class nft_cargo_item extends Struct {
|
|
@@ -865,7 +888,8 @@ declare namespace Types {
|
|
|
865
888
|
task: task;
|
|
866
889
|
starts_at: TimePoint;
|
|
867
890
|
completes_at: TimePoint;
|
|
868
|
-
new_energy?:
|
|
891
|
+
new_energy?: UInt32;
|
|
892
|
+
lane_key: UInt8;
|
|
869
893
|
}
|
|
870
894
|
class notify extends Struct {
|
|
871
895
|
event: task_event;
|
|
@@ -897,7 +921,7 @@ declare namespace Types {
|
|
|
897
921
|
class projected_state extends Struct {
|
|
898
922
|
owner: Name;
|
|
899
923
|
coordinates: coordinates;
|
|
900
|
-
energy?:
|
|
924
|
+
energy?: UInt32;
|
|
901
925
|
cargomass: UInt32;
|
|
902
926
|
cargo: cargo_view[];
|
|
903
927
|
hullmass?: UInt32;
|
|
@@ -945,6 +969,11 @@ declare namespace Types {
|
|
|
945
969
|
class resources_result extends Struct {
|
|
946
970
|
resources: resource_info[];
|
|
947
971
|
}
|
|
972
|
+
class retarget extends Struct {
|
|
973
|
+
source_id: UInt64;
|
|
974
|
+
task_index: UInt64;
|
|
975
|
+
new_dest_id: UInt64;
|
|
976
|
+
}
|
|
948
977
|
class reveal extends Struct {
|
|
949
978
|
oracle_id: Name;
|
|
950
979
|
epoch: UInt64;
|
|
@@ -1058,6 +1087,7 @@ declare namespace Types {
|
|
|
1058
1087
|
}
|
|
1059
1088
|
declare const TableMap: {
|
|
1060
1089
|
cargo: typeof Types.cargo_row;
|
|
1090
|
+
claims: typeof Types.claim_row;
|
|
1061
1091
|
commit: typeof Types.commit_row;
|
|
1062
1092
|
entity: typeof Types.entity_row;
|
|
1063
1093
|
entitygroup: typeof Types.entitygroup_row;
|
|
@@ -1076,6 +1106,7 @@ declare const TableMap: {
|
|
|
1076
1106
|
};
|
|
1077
1107
|
interface TableTypes {
|
|
1078
1108
|
cargo: Types.cargo_row;
|
|
1109
|
+
claims: Types.claim_row;
|
|
1079
1110
|
commit: Types.commit_row;
|
|
1080
1111
|
entity: Types.entity_row;
|
|
1081
1112
|
entitygroup: Types.entitygroup_row;
|
|
@@ -1138,19 +1169,6 @@ declare namespace ActionParams {
|
|
|
1138
1169
|
subtype: UInt8Type;
|
|
1139
1170
|
tier: UInt8Type;
|
|
1140
1171
|
}
|
|
1141
|
-
interface entity_ref {
|
|
1142
|
-
entity_type: NameType;
|
|
1143
|
-
entity_id: UInt64Type;
|
|
1144
|
-
}
|
|
1145
|
-
interface cargo_row {
|
|
1146
|
-
id: UInt64Type;
|
|
1147
|
-
entity_id: UInt64Type;
|
|
1148
|
-
item_id: UInt64Type;
|
|
1149
|
-
quantity: UInt64Type;
|
|
1150
|
-
stats: UInt64Type;
|
|
1151
|
-
modules: Type.module_entry[];
|
|
1152
|
-
sequence_id?: UInt64Type;
|
|
1153
|
-
}
|
|
1154
1172
|
interface entity_row {
|
|
1155
1173
|
id: UInt64Type;
|
|
1156
1174
|
owner: NameType;
|
|
@@ -1159,10 +1177,14 @@ declare namespace ActionParams {
|
|
|
1159
1177
|
name: string;
|
|
1160
1178
|
stats: UInt64Type;
|
|
1161
1179
|
coordinates: Type.coordinates;
|
|
1162
|
-
energy?:
|
|
1180
|
+
energy?: UInt32Type;
|
|
1163
1181
|
cargomass: UInt32Type;
|
|
1164
1182
|
modules: Type.module_entry[];
|
|
1165
|
-
|
|
1183
|
+
lanes: Type.lane[];
|
|
1184
|
+
}
|
|
1185
|
+
interface lane {
|
|
1186
|
+
lane_key: UInt8Type;
|
|
1187
|
+
schedule: Type.schedule;
|
|
1166
1188
|
}
|
|
1167
1189
|
interface schedule {
|
|
1168
1190
|
started: TimePointType;
|
|
@@ -1176,7 +1198,20 @@ declare namespace ActionParams {
|
|
|
1176
1198
|
cargo: Type.cargo_item[];
|
|
1177
1199
|
entitytarget?: Type.entity_ref;
|
|
1178
1200
|
entitygroup?: UInt64Type;
|
|
1179
|
-
energy_cost?:
|
|
1201
|
+
energy_cost?: UInt32Type;
|
|
1202
|
+
}
|
|
1203
|
+
interface entity_ref {
|
|
1204
|
+
entity_type: NameType;
|
|
1205
|
+
entity_id: UInt64Type;
|
|
1206
|
+
}
|
|
1207
|
+
interface cargo_row {
|
|
1208
|
+
id: UInt64Type;
|
|
1209
|
+
entity_id: UInt64Type;
|
|
1210
|
+
item_id: UInt64Type;
|
|
1211
|
+
quantity: UInt64Type;
|
|
1212
|
+
stats: UInt64Type;
|
|
1213
|
+
modules: Type.module_entry[];
|
|
1214
|
+
sequence_id?: UInt64Type;
|
|
1180
1215
|
}
|
|
1181
1216
|
interface entitygroup_row {
|
|
1182
1217
|
id: UInt64Type;
|
|
@@ -1203,7 +1238,8 @@ declare namespace ActionParams {
|
|
|
1203
1238
|
task: Type.task;
|
|
1204
1239
|
starts_at: TimePointType;
|
|
1205
1240
|
completes_at: TimePointType;
|
|
1206
|
-
new_energy?:
|
|
1241
|
+
new_energy?: UInt32Type;
|
|
1242
|
+
lane_key: UInt8Type;
|
|
1207
1243
|
}
|
|
1208
1244
|
}
|
|
1209
1245
|
interface addmodule {
|
|
@@ -1230,6 +1266,7 @@ declare namespace ActionParams {
|
|
|
1230
1266
|
}
|
|
1231
1267
|
interface cancel {
|
|
1232
1268
|
id: UInt64Type;
|
|
1269
|
+
lane_key: UInt8Type;
|
|
1233
1270
|
count: UInt64Type;
|
|
1234
1271
|
}
|
|
1235
1272
|
interface claimplot {
|
|
@@ -1237,6 +1274,9 @@ declare namespace ActionParams {
|
|
|
1237
1274
|
target_item_id: UInt16Type;
|
|
1238
1275
|
coords: Type.coordinates;
|
|
1239
1276
|
}
|
|
1277
|
+
interface claimstarter {
|
|
1278
|
+
owner: NameType;
|
|
1279
|
+
}
|
|
1240
1280
|
interface cleanrsvp {
|
|
1241
1281
|
epoch: UInt64Type;
|
|
1242
1282
|
max_rows: UInt64Type;
|
|
@@ -1288,6 +1328,9 @@ declare namespace ActionParams {
|
|
|
1288
1328
|
stratum: UInt16Type;
|
|
1289
1329
|
quantity: UInt32Type;
|
|
1290
1330
|
}
|
|
1331
|
+
interface genesisfleet {
|
|
1332
|
+
entities: Type.entity_row[];
|
|
1333
|
+
}
|
|
1291
1334
|
interface getconfig {
|
|
1292
1335
|
}
|
|
1293
1336
|
interface getdeposit {
|
|
@@ -1437,6 +1480,11 @@ declare namespace ActionParams {
|
|
|
1437
1480
|
id: UInt64Type;
|
|
1438
1481
|
count?: UInt64Type;
|
|
1439
1482
|
}
|
|
1483
|
+
interface retarget {
|
|
1484
|
+
source_id: UInt64Type;
|
|
1485
|
+
task_index: UInt64Type;
|
|
1486
|
+
new_dest_id: UInt64Type;
|
|
1487
|
+
}
|
|
1440
1488
|
interface reveal {
|
|
1441
1489
|
oracle_id: NameType;
|
|
1442
1490
|
epoch: UInt64Type;
|
|
@@ -1515,6 +1563,7 @@ interface ActionNameParams {
|
|
|
1515
1563
|
buildplot: ActionParams.buildplot;
|
|
1516
1564
|
cancel: ActionParams.cancel;
|
|
1517
1565
|
claimplot: ActionParams.claimplot;
|
|
1566
|
+
claimstarter: ActionParams.claimstarter;
|
|
1518
1567
|
cleanrsvp: ActionParams.cleanrsvp;
|
|
1519
1568
|
cleartable: ActionParams.cleartable;
|
|
1520
1569
|
commit: ActionParams.commit;
|
|
@@ -1527,6 +1576,7 @@ interface ActionNameParams {
|
|
|
1527
1576
|
fixcargomass: ActionParams.fixcargomass;
|
|
1528
1577
|
forcereveal: ActionParams.forcereveal;
|
|
1529
1578
|
gather: ActionParams.gather;
|
|
1579
|
+
genesisfleet: ActionParams.genesisfleet;
|
|
1530
1580
|
getconfig: ActionParams.getconfig;
|
|
1531
1581
|
getdeposit: ActionParams.getdeposit;
|
|
1532
1582
|
geteligible: ActionParams.geteligible;
|
|
@@ -1574,6 +1624,7 @@ interface ActionNameParams {
|
|
|
1574
1624
|
refrshentity: ActionParams.refrshentity;
|
|
1575
1625
|
removeoracle: ActionParams.removeoracle;
|
|
1576
1626
|
resolve: ActionParams.resolve;
|
|
1627
|
+
retarget: ActionParams.retarget;
|
|
1577
1628
|
reveal: ActionParams.reveal;
|
|
1578
1629
|
rmmodule: ActionParams.rmmodule;
|
|
1579
1630
|
rmnftcfg: ActionParams.rmnftcfg;
|
|
@@ -1637,6 +1688,7 @@ interface ActionReturnValues {
|
|
|
1637
1688
|
placeentity: Types.task_results;
|
|
1638
1689
|
recharge: Types.task_results;
|
|
1639
1690
|
resolve: Types.resolve_results;
|
|
1691
|
+
retarget: Types.task_results;
|
|
1640
1692
|
stowcargo: Types.task_results;
|
|
1641
1693
|
stowentity: Types.task_results;
|
|
1642
1694
|
transfer: Types.task_results;
|
|
@@ -2053,6 +2105,7 @@ interface MassCapability {
|
|
|
2053
2105
|
hullmass: UInt32;
|
|
2054
2106
|
}
|
|
2055
2107
|
interface ScheduleCapability {
|
|
2108
|
+
lanes?: Types.lane[];
|
|
2056
2109
|
schedule?: Types.schedule;
|
|
2057
2110
|
}
|
|
2058
2111
|
interface EntityCapabilities {
|
|
@@ -2145,124 +2198,186 @@ declare class Location {
|
|
|
2145
2198
|
}
|
|
2146
2199
|
declare function toLocation(coords: CoordinatesType | Location): Location;
|
|
2147
2200
|
|
|
2148
|
-
type Schedule = Types.schedule;
|
|
2149
|
-
|
|
2201
|
+
type Schedule$2 = Types.schedule;
|
|
2202
|
+
declare function laneStartsIn(schedule: Schedule$2, now: Date): number;
|
|
2203
|
+
declare function currentTaskIndexForLane(schedule: Schedule$2, now: Date): number;
|
|
2204
|
+
declare function laneTaskComplete(schedule: Schedule$2, index: number, now: Date): boolean;
|
|
2205
|
+
declare function laneTaskInProgress(schedule: Schedule$2, index: number, now: Date): boolean;
|
|
2206
|
+
declare function laneCompletesAt(schedule: Schedule$2, index: number): Date;
|
|
2207
|
+
declare function currentTaskProgressFloatForLane(schedule: Schedule$2, now: Date): number;
|
|
2208
|
+
|
|
2209
|
+
type Schedule$1 = Types.schedule;
|
|
2210
|
+
type Task$2 = Types.task;
|
|
2211
|
+
type Lane$1 = Types.lane;
|
|
2212
|
+
declare const LANE_MOBILITY = 0;
|
|
2213
|
+
declare const LANE_BARRIER = 255;
|
|
2150
2214
|
interface ScheduleData {
|
|
2151
|
-
|
|
2152
|
-
}
|
|
2153
|
-
interface
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
tasks: Task$1[];
|
|
2157
|
-
scheduleDuration(): number;
|
|
2158
|
-
scheduleElapsed(now: Date): number;
|
|
2159
|
-
scheduleRemaining(now: Date): number;
|
|
2160
|
-
scheduleComplete(now: Date): boolean;
|
|
2161
|
-
currentTaskIndex(now: Date): number;
|
|
2162
|
-
currentTask(now: Date): Task$1 | undefined;
|
|
2163
|
-
currentTaskType(now: Date): TaskType | undefined;
|
|
2164
|
-
getTaskStartTime(index: number): number;
|
|
2165
|
-
getTaskElapsed(index: number, now: Date): number;
|
|
2166
|
-
getTaskRemaining(index: number, now: Date): number;
|
|
2167
|
-
isTaskComplete(index: number, now: Date): boolean;
|
|
2168
|
-
isTaskInProgress(index: number, now: Date): boolean;
|
|
2169
|
-
currentTaskProgress(now: Date): number;
|
|
2170
|
-
scheduleProgress(now: Date): number;
|
|
2215
|
+
lanes?: Lane$1[];
|
|
2216
|
+
}
|
|
2217
|
+
interface LaneView {
|
|
2218
|
+
laneKey: number;
|
|
2219
|
+
schedule: Schedule$1;
|
|
2171
2220
|
}
|
|
2221
|
+
|
|
2222
|
+
declare function getLanes(entity: ScheduleData): LaneView[];
|
|
2223
|
+
declare function getLane(entity: ScheduleData, laneKey: number): LaneView | undefined;
|
|
2224
|
+
declare function mobilityLane(entity: ScheduleData): LaneView | undefined;
|
|
2172
2225
|
declare function hasSchedule$1(entity: ScheduleData): boolean;
|
|
2173
2226
|
declare function isIdle(entity: ScheduleData): boolean;
|
|
2174
|
-
declare function
|
|
2227
|
+
declare function isEntityIdle(entity: ScheduleData, now: Date): boolean;
|
|
2228
|
+
declare function entityIdleAt(entity: ScheduleData, _now: Date): Date | undefined;
|
|
2229
|
+
declare function getTasks(entity: ScheduleData): Task$2[];
|
|
2175
2230
|
declare function scheduleDuration(entity: ScheduleData): number;
|
|
2176
2231
|
declare function scheduleElapsed(entity: ScheduleData, now: Date): number;
|
|
2177
2232
|
declare function scheduleRemaining(entity: ScheduleData, now: Date): number;
|
|
2178
2233
|
declare function scheduleComplete(entity: ScheduleData, now: Date): boolean;
|
|
2179
|
-
declare function
|
|
2180
|
-
declare function
|
|
2181
|
-
declare function
|
|
2182
|
-
declare function
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
declare function
|
|
2190
|
-
|
|
2234
|
+
declare function hasResolvable(entity: ScheduleData, now: Date): boolean;
|
|
2235
|
+
declare function currentTaskForLane(entity: ScheduleData, laneKey: number, now: Date): Task$2 | undefined;
|
|
2236
|
+
declare function currentTaskTypeForLane(entity: ScheduleData, laneKey: number, now: Date): TaskType | undefined;
|
|
2237
|
+
declare function activeTasks(entity: ScheduleData, now: Date): Task$2[];
|
|
2238
|
+
interface ResolvedEvent {
|
|
2239
|
+
laneKey: number;
|
|
2240
|
+
taskIndex: number;
|
|
2241
|
+
task: Task$2;
|
|
2242
|
+
completesAt: Date;
|
|
2243
|
+
}
|
|
2244
|
+
declare function resolveOrder(entity: ScheduleData, now: Date): ResolvedEvent[];
|
|
2245
|
+
interface OrderedTask {
|
|
2246
|
+
laneKey: number;
|
|
2247
|
+
taskIndex: number;
|
|
2248
|
+
task: Task$2;
|
|
2249
|
+
startsAt: Date;
|
|
2250
|
+
completesAt: Date;
|
|
2251
|
+
}
|
|
2252
|
+
declare function orderedTasks(entity: ScheduleData): OrderedTask[];
|
|
2253
|
+
declare function laneRemainingOf(entity: ScheduleData, laneKey: number, now: Date): number;
|
|
2254
|
+
declare function laneStartsInOf(entity: ScheduleData, laneKey: number, now: Date): number;
|
|
2255
|
+
declare function laneCompleteOf(entity: ScheduleData, laneKey: number, now: Date): boolean;
|
|
2256
|
+
declare function laneProgressOf(entity: ScheduleData, laneKey: number, now: Date): number;
|
|
2257
|
+
declare function laneTaskElapsedOf(entity: ScheduleData, laneKey: number, index: number, now: Date): number;
|
|
2258
|
+
declare function laneTaskRemainingOf(entity: ScheduleData, laneKey: number, index: number, now: Date): number;
|
|
2259
|
+
declare function laneTaskCompleteOf(entity: ScheduleData, laneKey: number, index: number, now: Date): boolean;
|
|
2260
|
+
declare function laneTaskInProgressOf(entity: ScheduleData, laneKey: number, index: number, now: Date): boolean;
|
|
2261
|
+
declare function currentTaskIndexOf(entity: ScheduleData, laneKey: number, now: Date): number;
|
|
2191
2262
|
declare function isInFlight(entity: ScheduleData, now: Date): boolean;
|
|
2192
2263
|
declare function isRecharging(entity: ScheduleData, now: Date): boolean;
|
|
2193
2264
|
declare function isLoading(entity: ScheduleData, now: Date): boolean;
|
|
2194
2265
|
declare function isUnloading(entity: ScheduleData, now: Date): boolean;
|
|
2195
2266
|
declare function isGathering(entity: ScheduleData, now: Date): boolean;
|
|
2196
2267
|
|
|
2268
|
+
declare const schedule_LANE_MOBILITY: typeof LANE_MOBILITY;
|
|
2269
|
+
declare const schedule_LANE_BARRIER: typeof LANE_BARRIER;
|
|
2197
2270
|
type schedule_ScheduleData = ScheduleData;
|
|
2198
|
-
type
|
|
2271
|
+
type schedule_LaneView = LaneView;
|
|
2272
|
+
declare const schedule_getLanes: typeof getLanes;
|
|
2273
|
+
declare const schedule_getLane: typeof getLane;
|
|
2274
|
+
declare const schedule_mobilityLane: typeof mobilityLane;
|
|
2199
2275
|
declare const schedule_isIdle: typeof isIdle;
|
|
2276
|
+
declare const schedule_isEntityIdle: typeof isEntityIdle;
|
|
2277
|
+
declare const schedule_entityIdleAt: typeof entityIdleAt;
|
|
2200
2278
|
declare const schedule_getTasks: typeof getTasks;
|
|
2201
2279
|
declare const schedule_scheduleDuration: typeof scheduleDuration;
|
|
2202
2280
|
declare const schedule_scheduleElapsed: typeof scheduleElapsed;
|
|
2203
2281
|
declare const schedule_scheduleRemaining: typeof scheduleRemaining;
|
|
2204
2282
|
declare const schedule_scheduleComplete: typeof scheduleComplete;
|
|
2205
|
-
declare const
|
|
2206
|
-
declare const
|
|
2207
|
-
declare const
|
|
2208
|
-
declare const
|
|
2209
|
-
|
|
2210
|
-
declare const
|
|
2211
|
-
|
|
2212
|
-
declare const
|
|
2213
|
-
declare const
|
|
2214
|
-
declare const
|
|
2215
|
-
declare const
|
|
2216
|
-
declare const
|
|
2283
|
+
declare const schedule_hasResolvable: typeof hasResolvable;
|
|
2284
|
+
declare const schedule_currentTaskForLane: typeof currentTaskForLane;
|
|
2285
|
+
declare const schedule_currentTaskTypeForLane: typeof currentTaskTypeForLane;
|
|
2286
|
+
declare const schedule_activeTasks: typeof activeTasks;
|
|
2287
|
+
type schedule_ResolvedEvent = ResolvedEvent;
|
|
2288
|
+
declare const schedule_resolveOrder: typeof resolveOrder;
|
|
2289
|
+
type schedule_OrderedTask = OrderedTask;
|
|
2290
|
+
declare const schedule_orderedTasks: typeof orderedTasks;
|
|
2291
|
+
declare const schedule_laneRemainingOf: typeof laneRemainingOf;
|
|
2292
|
+
declare const schedule_laneStartsInOf: typeof laneStartsInOf;
|
|
2293
|
+
declare const schedule_laneCompleteOf: typeof laneCompleteOf;
|
|
2294
|
+
declare const schedule_laneProgressOf: typeof laneProgressOf;
|
|
2295
|
+
declare const schedule_laneTaskElapsedOf: typeof laneTaskElapsedOf;
|
|
2296
|
+
declare const schedule_laneTaskRemainingOf: typeof laneTaskRemainingOf;
|
|
2297
|
+
declare const schedule_laneTaskCompleteOf: typeof laneTaskCompleteOf;
|
|
2298
|
+
declare const schedule_laneTaskInProgressOf: typeof laneTaskInProgressOf;
|
|
2299
|
+
declare const schedule_currentTaskIndexOf: typeof currentTaskIndexOf;
|
|
2217
2300
|
declare const schedule_isInFlight: typeof isInFlight;
|
|
2218
2301
|
declare const schedule_isRecharging: typeof isRecharging;
|
|
2219
2302
|
declare const schedule_isLoading: typeof isLoading;
|
|
2220
2303
|
declare const schedule_isUnloading: typeof isUnloading;
|
|
2221
2304
|
declare const schedule_isGathering: typeof isGathering;
|
|
2305
|
+
declare const schedule_laneStartsIn: typeof laneStartsIn;
|
|
2306
|
+
declare const schedule_currentTaskIndexForLane: typeof currentTaskIndexForLane;
|
|
2307
|
+
declare const schedule_laneTaskComplete: typeof laneTaskComplete;
|
|
2308
|
+
declare const schedule_laneTaskInProgress: typeof laneTaskInProgress;
|
|
2309
|
+
declare const schedule_laneCompletesAt: typeof laneCompletesAt;
|
|
2310
|
+
declare const schedule_currentTaskProgressFloatForLane: typeof currentTaskProgressFloatForLane;
|
|
2222
2311
|
declare namespace schedule {
|
|
2223
2312
|
export {
|
|
2313
|
+
schedule_LANE_MOBILITY as LANE_MOBILITY,
|
|
2314
|
+
schedule_LANE_BARRIER as LANE_BARRIER,
|
|
2224
2315
|
schedule_ScheduleData as ScheduleData,
|
|
2225
|
-
|
|
2316
|
+
schedule_LaneView as LaneView,
|
|
2317
|
+
schedule_getLanes as getLanes,
|
|
2318
|
+
schedule_getLane as getLane,
|
|
2319
|
+
schedule_mobilityLane as mobilityLane,
|
|
2226
2320
|
hasSchedule$1 as hasSchedule,
|
|
2227
2321
|
schedule_isIdle as isIdle,
|
|
2322
|
+
schedule_isEntityIdle as isEntityIdle,
|
|
2323
|
+
schedule_entityIdleAt as entityIdleAt,
|
|
2228
2324
|
schedule_getTasks as getTasks,
|
|
2229
2325
|
schedule_scheduleDuration as scheduleDuration,
|
|
2230
2326
|
schedule_scheduleElapsed as scheduleElapsed,
|
|
2231
2327
|
schedule_scheduleRemaining as scheduleRemaining,
|
|
2232
2328
|
schedule_scheduleComplete as scheduleComplete,
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2329
|
+
schedule_hasResolvable as hasResolvable,
|
|
2330
|
+
schedule_currentTaskForLane as currentTaskForLane,
|
|
2331
|
+
schedule_currentTaskTypeForLane as currentTaskTypeForLane,
|
|
2332
|
+
schedule_activeTasks as activeTasks,
|
|
2333
|
+
schedule_ResolvedEvent as ResolvedEvent,
|
|
2334
|
+
schedule_resolveOrder as resolveOrder,
|
|
2335
|
+
schedule_OrderedTask as OrderedTask,
|
|
2336
|
+
schedule_orderedTasks as orderedTasks,
|
|
2337
|
+
schedule_laneRemainingOf as laneRemainingOf,
|
|
2338
|
+
schedule_laneStartsInOf as laneStartsInOf,
|
|
2339
|
+
schedule_laneCompleteOf as laneCompleteOf,
|
|
2340
|
+
schedule_laneProgressOf as laneProgressOf,
|
|
2341
|
+
schedule_laneTaskElapsedOf as laneTaskElapsedOf,
|
|
2342
|
+
schedule_laneTaskRemainingOf as laneTaskRemainingOf,
|
|
2343
|
+
schedule_laneTaskCompleteOf as laneTaskCompleteOf,
|
|
2344
|
+
schedule_laneTaskInProgressOf as laneTaskInProgressOf,
|
|
2345
|
+
schedule_currentTaskIndexOf as currentTaskIndexOf,
|
|
2245
2346
|
schedule_isInFlight as isInFlight,
|
|
2246
2347
|
schedule_isRecharging as isRecharging,
|
|
2247
2348
|
schedule_isLoading as isLoading,
|
|
2248
2349
|
schedule_isUnloading as isUnloading,
|
|
2249
2350
|
schedule_isGathering as isGathering,
|
|
2351
|
+
schedule_laneStartsIn as laneStartsIn,
|
|
2352
|
+
schedule_currentTaskIndexForLane as currentTaskIndexForLane,
|
|
2353
|
+
schedule_laneTaskComplete as laneTaskComplete,
|
|
2354
|
+
schedule_laneTaskInProgress as laneTaskInProgress,
|
|
2355
|
+
schedule_laneCompletesAt as laneCompletesAt,
|
|
2356
|
+
schedule_currentTaskProgressFloatForLane as currentTaskProgressFloatForLane,
|
|
2250
2357
|
};
|
|
2251
2358
|
}
|
|
2252
2359
|
|
|
2253
|
-
type Task = Types.task;
|
|
2360
|
+
type Task$1 = Types.task;
|
|
2254
2361
|
declare class ScheduleAccessor {
|
|
2255
2362
|
private entity;
|
|
2256
|
-
|
|
2363
|
+
private laneKey;
|
|
2364
|
+
private _laneResolved;
|
|
2365
|
+
private _lane;
|
|
2366
|
+
constructor(entity: ScheduleData, laneKey?: number);
|
|
2367
|
+
private get lane();
|
|
2368
|
+
forLane(laneKey: number): ScheduleAccessor;
|
|
2369
|
+
get lanes(): LaneView[];
|
|
2257
2370
|
get hasSchedule(): boolean;
|
|
2258
2371
|
get isIdle(): boolean;
|
|
2259
|
-
get tasks(): Task[];
|
|
2372
|
+
get tasks(): Task$1[];
|
|
2373
|
+
activeTasks(now: Date): Task$1[];
|
|
2260
2374
|
duration(): number;
|
|
2261
2375
|
elapsed(now: Date): number;
|
|
2262
2376
|
remaining(now: Date): number;
|
|
2377
|
+
startsIn(now: Date): number;
|
|
2263
2378
|
complete(now: Date): boolean;
|
|
2264
2379
|
currentTaskIndex(now: Date): number;
|
|
2265
|
-
currentTask(now: Date): Task | undefined;
|
|
2380
|
+
currentTask(now: Date): Task$1 | undefined;
|
|
2266
2381
|
currentTaskType(now: Date): TaskType | undefined;
|
|
2267
2382
|
taskStartTime(index: number): number;
|
|
2268
2383
|
taskElapsed(index: number, now: Date): number;
|
|
@@ -2273,7 +2388,7 @@ declare class ScheduleAccessor {
|
|
|
2273
2388
|
currentTaskProgressFloat(now: Date): number;
|
|
2274
2389
|
progress(now: Date): number;
|
|
2275
2390
|
}
|
|
2276
|
-
declare function createScheduleAccessor(entity: ScheduleData): ScheduleAccessor;
|
|
2391
|
+
declare function createScheduleAccessor(entity: ScheduleData, laneKey?: number): ScheduleAccessor;
|
|
2277
2392
|
|
|
2278
2393
|
declare class Entity$1 extends Types.entity_info {
|
|
2279
2394
|
private _sched?;
|
|
@@ -2572,7 +2687,8 @@ declare class ActionsManager extends BaseManager {
|
|
|
2572
2687
|
travel(shipId: UInt64Type, destination: CoordinatesType, recharge?: boolean): Action;
|
|
2573
2688
|
grouptravel(entities: EntityRefInput[], destination: CoordinatesType, recharge?: boolean): Action;
|
|
2574
2689
|
resolve(entityId: UInt64Type, count?: UInt64Type): Action;
|
|
2575
|
-
cancel(entityId: UInt64Type, count: UInt64Type): Action;
|
|
2690
|
+
cancel(entityId: UInt64Type, laneKey: number, count: UInt64Type): Action;
|
|
2691
|
+
retarget(sourceId: UInt64Type, taskIndex: UInt64Type, newDestId: UInt64Type): Action;
|
|
2576
2692
|
recharge(entityId: UInt64Type): Action;
|
|
2577
2693
|
refrshentity(entityId: UInt64Type): Action;
|
|
2578
2694
|
transfer(sourceId: UInt64Type, destId: UInt64Type, items: ActionParams.Type.cargo_item[]): Action;
|
|
@@ -2592,6 +2708,7 @@ declare class ActionsManager extends BaseManager {
|
|
|
2592
2708
|
claimRam?: boolean;
|
|
2593
2709
|
}): Promise<Action[]>;
|
|
2594
2710
|
undeploy(hostId: UInt64Type, targetId: UInt64Type): Action;
|
|
2711
|
+
claimStarter(owner: NameType): Action;
|
|
2595
2712
|
wrapEntity(owner: NameType, entityId: UInt64Type, nexusId: UInt64Type, opts?: {
|
|
2596
2713
|
claimRam?: boolean;
|
|
2597
2714
|
}): Promise<Action[]>;
|
|
@@ -2886,6 +3003,7 @@ interface EntityStateInput {
|
|
|
2886
3003
|
energy?: number;
|
|
2887
3004
|
modules?: PackedModuleInput[];
|
|
2888
3005
|
schedule?: Types.schedule;
|
|
3006
|
+
lanes?: Types.lane[];
|
|
2889
3007
|
cargo?: Types.cargo_item[];
|
|
2890
3008
|
}
|
|
2891
3009
|
declare function makeEntity(packedItemId: number, state: EntityStateInput): Entity$1;
|
|
@@ -2952,7 +3070,8 @@ interface ScheduledBuild {
|
|
|
2952
3070
|
hasStarted: boolean;
|
|
2953
3071
|
startsAt: number;
|
|
2954
3072
|
completesAt: number;
|
|
2955
|
-
|
|
3073
|
+
cancelable: boolean;
|
|
3074
|
+
blockingTaskCount: number;
|
|
2956
3075
|
}
|
|
2957
3076
|
interface Reservation {
|
|
2958
3077
|
targetEntityId: UInt64;
|
|
@@ -2987,7 +3106,10 @@ declare class ConstructionManager extends BaseManager {
|
|
|
2987
3106
|
eligibleFinalizers(target: BuildableTarget, entities: Types.entity_info[]): FinalizerEntityRef[];
|
|
2988
3107
|
inboundTransfersTo(plotId: UInt64, entities: Types.entity_info[], now: Date): InboundTransfer[];
|
|
2989
3108
|
inboundTransfersByTarget(entities: Types.entity_info[], now: Date): Map<string, InboundTransfer[]>;
|
|
2990
|
-
|
|
3109
|
+
private plotReservation;
|
|
3110
|
+
private builderCancelability;
|
|
3111
|
+
private buildFromReservation;
|
|
3112
|
+
scheduledBuildFor(plot: Types.entity_info, entities: Types.entity_info[], now: Date): ScheduledBuild | null;
|
|
2991
3113
|
scheduledBuildsByTarget(entities: Types.entity_info[], now: Date): Map<string, ScheduledBuild>;
|
|
2992
3114
|
reservationsFrom(sourceEntityId: UInt64, entities: Types.entity_info[]): Reservation[];
|
|
2993
3115
|
estimateFinalizeDuration(target: BuildableTarget, crafterSpeed: number): UInt32;
|
|
@@ -3117,9 +3239,8 @@ interface TransferEntity {
|
|
|
3117
3239
|
} | number;
|
|
3118
3240
|
};
|
|
3119
3241
|
}
|
|
3120
|
-
interface HasScheduleAndLocation {
|
|
3242
|
+
interface HasScheduleAndLocation extends ScheduleData {
|
|
3121
3243
|
coordinates: ActionParams.Type.coordinates;
|
|
3122
|
-
schedule?: Types.schedule;
|
|
3123
3244
|
}
|
|
3124
3245
|
declare function getFlightOrigin(entity: HasScheduleAndLocation, flightTaskIndex: number): ActionParams.Type.coordinates;
|
|
3125
3246
|
declare function getDestinationLocation(entity: HasScheduleAndLocation): ActionParams.Type.coordinates | undefined;
|
|
@@ -3127,6 +3248,14 @@ declare function getDestinationLocation(entity: HasScheduleAndLocation): ActionP
|
|
|
3127
3248
|
declare function getPositionAt(entity: HasScheduleAndLocation, taskIndex: number, taskProgress: number): ActionParams.Type.coordinates;
|
|
3128
3249
|
declare function calc_transfer_duration(source: TransferEntity, dest: TransferEntity, cargoMass: number): number;
|
|
3129
3250
|
|
|
3251
|
+
type ModuleEntry$2 = Types.module_entry;
|
|
3252
|
+
type Lane = Types.lane;
|
|
3253
|
+
type Schedule = Types.schedule;
|
|
3254
|
+
declare function laneKeyForModule(slotIndex: number): number;
|
|
3255
|
+
declare function workerLaneKey(modules: ModuleEntry$2[], moduleSubtype: ModuleType, lanes: Lane[]): number;
|
|
3256
|
+
declare function rawScheduleEnd(schedule: Schedule): Date;
|
|
3257
|
+
declare function candidateLaneCompletesAt(entity: ScheduleData, laneKey: number, durationSec: number, now: Date): Date;
|
|
3258
|
+
|
|
3130
3259
|
interface CargoData {
|
|
3131
3260
|
cargo: EntityInventory[];
|
|
3132
3261
|
}
|
|
@@ -3212,14 +3341,9 @@ interface ProjectionOptions {
|
|
|
3212
3341
|
upToTaskIndex?: number;
|
|
3213
3342
|
}
|
|
3214
3343
|
declare function projectEntity(entity: Projectable, options?: ProjectionOptions): ProjectedEntity;
|
|
3215
|
-
|
|
3216
|
-
current_task?: Types.task;
|
|
3217
|
-
pending_tasks?: Types.task[];
|
|
3218
|
-
}
|
|
3219
|
-
declare function projectFromCurrentState(snapshot: ProjectableSnapshot): ProjectedEntity;
|
|
3344
|
+
declare function projectRemainingAt(entity: Projectable, _now: Date): ProjectedEntity;
|
|
3220
3345
|
declare function validateSchedule(entity: Projectable): void;
|
|
3221
3346
|
declare function projectEntityAt(entity: Projectable, now: Date): ProjectedEntity;
|
|
3222
|
-
declare function projectFromCurrentStateAt(snapshot: ProjectableSnapshot, now: Date): ProjectedEntity;
|
|
3223
3347
|
|
|
3224
3348
|
type TaskCargoDirection = 'in' | 'out';
|
|
3225
3349
|
interface TaskCargoChange {
|
|
@@ -3231,6 +3355,28 @@ interface TaskCargoChange {
|
|
|
3231
3355
|
}
|
|
3232
3356
|
declare function taskCargoChanges(task: Types.task): TaskCargoChange[];
|
|
3233
3357
|
|
|
3358
|
+
type Task = Types.task;
|
|
3359
|
+
type CargoItem$1 = Types.cargo_item;
|
|
3360
|
+
interface CargoEffect {
|
|
3361
|
+
added: CargoItem$1[];
|
|
3362
|
+
removed: CargoItem$1[];
|
|
3363
|
+
}
|
|
3364
|
+
interface AvailabilityInput extends ScheduleData {
|
|
3365
|
+
cargo: CargoItem$1[];
|
|
3366
|
+
}
|
|
3367
|
+
declare function taskCargoEffect(task: Task): CargoEffect;
|
|
3368
|
+
declare function projectedCargoAvailableAt(entity: AvailabilityInput, at: Date): Map<string, bigint>;
|
|
3369
|
+
declare function cargoReadyAt(entity: AvailabilityInput, inputItemIds: readonly number[]): Date;
|
|
3370
|
+
declare function availableForItem(avail: Map<string, bigint>, itemId: number): bigint;
|
|
3371
|
+
|
|
3372
|
+
type CargoItem = Types.cargo_item;
|
|
3373
|
+
type ModuleEntry$1 = Types.module_entry;
|
|
3374
|
+
interface CraftableEntity extends ScheduleData {
|
|
3375
|
+
cargo: CargoItem[];
|
|
3376
|
+
modules: ModuleEntry$1[];
|
|
3377
|
+
}
|
|
3378
|
+
declare function maxCraftable(entity: CraftableEntity, recipe: Recipe, crafterSpeed: number, now: Date): number;
|
|
3379
|
+
|
|
3234
3380
|
declare function energyAtTime(entity: Projectable, now: Date): number;
|
|
3235
3381
|
|
|
3236
3382
|
interface Entity {
|
|
@@ -3260,8 +3406,6 @@ declare function calcEnergyUsage(entity: MovementCapability, distance: UInt64):
|
|
|
3260
3406
|
declare function energyPercent(entity: MovementCapability & EnergyCapability): number;
|
|
3261
3407
|
declare function needsRecharge(entity: MovementCapability & EnergyCapability): boolean;
|
|
3262
3408
|
|
|
3263
|
-
declare function calcLoadDuration(entity: LoaderCapability, cargoMass: UInt64): UInt32;
|
|
3264
|
-
|
|
3265
3409
|
declare function calc_gather_duration(gatherer: Types.gatherer_stats, itemMass: number, quantity: number, stratum: number, richness: number): UInt32;
|
|
3266
3410
|
declare function calc_gather_rate(gatherer: Types.gatherer_stats, itemMass: number, stratum: number, richness: number): {
|
|
3267
3411
|
unitsPerSec: number;
|
|
@@ -3275,7 +3419,7 @@ interface CrafterCapability {
|
|
|
3275
3419
|
}
|
|
3276
3420
|
declare function capsHasCrafter(caps: EntityCapabilities): boolean;
|
|
3277
3421
|
declare function calc_craft_duration(speed: number, totalInputMass: number): UInt32;
|
|
3278
|
-
declare function calc_craft_energy(drain: number, totalInputMass: number):
|
|
3422
|
+
declare function calc_craft_energy(drain: number, totalInputMass: number): UInt32;
|
|
3279
3423
|
|
|
3280
3424
|
declare const MODULE_ANY = 0;
|
|
3281
3425
|
declare const MODULE_ENGINE = 1;
|
|
@@ -3876,6 +4020,7 @@ type Nexus = Entity$1;
|
|
|
3876
4020
|
type movement_stats = Types.movement_stats;
|
|
3877
4021
|
type energy_stats = Types.energy_stats;
|
|
3878
4022
|
type loader_stats = Types.loader_stats;
|
|
4023
|
+
type lane = Types.lane;
|
|
3879
4024
|
type task = Types.task;
|
|
3880
4025
|
type cargo_item = Types.cargo_item;
|
|
3881
4026
|
type entity_row = Types.entity_row;
|
|
@@ -3883,4 +4028,4 @@ type gatherer_stats = Types.gatherer_stats;
|
|
|
3883
4028
|
type location_static = Types.location_static;
|
|
3884
4029
|
type location_derived = Types.location_derived;
|
|
3885
4030
|
|
|
3886
|
-
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, BuildMethod, BuildState, BuildableTarget, CANCEL_CONTAINS_GROUPED_TASK, CANCEL_PAIRED_HAS_PENDING, 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, 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, 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, Entity$1 as Entity, EntityCapabilities, EntityClass, EntityInfo, EntityInstance, EntityInventory, EntityLayout, EntityRefInput, EntitySlot, EntityState, EntityStateInput, EntitySubscriptionHandle, EntityTypeName, EpochInfo, EpochsManager, ErrorMessage, EstimateTravelTimeOptions, EstimatedTravelTime, EventCatchupCompleteMessage, EventMessage, 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, 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_EMITTER, 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_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, ImmutableEntry, ImmutableModuleSlot, InboundTransfer, InstalledModule, InventoryAccessor, Item, ItemType, KindMeta, LOCATION_MAX_DEPTH, LOCATION_MIN_DEPTH, LoadTimeBreakdown, LoaderCapability, Location, LocationStratum, LocationType, LocationsManager, MAX_ORBITAL_ALTITUDE, MIN_ORBITAL_ALTITUDE, MIN_TRANSFER_DISTANCE, 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, 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, ProjectableSnapshot, 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, 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, ScheduleAccessor, ScheduleCapability, ScheduleData, Scheduleable, 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, 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, YIELD_FRACTION_DEEP, YIELD_FRACTION_SHALLOW, allBuildableItems, allPlotBuildableItems, availableBuildMethods, availableCapacity$1 as availableCapacity, availableCapacityFromMass, baseName, blendCargoStacks, blendComponentStacks, blendCrossGroup, blendStacks, buildComponentImmutable, buildEntityDescription, buildEntityImmutable, buildImmutableData, buildMintAssetAction, buildModuleImmutable, buildResourceImmutable, calcCargoItemMass, calcCargoMass, calcEnergyUsage, calcLoadDuration, 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, capabilityAttributes, capabilityNames, capsHasCrafter, capsHasGatherer, capsHasHauler, capsHasLoaders, capsHasMass, capsHasMovement, capsHasStorage, cargoItem, cargoItemToStack, cargoRef, cargoUtils, cargo_item, categoryColors, categoryFromIndex, categoryLabel, categoryLabelFromIndex, componentIcon, 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, lerp, loader_stats, location_derived, location_static, makeEntity, mapEntity, maxTravelDistance, mergeStacks, moduleAccepts, moduleDisplayName, moduleIcon, moduleSlotTypeToCode, movement_stats, needsRecharge, parseWireEntity, projectEntity, projectEntityAt, projectFromCurrentState, projectFromCurrentStateAt, readCommonBase, removeFromStacks, renderDescription, resolveItem, resolveItemCategory, resolveStats, rollTier, rollWithinTier, rotation, schedule, setSubscriptionsDebug, stackKey, stackToCargoItem, stacksEqual, task, taskCargoChanges, tierAdjective, tierColors, tierOfReserve, toLocation, typeLabel, validateSchedule, yieldThresholdAt };
|
|
4031
|
+
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, BuildMethod, BuildState, BuildableTarget, CANCEL_CONTAINS_GROUPED_TASK, CANCEL_PAIRED_HAS_PENDING, 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, 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, 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, Entity$1 as Entity, EntityCapabilities, EntityClass, EntityInfo, EntityInstance, EntityInventory, EntityLayout, EntityRefInput, EntitySlot, EntityState, EntityStateInput, EntitySubscriptionHandle, EntityTypeName, EpochInfo, EpochsManager, ErrorMessage, EstimateTravelTimeOptions, EstimatedTravelTime, EventCatchupCompleteMessage, EventMessage, 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, 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_EMITTER, 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_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, 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, MIN_ORBITAL_ALTITUDE, MIN_TRANSFER_DISTANCE, 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, 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, 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, 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, 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, parseWireEntity, projectEntity, projectEntityAt, projectRemainingAt, projectedCargoAvailableAt, rawScheduleEnd, readCommonBase, removeFromStacks, renderDescription, resolveItem, resolveItemCategory, resolveStats, rollTier, rollWithinTier, rotation, schedule, setSubscriptionsDebug, stackKey, stackToCargoItem, stacksEqual, task, taskCargoChanges, taskCargoEffect, tierAdjective, tierColors, tierOfReserve, toLocation, typeLabel, validateSchedule, workerLaneKey, yieldThresholdAt };
|