@shipload/sdk 2.0.0-rc10 → 2.0.0-rc11
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 +79 -51
- package/lib/shipload.js +219 -164
- package/lib/shipload.js.map +1 -1
- package/lib/shipload.m.js +205 -151
- package/lib/shipload.m.js.map +1 -1
- package/package.json +2 -2
- package/src/capabilities/gathering.ts +36 -0
- package/src/capabilities/guards.ts +3 -3
- package/src/capabilities/index.ts +1 -1
- package/src/capabilities/modules.ts +4 -4
- package/src/contracts/server.ts +53 -16
- package/src/data/capabilities.ts +28 -28
- package/src/data/colors.ts +1 -0
- package/src/data/recipes.ts +25 -25
- package/src/derivation/stratum.ts +13 -7
- package/src/entities/location.ts +3 -3
- package/src/entities/ship-deploy.ts +17 -17
- package/src/entities/ship.ts +4 -4
- package/src/index-module.ts +11 -10
- package/src/managers/actions.ts +6 -3
- package/src/nft/description.ts +11 -11
- package/src/resolution/resolve-item.ts +7 -7
- package/src/scheduling/projection.ts +5 -5
- package/src/scheduling/schedule.ts +2 -2
- package/src/types/capabilities.ts +5 -5
- package/src/types/entity.ts +1 -1
- package/src/types.ts +1 -1
- package/src/utils/system.ts +10 -1
- package/src/capabilities/extraction.ts +0 -36
package/lib/shipload.d.ts
CHANGED
|
@@ -306,6 +306,12 @@ declare namespace Types {
|
|
|
306
306
|
seed: UInt64;
|
|
307
307
|
entity_name: string;
|
|
308
308
|
}
|
|
309
|
+
class descentity extends Struct {
|
|
310
|
+
item_id: UInt16;
|
|
311
|
+
hull_seed: UInt64;
|
|
312
|
+
module_items: UInt16[];
|
|
313
|
+
module_seeds: UInt64[];
|
|
314
|
+
}
|
|
309
315
|
class enable extends Struct {
|
|
310
316
|
enabled: boolean;
|
|
311
317
|
}
|
|
@@ -326,11 +332,11 @@ declare namespace Types {
|
|
|
326
332
|
thrust: UInt32;
|
|
327
333
|
drain: UInt16;
|
|
328
334
|
}
|
|
329
|
-
class
|
|
330
|
-
|
|
335
|
+
class gatherer_stats extends Struct {
|
|
336
|
+
yield: UInt16;
|
|
331
337
|
drain: UInt16;
|
|
332
338
|
depth: UInt16;
|
|
333
|
-
|
|
339
|
+
speed: UInt16;
|
|
334
340
|
}
|
|
335
341
|
class hauler_stats extends Struct {
|
|
336
342
|
capacity: UInt8;
|
|
@@ -354,7 +360,7 @@ declare namespace Types {
|
|
|
354
360
|
engines?: movement_stats;
|
|
355
361
|
generator?: energy_stats;
|
|
356
362
|
capacity?: UInt32;
|
|
357
|
-
|
|
363
|
+
gatherer?: gatherer_stats;
|
|
358
364
|
hauler?: hauler_stats;
|
|
359
365
|
warp?: warp_stats;
|
|
360
366
|
crafter?: crafter_stats;
|
|
@@ -386,7 +392,7 @@ declare namespace Types {
|
|
|
386
392
|
id: UInt64;
|
|
387
393
|
participants: entity_ref[];
|
|
388
394
|
}
|
|
389
|
-
class
|
|
395
|
+
class gather extends Struct {
|
|
390
396
|
entity_type: Name;
|
|
391
397
|
id: UInt64;
|
|
392
398
|
stratum: UInt16;
|
|
@@ -669,10 +675,10 @@ declare namespace Types {
|
|
|
669
675
|
engines?: movement_stats;
|
|
670
676
|
generator?: energy_stats;
|
|
671
677
|
loaders?: loader_stats;
|
|
672
|
-
|
|
673
|
-
hauler?: hauler_stats;
|
|
678
|
+
gatherer?: gatherer_stats;
|
|
674
679
|
warp?: warp_stats;
|
|
675
680
|
crafter?: crafter_stats;
|
|
681
|
+
hauler?: hauler_stats;
|
|
676
682
|
modules: module_entry[];
|
|
677
683
|
schedule?: schedule;
|
|
678
684
|
}
|
|
@@ -681,6 +687,12 @@ declare namespace Types {
|
|
|
681
687
|
item_id: UInt64;
|
|
682
688
|
quantity: UInt64;
|
|
683
689
|
}
|
|
690
|
+
class spawnpacked extends Struct {
|
|
691
|
+
entity_id: UInt64;
|
|
692
|
+
item_id: UInt16;
|
|
693
|
+
hull_seed: UInt64;
|
|
694
|
+
installed: cargo_seed[];
|
|
695
|
+
}
|
|
684
696
|
class spawnseeded extends Struct {
|
|
685
697
|
entity_id: UInt64;
|
|
686
698
|
item_id: UInt64;
|
|
@@ -919,10 +931,16 @@ declare namespace ActionParams {
|
|
|
919
931
|
seed: UInt64Type;
|
|
920
932
|
entity_name: string;
|
|
921
933
|
}
|
|
934
|
+
interface descentity {
|
|
935
|
+
item_id: UInt16Type;
|
|
936
|
+
hull_seed: UInt64Type;
|
|
937
|
+
module_items: UInt16Type[];
|
|
938
|
+
module_seeds: UInt64Type[];
|
|
939
|
+
}
|
|
922
940
|
interface enable {
|
|
923
941
|
enabled: boolean;
|
|
924
942
|
}
|
|
925
|
-
interface
|
|
943
|
+
interface gather {
|
|
926
944
|
entity_type: NameType;
|
|
927
945
|
id: UInt64Type;
|
|
928
946
|
stratum: UInt16Type;
|
|
@@ -1032,6 +1050,12 @@ declare namespace ActionParams {
|
|
|
1032
1050
|
item_id: UInt64Type;
|
|
1033
1051
|
quantity: UInt64Type;
|
|
1034
1052
|
}
|
|
1053
|
+
interface spawnpacked {
|
|
1054
|
+
entity_id: UInt64Type;
|
|
1055
|
+
item_id: UInt16Type;
|
|
1056
|
+
hull_seed: UInt64Type;
|
|
1057
|
+
installed: Type.cargo_seed[];
|
|
1058
|
+
}
|
|
1035
1059
|
interface spawnseeded {
|
|
1036
1060
|
entity_id: UInt64Type;
|
|
1037
1061
|
item_id: UInt64Type;
|
|
@@ -1084,8 +1108,9 @@ interface ActionNameParams {
|
|
|
1084
1108
|
craft: ActionParams.craft;
|
|
1085
1109
|
createentity: ActionParams.createentity;
|
|
1086
1110
|
deploy: ActionParams.deploy;
|
|
1111
|
+
descentity: ActionParams.descentity;
|
|
1087
1112
|
enable: ActionParams.enable;
|
|
1088
|
-
|
|
1113
|
+
gather: ActionParams.gather;
|
|
1089
1114
|
getconfig: ActionParams.getconfig;
|
|
1090
1115
|
getentities: ActionParams.getentities;
|
|
1091
1116
|
getentity: ActionParams.getentity;
|
|
@@ -1115,6 +1140,7 @@ interface ActionNameParams {
|
|
|
1115
1140
|
salt: ActionParams.salt;
|
|
1116
1141
|
setnftcfg: ActionParams.setnftcfg;
|
|
1117
1142
|
spawncargo: ActionParams.spawncargo;
|
|
1143
|
+
spawnpacked: ActionParams.spawnpacked;
|
|
1118
1144
|
spawnseeded: ActionParams.spawnseeded;
|
|
1119
1145
|
transfer: ActionParams.transfer;
|
|
1120
1146
|
travel: ActionParams.travel;
|
|
@@ -1128,7 +1154,8 @@ interface ActionReturnValues {
|
|
|
1128
1154
|
cancel: Types.cancel_results;
|
|
1129
1155
|
craft: Types.task_results;
|
|
1130
1156
|
deploy: Types.task_results;
|
|
1131
|
-
|
|
1157
|
+
descentity: string;
|
|
1158
|
+
gather: Types.task_results;
|
|
1132
1159
|
getconfig: Types.game_config;
|
|
1133
1160
|
getentities: Types.entity_info[];
|
|
1134
1161
|
getentity: Types.entity_info;
|
|
@@ -1270,7 +1297,7 @@ declare enum TaskType {
|
|
|
1270
1297
|
RECHARGE = 2,
|
|
1271
1298
|
LOAD = 3,
|
|
1272
1299
|
UNLOAD = 4,
|
|
1273
|
-
|
|
1300
|
+
GATHER = 5,
|
|
1274
1301
|
WARP = 6,
|
|
1275
1302
|
CRAFT = 7,
|
|
1276
1303
|
DEPLOY = 8,
|
|
@@ -1445,7 +1472,7 @@ declare class ActionsManager extends BaseManager {
|
|
|
1445
1472
|
transfer(sourceType: EntityTypeName, sourceId: UInt64Type, destType: EntityTypeName, destId: UInt64Type, goodId: UInt64Type, quantity: UInt64Type): Action;
|
|
1446
1473
|
foundCompany(account: NameType, name: string): Action;
|
|
1447
1474
|
join(account: NameType): Action;
|
|
1448
|
-
|
|
1475
|
+
gather(shipId: UInt64Type, stratum: number, quantity: number): Action;
|
|
1449
1476
|
warp(shipId: UInt64Type, destination: CoordinatesType): Action;
|
|
1450
1477
|
craft(entityType: EntityTypeName, entityId: UInt64Type, recipeId: number, quantity: number, inputs: ActionParams.Type.cargo_item[]): Action;
|
|
1451
1478
|
blend(entityType: EntityTypeName, entityId: UInt64Type, inputs: ActionParams.Type.cargo_item[]): Action;
|
|
@@ -1503,8 +1530,8 @@ interface StorageCapability {
|
|
|
1503
1530
|
interface LoaderCapability {
|
|
1504
1531
|
loaders: Types.loader_stats;
|
|
1505
1532
|
}
|
|
1506
|
-
interface
|
|
1507
|
-
|
|
1533
|
+
interface GathererCapability {
|
|
1534
|
+
gatherer: Types.gatherer_stats;
|
|
1508
1535
|
}
|
|
1509
1536
|
interface MassCapability {
|
|
1510
1537
|
hullmass: UInt32;
|
|
@@ -1518,7 +1545,7 @@ interface EntityCapabilities {
|
|
|
1518
1545
|
engines?: Types.movement_stats;
|
|
1519
1546
|
generator?: Types.energy_stats;
|
|
1520
1547
|
loaders?: Types.loader_stats;
|
|
1521
|
-
|
|
1548
|
+
gatherer?: Types.gatherer_stats;
|
|
1522
1549
|
crafter?: Types.crafter_stats;
|
|
1523
1550
|
}
|
|
1524
1551
|
interface EntityState {
|
|
@@ -1531,7 +1558,7 @@ interface EntityState {
|
|
|
1531
1558
|
declare function capsHasMovement(caps: EntityCapabilities): boolean;
|
|
1532
1559
|
declare function capsHasStorage(caps: EntityCapabilities): boolean;
|
|
1533
1560
|
declare function capsHasLoaders(caps: EntityCapabilities): boolean;
|
|
1534
|
-
declare function
|
|
1561
|
+
declare function capsHasGatherer(caps: EntityCapabilities): boolean;
|
|
1535
1562
|
declare function capsHasMass(caps: EntityCapabilities): boolean;
|
|
1536
1563
|
|
|
1537
1564
|
type Schedule = Types.schedule;
|
|
@@ -1580,7 +1607,7 @@ declare function isInFlight(entity: ScheduleData, now: Date): boolean;
|
|
|
1580
1607
|
declare function isRecharging(entity: ScheduleData, now: Date): boolean;
|
|
1581
1608
|
declare function isLoading(entity: ScheduleData, now: Date): boolean;
|
|
1582
1609
|
declare function isUnloading(entity: ScheduleData, now: Date): boolean;
|
|
1583
|
-
declare function
|
|
1610
|
+
declare function isGathering(entity: ScheduleData, now: Date): boolean;
|
|
1584
1611
|
|
|
1585
1612
|
type schedule_ScheduleData = ScheduleData;
|
|
1586
1613
|
type schedule_Scheduleable = Scheduleable;
|
|
@@ -1605,7 +1632,7 @@ declare const schedule_isInFlight: typeof isInFlight;
|
|
|
1605
1632
|
declare const schedule_isRecharging: typeof isRecharging;
|
|
1606
1633
|
declare const schedule_isLoading: typeof isLoading;
|
|
1607
1634
|
declare const schedule_isUnloading: typeof isUnloading;
|
|
1608
|
-
declare const
|
|
1635
|
+
declare const schedule_isGathering: typeof isGathering;
|
|
1609
1636
|
declare namespace schedule {
|
|
1610
1637
|
export {
|
|
1611
1638
|
schedule_ScheduleData as ScheduleData,
|
|
@@ -1632,7 +1659,7 @@ declare namespace schedule {
|
|
|
1632
1659
|
schedule_isRecharging as isRecharging,
|
|
1633
1660
|
schedule_isLoading as isLoading,
|
|
1634
1661
|
schedule_isUnloading as isUnloading,
|
|
1635
|
-
|
|
1662
|
+
schedule_isGathering as isGathering,
|
|
1636
1663
|
};
|
|
1637
1664
|
}
|
|
1638
1665
|
|
|
@@ -1679,7 +1706,7 @@ declare class Location {
|
|
|
1679
1706
|
static from(coordinates: CoordinatesType): Location;
|
|
1680
1707
|
hasSystemAt(gameSeed: Checksum256Type): boolean;
|
|
1681
1708
|
getLocationTypeAt(gameSeed: Checksum256Type): LocationType;
|
|
1682
|
-
|
|
1709
|
+
isGatherableAt(gameSeed: Checksum256Type): boolean;
|
|
1683
1710
|
findNearby(gameSeed: Checksum256Type, maxDistance?: UInt16Type): Distance[];
|
|
1684
1711
|
equals(other: CoordinatesType | Location): boolean;
|
|
1685
1712
|
get epoch(): UInt64 | undefined;
|
|
@@ -1787,10 +1814,10 @@ declare class Ship extends Types.entity_info {
|
|
|
1787
1814
|
isRecharging(now: Date): boolean;
|
|
1788
1815
|
isLoading(now: Date): boolean;
|
|
1789
1816
|
isUnloading(now: Date): boolean;
|
|
1790
|
-
|
|
1817
|
+
isGathering(now: Date): boolean;
|
|
1791
1818
|
get hasEngines(): boolean;
|
|
1792
1819
|
get hasGenerator(): boolean;
|
|
1793
|
-
get
|
|
1820
|
+
get hasGatherer(): boolean;
|
|
1794
1821
|
get hasWarp(): boolean;
|
|
1795
1822
|
project(): ProjectedEntity;
|
|
1796
1823
|
projectAt(now: Date): ProjectedEntity;
|
|
@@ -1936,7 +1963,8 @@ declare function getItem(itemId: UInt16Type): Item;
|
|
|
1936
1963
|
declare function getItems(): Item[];
|
|
1937
1964
|
|
|
1938
1965
|
declare function getLocationType(gameSeed: Checksum256Type, coordinates: CoordinatesType): LocationType;
|
|
1939
|
-
declare function
|
|
1966
|
+
declare function isGatherableLocation(locationType: LocationType): boolean;
|
|
1967
|
+
declare function getLocationTypeName(type: LocationType): string;
|
|
1940
1968
|
declare function getSystemName(gameSeed: Checksum256Type, location: CoordinatesType): string;
|
|
1941
1969
|
declare function hasSystem(gameSeed: Checksum256Type, coordinates: CoordinatesType): boolean;
|
|
1942
1970
|
declare function deriveLocationStatic(gameSeed: Checksum256Type, coordinates: CoordinatesType): Types.location_static;
|
|
@@ -2164,7 +2192,7 @@ interface Entity {
|
|
|
2164
2192
|
location: Coordinates | Types.coordinates;
|
|
2165
2193
|
}
|
|
2166
2194
|
type ShipEntity = Entity & Partial<MovementCapability> & Partial<EnergyCapability> & StorageCapability & Partial<LoaderCapability> & MassCapability & ScheduleCapability & {
|
|
2167
|
-
|
|
2195
|
+
gatherer?: Types.gatherer_stats;
|
|
2168
2196
|
};
|
|
2169
2197
|
type WarehouseEntity = Entity & StorageCapability & Partial<LoaderCapability> & MassCapability & ScheduleCapability;
|
|
2170
2198
|
type ContainerEntity = Entity & StorageCapability & MassCapability & ScheduleCapability;
|
|
@@ -2176,7 +2204,7 @@ declare function hasStorage(e: Entity): e is Entity & StorageCapability;
|
|
|
2176
2204
|
declare function hasLoaders(e: Entity): e is Entity & LoaderCapability;
|
|
2177
2205
|
declare function hasMass(e: Entity): e is Entity & MassCapability;
|
|
2178
2206
|
declare function hasSchedule(e: Entity): e is Entity & ScheduleCapability;
|
|
2179
|
-
declare function
|
|
2207
|
+
declare function hasGatherer(e: Entity): e is Entity & GathererCapability;
|
|
2180
2208
|
|
|
2181
2209
|
declare function maxTravelDistance(entity: MovementCapability): UInt32;
|
|
2182
2210
|
declare function calcEnergyUsage(entity: MovementCapability, distance: UInt64): UInt64;
|
|
@@ -2185,8 +2213,8 @@ declare function needsRecharge(entity: MovementCapability & EnergyCapability): b
|
|
|
2185
2213
|
|
|
2186
2214
|
declare function calcLoadDuration(entity: LoaderCapability, cargoMass: UInt64): UInt32;
|
|
2187
2215
|
|
|
2188
|
-
declare function
|
|
2189
|
-
declare function
|
|
2216
|
+
declare function calc_gather_duration(gatherer: Types.gatherer_stats, itemMass: number, quantity: number, stratum: number, richness: number): UInt32;
|
|
2217
|
+
declare function calc_gather_energy(gatherer: Types.gatherer_stats, duration: number): UInt16;
|
|
2190
2218
|
|
|
2191
2219
|
interface CrafterCapability {
|
|
2192
2220
|
crafter: Types.crafter_stats;
|
|
@@ -2197,7 +2225,7 @@ declare function calc_craft_energy(drain: number, totalInputMass: number): UInt1
|
|
|
2197
2225
|
|
|
2198
2226
|
declare const ITEM_ENGINE_T1 = 10100;
|
|
2199
2227
|
declare const ITEM_GENERATOR_T1 = 10101;
|
|
2200
|
-
declare const
|
|
2228
|
+
declare const ITEM_GATHERER_T1 = 10102;
|
|
2201
2229
|
declare const ITEM_LOADER_T1 = 10103;
|
|
2202
2230
|
declare const ITEM_MANUFACTURING_T1 = 10104;
|
|
2203
2231
|
declare const ITEM_STORAGE_T1 = 10105;
|
|
@@ -2205,7 +2233,7 @@ declare const ITEM_HAULER_T1 = 10106;
|
|
|
2205
2233
|
declare const MODULE_ANY = 0;
|
|
2206
2234
|
declare const MODULE_ENGINE = 1;
|
|
2207
2235
|
declare const MODULE_GENERATOR = 2;
|
|
2208
|
-
declare const
|
|
2236
|
+
declare const MODULE_GATHERER = 3;
|
|
2209
2237
|
declare const MODULE_LOADER = 4;
|
|
2210
2238
|
declare const MODULE_WARP = 5;
|
|
2211
2239
|
declare const MODULE_CRAFTER = 6;
|
|
@@ -2285,8 +2313,8 @@ declare function getStatMappings(): StatMapping[];
|
|
|
2285
2313
|
declare function getStatMappingsForStat(stat: string): StatMapping[];
|
|
2286
2314
|
declare function getStatMappingsForCapability(capability: string): StatMapping[];
|
|
2287
2315
|
|
|
2288
|
-
declare const
|
|
2289
|
-
declare const
|
|
2316
|
+
declare const ITEM_MATTER_CONDUIT = 10005;
|
|
2317
|
+
declare const ITEM_SURVEY_PROBE = 10006;
|
|
2290
2318
|
declare const ITEM_CARGO_ARM = 10007;
|
|
2291
2319
|
declare const ITEM_TOOL_BIT = 10008;
|
|
2292
2320
|
declare const ITEM_REACTION_CHAMBER = 10009;
|
|
@@ -2387,11 +2415,11 @@ declare function computeGeneratorCapabilities(stats: Record<string, number>): {
|
|
|
2387
2415
|
capacity: number;
|
|
2388
2416
|
recharge: number;
|
|
2389
2417
|
};
|
|
2390
|
-
declare function
|
|
2391
|
-
|
|
2418
|
+
declare function computeGathererCapabilities(stats: Record<string, number>): {
|
|
2419
|
+
yield: number;
|
|
2392
2420
|
drain: number;
|
|
2393
2421
|
depth: number;
|
|
2394
|
-
|
|
2422
|
+
speed: number;
|
|
2395
2423
|
};
|
|
2396
2424
|
declare function computeLoaderCapabilities(stats: Record<string, number>): {
|
|
2397
2425
|
mass: number;
|
|
@@ -2423,11 +2451,11 @@ interface ShipCapabilities {
|
|
|
2423
2451
|
capacity: number;
|
|
2424
2452
|
recharge: number;
|
|
2425
2453
|
};
|
|
2426
|
-
|
|
2427
|
-
|
|
2454
|
+
gatherer?: {
|
|
2455
|
+
yield: number;
|
|
2428
2456
|
drain: number;
|
|
2429
2457
|
depth: number;
|
|
2430
|
-
|
|
2458
|
+
speed: number;
|
|
2431
2459
|
};
|
|
2432
2460
|
hauler?: {
|
|
2433
2461
|
capacity: number;
|
|
@@ -2523,10 +2551,10 @@ declare const computeEngineThrust: (vol: number) => number;
|
|
|
2523
2551
|
declare const computeEngineDrain: (thm: number) => number;
|
|
2524
2552
|
declare const computeGeneratorCap: (res: number) => number;
|
|
2525
2553
|
declare const computeGeneratorRech: (clr: number) => number;
|
|
2526
|
-
declare const
|
|
2527
|
-
declare const
|
|
2528
|
-
declare const
|
|
2529
|
-
declare const
|
|
2554
|
+
declare const computeGathererYield: (str: number) => number;
|
|
2555
|
+
declare const computeGathererDrain: (con: number) => number;
|
|
2556
|
+
declare const computeGathererDepth: (tol: number) => number;
|
|
2557
|
+
declare const computeGathererSpeed: (ref: number) => number;
|
|
2530
2558
|
declare const computeLoaderMass: (duc: number) => number;
|
|
2531
2559
|
declare const computeLoaderThrust: (pla: number) => number;
|
|
2532
2560
|
declare const computeCrafterSpeed: (rea: number) => number;
|
|
@@ -2554,10 +2582,10 @@ declare const index_computeEngineThrust: typeof computeEngineThrust;
|
|
|
2554
2582
|
declare const index_computeEngineDrain: typeof computeEngineDrain;
|
|
2555
2583
|
declare const index_computeGeneratorCap: typeof computeGeneratorCap;
|
|
2556
2584
|
declare const index_computeGeneratorRech: typeof computeGeneratorRech;
|
|
2557
|
-
declare const
|
|
2558
|
-
declare const
|
|
2559
|
-
declare const
|
|
2560
|
-
declare const
|
|
2585
|
+
declare const index_computeGathererYield: typeof computeGathererYield;
|
|
2586
|
+
declare const index_computeGathererDrain: typeof computeGathererDrain;
|
|
2587
|
+
declare const index_computeGathererDepth: typeof computeGathererDepth;
|
|
2588
|
+
declare const index_computeGathererSpeed: typeof computeGathererSpeed;
|
|
2561
2589
|
declare const index_computeLoaderMass: typeof computeLoaderMass;
|
|
2562
2590
|
declare const index_computeLoaderThrust: typeof computeLoaderThrust;
|
|
2563
2591
|
declare const index_computeCrafterSpeed: typeof computeCrafterSpeed;
|
|
@@ -2586,10 +2614,10 @@ declare namespace index {
|
|
|
2586
2614
|
index_computeEngineDrain as computeEngineDrain,
|
|
2587
2615
|
index_computeGeneratorCap as computeGeneratorCap,
|
|
2588
2616
|
index_computeGeneratorRech as computeGeneratorRech,
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2617
|
+
index_computeGathererYield as computeGathererYield,
|
|
2618
|
+
index_computeGathererDrain as computeGathererDrain,
|
|
2619
|
+
index_computeGathererDepth as computeGathererDepth,
|
|
2620
|
+
index_computeGathererSpeed as computeGathererSpeed,
|
|
2593
2621
|
index_computeLoaderMass as computeLoaderMass,
|
|
2594
2622
|
index_computeLoaderThrust as computeLoaderThrust,
|
|
2595
2623
|
index_computeCrafterSpeed as computeCrafterSpeed,
|
|
@@ -2608,10 +2636,10 @@ type task = Types.task;
|
|
|
2608
2636
|
type cargo_item = Types.cargo_item;
|
|
2609
2637
|
type warehouse_row = Types.warehouse_row;
|
|
2610
2638
|
type container_row = Types.container_row;
|
|
2611
|
-
type
|
|
2639
|
+
type gatherer_stats = Types.gatherer_stats;
|
|
2612
2640
|
type location_static = Types.location_static;
|
|
2613
2641
|
type location_epoch = Types.location_epoch;
|
|
2614
2642
|
type location_derived = Types.location_derived;
|
|
2615
2643
|
type location_row = Types.location_row;
|
|
2616
2644
|
|
|
2617
|
-
export { ActionsManager, AnyEntity, BASE_ORBITAL_MASS, COMMIT_ALREADY_SET, COMMIT_CANNOT_MATCH, COMMIT_NOT_SET, COMPANY_NOT_FOUND, CONTAINER_Z, CRAFT_ENERGY_DIVISOR, CapabilityAttribute, CargoData, CargoMassInfo, CargoSeed, CategoryInfo, CategoryStacks, ComponentDefinition, ComponentStat, Container, ContainerEntity, ContainerStateInput, Coordinates, CoordinatesType, CraftableItem, CraftedItemCategory, CrafterCapability, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, Distance, EPOCH_NON_ZERO, EPOCH_NOT_READY, ERROR_SYSTEM_ALREADY_INITIALIZED, ERROR_SYSTEM_DISABLED, ERROR_SYSTEM_NOT_INITIALIZED, EnergyCapability, EntitiesManager, Entity, EntityCapabilities, EntityInventory, EntityRecipe, EntityRefInput, EntityState, EntityType, EntityTypeName, EpochInfo, EpochsManager, EstimateTravelTimeOptions, EstimatedTravelTime,
|
|
2645
|
+
export { ActionsManager, AnyEntity, BASE_ORBITAL_MASS, COMMIT_ALREADY_SET, COMMIT_CANNOT_MATCH, COMMIT_NOT_SET, COMPANY_NOT_FOUND, CONTAINER_Z, CRAFT_ENERGY_DIVISOR, CapabilityAttribute, CargoData, CargoMassInfo, CargoSeed, CategoryInfo, CategoryStacks, ComponentDefinition, ComponentStat, Container, ContainerEntity, ContainerStateInput, Coordinates, CoordinatesType, CraftableItem, CraftedItemCategory, CrafterCapability, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, Distance, EPOCH_NON_ZERO, EPOCH_NOT_READY, ERROR_SYSTEM_ALREADY_INITIALIZED, ERROR_SYSTEM_DISABLED, ERROR_SYSTEM_NOT_INITIALIZED, EnergyCapability, EntitiesManager, Entity, EntityCapabilities, EntityInventory, EntityRecipe, EntityRefInput, EntityState, EntityType, EntityTypeName, EpochInfo, EpochsManager, EstimateTravelTimeOptions, EstimatedTravelTime, GAME_NOT_FOUND, GAME_SEED_NOT_SET, GameState, GathererCapability, HasCapacity, HasCargo, HasCargomass, HasScheduleAndLocation, INITIAL_CONTAINER_CAPACITY, INITIAL_CONTAINER_HULLMASS, INITIAL_WAREHOUSE_CAPACITY, INSUFFICIENT_BALANCE, INSUFFICIENT_ITEM_QUANTITY, INSUFFICIENT_ITEM_SUPPLY, INVALID_AMOUNT, ITEM_CARGO_ARM, ITEM_CARGO_LINING, ITEM_CARGO_LINING_T2, ITEM_CONTAINER_T1_PACKED, ITEM_CONTAINER_T2_PACKED, ITEM_DOES_NOT_EXIST, ITEM_ENGINE_T1, ITEM_FOCUSING_ARRAY, ITEM_GATHERER_T1, ITEM_GENERATOR_T1, ITEM_HAULER_T1, ITEM_HULL_PLATES, ITEM_HULL_PLATES_T2, ITEM_LOADER_T1, ITEM_MANUFACTURING_T1, ITEM_MATTER_CONDUIT, ITEM_NOT_AVAILABLE_AT_LOCATION, ITEM_POWER_CELL, ITEM_REACTION_CHAMBER, ITEM_SHIP_T1_PACKED, ITEM_STORAGE_T1, ITEM_SURVEY_PROBE, ITEM_THRUSTER_CORE, ITEM_TOOL_BIT, ITEM_TYPE_COMPONENT, ITEM_TYPE_ENTITY, ITEM_TYPE_MODULE, ITEM_TYPE_RESOURCE, ITEM_WAREHOUSE_T1_PACKED, InventoryAccessor, Item, LOCATION_MAX_DEPTH, LOCATION_MIN_DEPTH, LoadTimeBreakdown, LoaderCapability, Location, LocationType, LocationsManager, MAX_ORBITAL_ALTITUDE, MIN_ORBITAL_ALTITUDE, MODULE_ANY, MODULE_CRAFTER, MODULE_ENGINE, MODULE_GATHERER, MODULE_GENERATOR, MODULE_HAULER, MODULE_LAUNCHER, MODULE_LOADER, MODULE_STORAGE, MODULE_WARP, MassCapability, ModuleEntry, ModuleRecipe, ModuleSlot, MovementCapability, index as NFT, NFTCargoItem, NFTCommonBase, NFTInstalledModule, NFTModuleSlot, NO_SCHEDULE, NamedStats, PLANET_SUBTYPE_GAS_GIANT, PLANET_SUBTYPE_ICY, PLANET_SUBTYPE_INDUSTRIAL, PLANET_SUBTYPE_OCEAN, PLANET_SUBTYPE_ROCKY, PLANET_SUBTYPE_TERRESTRIAL, PLAYER_ALREADY_JOINED, PLAYER_NOT_FOUND, PRECISION, PlanetSubtypeInfo, platform as PlatformContract, Player, PlayerStateInput, PlayersManager, Projectable, ProjectedEntity, REQUIRES_MORE_THAN_ONE, REQUIRES_POSITIVE_VALUE, RecipeInput, ResolvedAttributeGroup, ResolvedItem, ResolvedItemStat, ResolvedItemType, ResolvedModuleSlot, ResourceCategory, ResourceStats, ResourceTier, SHIP_ALREADY_THERE, SHIP_ALREADY_TRAVELING, SHIP_CANNOT_BUY_TRAVELING, SHIP_CANNOT_CANCEL_TASK, SHIP_CANNOT_UPDATE_TRAVELING, SHIP_CARGO_NOT_LOADED, SHIP_CARGO_NOT_OWNED, SHIP_INVALID_CARGO, SHIP_INVALID_DESTINATION, SHIP_INVALID_TRAVEL_DURATION, SHIP_NOT_ARRIVED, SHIP_NOT_ENOUGH_ENERGY, SHIP_NOT_ENOUGH_ENERGY_CAPACITY, SHIP_NOT_FOUND, SHIP_NOT_IDLE, SHIP_NOT_OWNED, SHIP_NO_COMPLETED_TASKS, SHIP_NO_TASKS_TO_CANCEL, ScheduleAccessor, ScheduleCapability, ScheduleData, Scheduleable, server as ServerContract, Ship, ShipCapabilities, ShipEntity, ShipLike, ShipStateInput, Shipload, StackInput, StatDefinition, StatMapping, StorageCapability, StratumInfo, TRAVEL_MAX_DURATION, TaskCancelable, TaskType, TransferEntity, WAREHOUSE_ALREADY_AT_LOCATION, WAREHOUSE_CAPACITY_EXCEEDED, WAREHOUSE_NOT_FOUND, WAREHOUSE_Z, Warehouse, WarehouseEntity, WarehouseStateInput, availableCapacity$1 as availableCapacity, availableCapacityFromMass, blendCargoStacks, blendComponentStacks, blendCrossGroup, blendStacks, buildEntityDescription, calcCargoItemMass, calcCargoMass, calcEnergyUsage, calcLoadDuration, calc_acceleration, calc_craft_duration, calc_craft_energy, calc_energyusage, calc_flighttime, calc_gather_duration, calc_gather_energy, 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, capsHasLoaders, capsHasMass, capsHasMovement, capsHasStorage, cargoUtils, cargo_item, categoryColors, categoryIcons, categoryItemMass, componentIcon, components, computeBaseCapacityShip, computeBaseCapacityWarehouse, computeBaseHullmass, computeComponentStats, computeContainerCapabilities, computeContainerT2Capabilities, computeCrafterDrain, computeCrafterSpeed, computeEngineCapabilities, computeEngineDrain, computeEngineThrust, computeEntityStats, computeGathererCapabilities, computeGathererDepth, computeGathererDrain, computeGathererSpeed, computeGathererYield, computeGeneratorCap, computeGeneratorCapabilities, computeGeneratorRech, computeHaulPenalty, computeHaulerCapabilities, computeHaulerDrain, computeInputMass, computeLoaderCapabilities, computeLoaderMass, computeLoaderThrust, computeManufacturingCapabilities, computeShipCapabilities, computeShipHullCapabilities, computeStorageCapabilities, computeWarehouseHullCapabilities, container_row, coordsToLocationId, createInventoryAccessor, createProjectedEntity, createScheduleAccessor, decodeCraftedItemStats, decodeStat, decodeStats, Shipload as default, depthScaleFactor, deriveLocation, deriveLocationEpoch, deriveLocationSize, deriveLocationStatic, deriveResourceStats, deriveStratum, deserializeAsset, deserializeComponent, deserializeEntity, deserializeModule, deserializeResource, distanceBetweenCoordinates, distanceBetweenPoints, encodeStats, energyPercent, energy_stats, entityDisplayName, entityRecipes, estimateDealTravelTime, estimateTravelTime, findNearbyPlanets, formatModuleLine, gatherer_stats, getAllCraftableItems, getCapabilityAttributes, getCategoryInfo, getComponentById, getComponentsForCategory, getComponentsForStat, getCurrentEpoch, getDepthThreshold, getDestinationLocation, getEligibleResources, getEntityRecipe, getEntityRecipeByItemId, getEntitySlotLayout, getEpochInfo, getFlightOrigin, getItem, getItems, getLocationCandidates, getLocationType, getLocationTypeName, getModuleCapabilityType, getModuleRecipe, getModuleRecipeByItemId, getPlanetSubtype, getPlanetSubtypes, getPositionAt, getResourceTier, getResourceWeight, getStatDefinitions, getStatMappings, getStatMappingsForCapability, getStatMappingsForStat, getStatName, getSystemName, hasEnergy, hasEnergyForDistance, hasGatherer, hasLoaders, hasMass, hasSchedule, hasSpace$1 as hasSpace, hasSpaceForMass, hasStorage, hasSystem, hash, hash512, isCraftedItem, isFull$1 as isFull, isFullFromMass, isGatherableLocation, isInvertedAttribute, isModuleItem, isRelatedItem, itemCategory, itemIcons, itemIds, itemOffset, itemTier, itemTypeCode, lerp, loader_stats, location_derived, location_epoch, location_row, location_static, makeContainer, makeShip, makeWarehouse, maxTravelDistance, moduleAccepts, moduleDisplayName, moduleIcon, moduleRecipes, movement_stats, needsRecharge, projectEntity, projectEntityAt, readCommonBase, resolveItem, resolveStats, rotation, schedule, statMappings, task, tierColors, toLocation, warehouse_row };
|