@shipload/sdk 1.0.0-next.26 → 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 CHANGED
@@ -360,6 +360,7 @@ declare namespace Types {
360
360
  }
361
361
  class cancel extends Struct {
362
362
  id: UInt64;
363
+ lane_key: UInt8;
363
364
  count: UInt64;
364
365
  }
365
366
  class entity_ref extends Struct {
@@ -516,6 +517,10 @@ declare namespace Types {
516
517
  started: TimePoint;
517
518
  tasks: task[];
518
519
  }
520
+ class lane extends Struct {
521
+ lane_key: UInt8;
522
+ schedule: schedule;
523
+ }
519
524
  class entity_info extends Struct {
520
525
  type: Name;
521
526
  id: UInt64;
@@ -536,13 +541,7 @@ declare namespace Types {
536
541
  loaders?: loader_stats;
537
542
  hauler?: hauler_stats;
538
543
  crafter?: crafter_stats;
539
- is_idle: boolean;
540
- current_task?: task;
541
- current_task_elapsed: UInt32;
542
- current_task_remaining: UInt32;
543
- pending_tasks: task[];
544
- idle_at?: TimePoint;
545
- schedule?: schedule;
544
+ lanes: lane[];
546
545
  }
547
546
  class slot_def extends Struct {
548
547
  type: UInt8;
@@ -566,7 +565,7 @@ declare namespace Types {
566
565
  energy?: UInt32;
567
566
  cargomass: UInt32;
568
567
  modules: module_entry[];
569
- schedule?: schedule;
568
+ lanes: lane[];
570
569
  }
571
570
  class entity_seq_row extends Struct {
572
571
  next_id: UInt64;
@@ -890,6 +889,7 @@ declare namespace Types {
890
889
  starts_at: TimePoint;
891
890
  completes_at: TimePoint;
892
891
  new_energy?: UInt32;
892
+ lane_key: UInt8;
893
893
  }
894
894
  class notify extends Struct {
895
895
  event: task_event;
@@ -969,6 +969,11 @@ declare namespace Types {
969
969
  class resources_result extends Struct {
970
970
  resources: resource_info[];
971
971
  }
972
+ class retarget extends Struct {
973
+ source_id: UInt64;
974
+ task_index: UInt64;
975
+ new_dest_id: UInt64;
976
+ }
972
977
  class reveal extends Struct {
973
978
  oracle_id: Name;
974
979
  epoch: UInt64;
@@ -1175,7 +1180,11 @@ declare namespace ActionParams {
1175
1180
  energy?: UInt32Type;
1176
1181
  cargomass: UInt32Type;
1177
1182
  modules: Type.module_entry[];
1178
- schedule?: Type.schedule;
1183
+ lanes: Type.lane[];
1184
+ }
1185
+ interface lane {
1186
+ lane_key: UInt8Type;
1187
+ schedule: Type.schedule;
1179
1188
  }
1180
1189
  interface schedule {
1181
1190
  started: TimePointType;
@@ -1230,6 +1239,7 @@ declare namespace ActionParams {
1230
1239
  starts_at: TimePointType;
1231
1240
  completes_at: TimePointType;
1232
1241
  new_energy?: UInt32Type;
1242
+ lane_key: UInt8Type;
1233
1243
  }
1234
1244
  }
1235
1245
  interface addmodule {
@@ -1256,6 +1266,7 @@ declare namespace ActionParams {
1256
1266
  }
1257
1267
  interface cancel {
1258
1268
  id: UInt64Type;
1269
+ lane_key: UInt8Type;
1259
1270
  count: UInt64Type;
1260
1271
  }
1261
1272
  interface claimplot {
@@ -1469,6 +1480,11 @@ declare namespace ActionParams {
1469
1480
  id: UInt64Type;
1470
1481
  count?: UInt64Type;
1471
1482
  }
1483
+ interface retarget {
1484
+ source_id: UInt64Type;
1485
+ task_index: UInt64Type;
1486
+ new_dest_id: UInt64Type;
1487
+ }
1472
1488
  interface reveal {
1473
1489
  oracle_id: NameType;
1474
1490
  epoch: UInt64Type;
@@ -1608,6 +1624,7 @@ interface ActionNameParams {
1608
1624
  refrshentity: ActionParams.refrshentity;
1609
1625
  removeoracle: ActionParams.removeoracle;
1610
1626
  resolve: ActionParams.resolve;
1627
+ retarget: ActionParams.retarget;
1611
1628
  reveal: ActionParams.reveal;
1612
1629
  rmmodule: ActionParams.rmmodule;
1613
1630
  rmnftcfg: ActionParams.rmnftcfg;
@@ -1671,6 +1688,7 @@ interface ActionReturnValues {
1671
1688
  placeentity: Types.task_results;
1672
1689
  recharge: Types.task_results;
1673
1690
  resolve: Types.resolve_results;
1691
+ retarget: Types.task_results;
1674
1692
  stowcargo: Types.task_results;
1675
1693
  stowentity: Types.task_results;
1676
1694
  transfer: Types.task_results;
@@ -2087,6 +2105,7 @@ interface MassCapability {
2087
2105
  hullmass: UInt32;
2088
2106
  }
2089
2107
  interface ScheduleCapability {
2108
+ lanes?: Types.lane[];
2090
2109
  schedule?: Types.schedule;
2091
2110
  }
2092
2111
  interface EntityCapabilities {
@@ -2179,124 +2198,186 @@ declare class Location {
2179
2198
  }
2180
2199
  declare function toLocation(coords: CoordinatesType | Location): Location;
2181
2200
 
2182
- type Schedule = Types.schedule;
2183
- type Task$1 = Types.task;
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;
2184
2214
  interface ScheduleData {
2185
- schedule?: Schedule;
2186
- }
2187
- interface Scheduleable extends ScheduleData {
2188
- hasSchedule: boolean;
2189
- isIdle: boolean;
2190
- tasks: Task$1[];
2191
- scheduleDuration(): number;
2192
- scheduleElapsed(now: Date): number;
2193
- scheduleRemaining(now: Date): number;
2194
- scheduleComplete(now: Date): boolean;
2195
- currentTaskIndex(now: Date): number;
2196
- currentTask(now: Date): Task$1 | undefined;
2197
- currentTaskType(now: Date): TaskType | undefined;
2198
- getTaskStartTime(index: number): number;
2199
- getTaskElapsed(index: number, now: Date): number;
2200
- getTaskRemaining(index: number, now: Date): number;
2201
- isTaskComplete(index: number, now: Date): boolean;
2202
- isTaskInProgress(index: number, now: Date): boolean;
2203
- currentTaskProgress(now: Date): number;
2204
- scheduleProgress(now: Date): number;
2215
+ lanes?: Lane$1[];
2216
+ }
2217
+ interface LaneView {
2218
+ laneKey: number;
2219
+ schedule: Schedule$1;
2205
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;
2206
2225
  declare function hasSchedule$1(entity: ScheduleData): boolean;
2207
2226
  declare function isIdle(entity: ScheduleData): boolean;
2208
- declare function getTasks(entity: ScheduleData): Task$1[];
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[];
2209
2230
  declare function scheduleDuration(entity: ScheduleData): number;
2210
2231
  declare function scheduleElapsed(entity: ScheduleData, now: Date): number;
2211
2232
  declare function scheduleRemaining(entity: ScheduleData, now: Date): number;
2212
2233
  declare function scheduleComplete(entity: ScheduleData, now: Date): boolean;
2213
- declare function currentTaskIndex(entity: ScheduleData, now: Date): number;
2214
- declare function currentTask(entity: ScheduleData, now: Date): Task$1 | undefined;
2215
- declare function currentTaskType(entity: ScheduleData, now: Date): TaskType | undefined;
2216
- declare function getTaskStartTime(entity: ScheduleData, index: number): number;
2217
- declare function getTaskElapsed(entity: ScheduleData, index: number, now: Date): number;
2218
- declare function getTaskRemaining(entity: ScheduleData, index: number, now: Date): number;
2219
- declare function isTaskComplete(entity: ScheduleData, index: number, now: Date): boolean;
2220
- declare function isTaskInProgress(entity: ScheduleData, index: number, now: Date): boolean;
2221
- declare function currentTaskProgress(entity: ScheduleData, now: Date): number;
2222
- declare function currentTaskProgressFloat(entity: ScheduleData, now: Date): number;
2223
- declare function scheduleProgress(entity: ScheduleData, now: Date): number;
2224
- declare function isTaskType(entity: ScheduleData, taskType: TaskType, now: Date): boolean;
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;
2225
2262
  declare function isInFlight(entity: ScheduleData, now: Date): boolean;
2226
2263
  declare function isRecharging(entity: ScheduleData, now: Date): boolean;
2227
2264
  declare function isLoading(entity: ScheduleData, now: Date): boolean;
2228
2265
  declare function isUnloading(entity: ScheduleData, now: Date): boolean;
2229
2266
  declare function isGathering(entity: ScheduleData, now: Date): boolean;
2230
2267
 
2268
+ declare const schedule_LANE_MOBILITY: typeof LANE_MOBILITY;
2269
+ declare const schedule_LANE_BARRIER: typeof LANE_BARRIER;
2231
2270
  type schedule_ScheduleData = ScheduleData;
2232
- type schedule_Scheduleable = Scheduleable;
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;
2233
2275
  declare const schedule_isIdle: typeof isIdle;
2276
+ declare const schedule_isEntityIdle: typeof isEntityIdle;
2277
+ declare const schedule_entityIdleAt: typeof entityIdleAt;
2234
2278
  declare const schedule_getTasks: typeof getTasks;
2235
2279
  declare const schedule_scheduleDuration: typeof scheduleDuration;
2236
2280
  declare const schedule_scheduleElapsed: typeof scheduleElapsed;
2237
2281
  declare const schedule_scheduleRemaining: typeof scheduleRemaining;
2238
2282
  declare const schedule_scheduleComplete: typeof scheduleComplete;
2239
- declare const schedule_currentTaskIndex: typeof currentTaskIndex;
2240
- declare const schedule_currentTask: typeof currentTask;
2241
- declare const schedule_currentTaskType: typeof currentTaskType;
2242
- declare const schedule_getTaskStartTime: typeof getTaskStartTime;
2243
- declare const schedule_getTaskElapsed: typeof getTaskElapsed;
2244
- declare const schedule_getTaskRemaining: typeof getTaskRemaining;
2245
- declare const schedule_isTaskComplete: typeof isTaskComplete;
2246
- declare const schedule_isTaskInProgress: typeof isTaskInProgress;
2247
- declare const schedule_currentTaskProgress: typeof currentTaskProgress;
2248
- declare const schedule_currentTaskProgressFloat: typeof currentTaskProgressFloat;
2249
- declare const schedule_scheduleProgress: typeof scheduleProgress;
2250
- declare const schedule_isTaskType: typeof isTaskType;
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;
2251
2300
  declare const schedule_isInFlight: typeof isInFlight;
2252
2301
  declare const schedule_isRecharging: typeof isRecharging;
2253
2302
  declare const schedule_isLoading: typeof isLoading;
2254
2303
  declare const schedule_isUnloading: typeof isUnloading;
2255
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;
2256
2311
  declare namespace schedule {
2257
2312
  export {
2313
+ schedule_LANE_MOBILITY as LANE_MOBILITY,
2314
+ schedule_LANE_BARRIER as LANE_BARRIER,
2258
2315
  schedule_ScheduleData as ScheduleData,
2259
- schedule_Scheduleable as Scheduleable,
2316
+ schedule_LaneView as LaneView,
2317
+ schedule_getLanes as getLanes,
2318
+ schedule_getLane as getLane,
2319
+ schedule_mobilityLane as mobilityLane,
2260
2320
  hasSchedule$1 as hasSchedule,
2261
2321
  schedule_isIdle as isIdle,
2322
+ schedule_isEntityIdle as isEntityIdle,
2323
+ schedule_entityIdleAt as entityIdleAt,
2262
2324
  schedule_getTasks as getTasks,
2263
2325
  schedule_scheduleDuration as scheduleDuration,
2264
2326
  schedule_scheduleElapsed as scheduleElapsed,
2265
2327
  schedule_scheduleRemaining as scheduleRemaining,
2266
2328
  schedule_scheduleComplete as scheduleComplete,
2267
- schedule_currentTaskIndex as currentTaskIndex,
2268
- schedule_currentTask as currentTask,
2269
- schedule_currentTaskType as currentTaskType,
2270
- schedule_getTaskStartTime as getTaskStartTime,
2271
- schedule_getTaskElapsed as getTaskElapsed,
2272
- schedule_getTaskRemaining as getTaskRemaining,
2273
- schedule_isTaskComplete as isTaskComplete,
2274
- schedule_isTaskInProgress as isTaskInProgress,
2275
- schedule_currentTaskProgress as currentTaskProgress,
2276
- schedule_currentTaskProgressFloat as currentTaskProgressFloat,
2277
- schedule_scheduleProgress as scheduleProgress,
2278
- schedule_isTaskType as isTaskType,
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,
2279
2346
  schedule_isInFlight as isInFlight,
2280
2347
  schedule_isRecharging as isRecharging,
2281
2348
  schedule_isLoading as isLoading,
2282
2349
  schedule_isUnloading as isUnloading,
2283
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,
2284
2357
  };
2285
2358
  }
2286
2359
 
2287
- type Task = Types.task;
2360
+ type Task$1 = Types.task;
2288
2361
  declare class ScheduleAccessor {
2289
2362
  private entity;
2290
- constructor(entity: ScheduleData);
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[];
2291
2370
  get hasSchedule(): boolean;
2292
2371
  get isIdle(): boolean;
2293
- get tasks(): Task[];
2372
+ get tasks(): Task$1[];
2373
+ activeTasks(now: Date): Task$1[];
2294
2374
  duration(): number;
2295
2375
  elapsed(now: Date): number;
2296
2376
  remaining(now: Date): number;
2377
+ startsIn(now: Date): number;
2297
2378
  complete(now: Date): boolean;
2298
2379
  currentTaskIndex(now: Date): number;
2299
- currentTask(now: Date): Task | undefined;
2380
+ currentTask(now: Date): Task$1 | undefined;
2300
2381
  currentTaskType(now: Date): TaskType | undefined;
2301
2382
  taskStartTime(index: number): number;
2302
2383
  taskElapsed(index: number, now: Date): number;
@@ -2307,7 +2388,7 @@ declare class ScheduleAccessor {
2307
2388
  currentTaskProgressFloat(now: Date): number;
2308
2389
  progress(now: Date): number;
2309
2390
  }
2310
- declare function createScheduleAccessor(entity: ScheduleData): ScheduleAccessor;
2391
+ declare function createScheduleAccessor(entity: ScheduleData, laneKey?: number): ScheduleAccessor;
2311
2392
 
2312
2393
  declare class Entity$1 extends Types.entity_info {
2313
2394
  private _sched?;
@@ -2606,7 +2687,8 @@ declare class ActionsManager extends BaseManager {
2606
2687
  travel(shipId: UInt64Type, destination: CoordinatesType, recharge?: boolean): Action;
2607
2688
  grouptravel(entities: EntityRefInput[], destination: CoordinatesType, recharge?: boolean): Action;
2608
2689
  resolve(entityId: UInt64Type, count?: UInt64Type): Action;
2609
- cancel(entityId: UInt64Type, count: UInt64Type): Action;
2690
+ cancel(entityId: UInt64Type, laneKey: number, count: UInt64Type): Action;
2691
+ retarget(sourceId: UInt64Type, taskIndex: UInt64Type, newDestId: UInt64Type): Action;
2610
2692
  recharge(entityId: UInt64Type): Action;
2611
2693
  refrshentity(entityId: UInt64Type): Action;
2612
2694
  transfer(sourceId: UInt64Type, destId: UInt64Type, items: ActionParams.Type.cargo_item[]): Action;
@@ -2921,6 +3003,7 @@ interface EntityStateInput {
2921
3003
  energy?: number;
2922
3004
  modules?: PackedModuleInput[];
2923
3005
  schedule?: Types.schedule;
3006
+ lanes?: Types.lane[];
2924
3007
  cargo?: Types.cargo_item[];
2925
3008
  }
2926
3009
  declare function makeEntity(packedItemId: number, state: EntityStateInput): Entity$1;
@@ -3156,9 +3239,8 @@ interface TransferEntity {
3156
3239
  } | number;
3157
3240
  };
3158
3241
  }
3159
- interface HasScheduleAndLocation {
3242
+ interface HasScheduleAndLocation extends ScheduleData {
3160
3243
  coordinates: ActionParams.Type.coordinates;
3161
- schedule?: Types.schedule;
3162
3244
  }
3163
3245
  declare function getFlightOrigin(entity: HasScheduleAndLocation, flightTaskIndex: number): ActionParams.Type.coordinates;
3164
3246
  declare function getDestinationLocation(entity: HasScheduleAndLocation): ActionParams.Type.coordinates | undefined;
@@ -3166,6 +3248,14 @@ declare function getDestinationLocation(entity: HasScheduleAndLocation): ActionP
3166
3248
  declare function getPositionAt(entity: HasScheduleAndLocation, taskIndex: number, taskProgress: number): ActionParams.Type.coordinates;
3167
3249
  declare function calc_transfer_duration(source: TransferEntity, dest: TransferEntity, cargoMass: number): number;
3168
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
+
3169
3259
  interface CargoData {
3170
3260
  cargo: EntityInventory[];
3171
3261
  }
@@ -3251,14 +3341,9 @@ interface ProjectionOptions {
3251
3341
  upToTaskIndex?: number;
3252
3342
  }
3253
3343
  declare function projectEntity(entity: Projectable, options?: ProjectionOptions): ProjectedEntity;
3254
- interface ProjectableSnapshot extends Projectable {
3255
- current_task?: Types.task;
3256
- pending_tasks?: Types.task[];
3257
- }
3258
- declare function projectFromCurrentState(snapshot: ProjectableSnapshot): ProjectedEntity;
3344
+ declare function projectRemainingAt(entity: Projectable, _now: Date): ProjectedEntity;
3259
3345
  declare function validateSchedule(entity: Projectable): void;
3260
3346
  declare function projectEntityAt(entity: Projectable, now: Date): ProjectedEntity;
3261
- declare function projectFromCurrentStateAt(snapshot: ProjectableSnapshot, now: Date): ProjectedEntity;
3262
3347
 
3263
3348
  type TaskCargoDirection = 'in' | 'out';
3264
3349
  interface TaskCargoChange {
@@ -3270,6 +3355,28 @@ interface TaskCargoChange {
3270
3355
  }
3271
3356
  declare function taskCargoChanges(task: Types.task): TaskCargoChange[];
3272
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
+
3273
3380
  declare function energyAtTime(entity: Projectable, now: Date): number;
3274
3381
 
3275
3382
  interface Entity {
@@ -3913,6 +4020,7 @@ type Nexus = Entity$1;
3913
4020
  type movement_stats = Types.movement_stats;
3914
4021
  type energy_stats = Types.energy_stats;
3915
4022
  type loader_stats = Types.loader_stats;
4023
+ type lane = Types.lane;
3916
4024
  type task = Types.task;
3917
4025
  type cargo_item = Types.cargo_item;
3918
4026
  type entity_row = Types.entity_row;
@@ -3920,4 +4028,4 @@ type gatherer_stats = Types.gatherer_stats;
3920
4028
  type location_static = Types.location_static;
3921
4029
  type location_derived = Types.location_derived;
3922
4030
 
3923
- 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, 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 };