@shipload/sdk 1.0.0-next.4 → 1.0.0-next.40
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 +2473 -973
- package/lib/shipload.js +11529 -5211
- package/lib/shipload.js.map +1 -1
- package/lib/shipload.m.js +11338 -5162
- package/lib/shipload.m.js.map +1 -1
- package/lib/testing.d.ts +970 -0
- package/lib/testing.js +4013 -0
- package/lib/testing.js.map +1 -0
- package/lib/testing.m.js +4007 -0
- package/lib/testing.m.js.map +1 -0
- package/package.json +15 -2
- package/src/capabilities/craftable.ts +51 -0
- package/src/capabilities/crafting.test.ts +7 -0
- package/src/capabilities/crafting.ts +5 -6
- package/src/capabilities/gathering.test.ts +16 -0
- package/src/capabilities/gathering.ts +35 -18
- package/src/capabilities/index.ts +0 -1
- package/src/capabilities/modules.ts +9 -0
- package/src/capabilities/storage.ts +16 -1
- package/src/contracts/platform.ts +231 -3
- package/src/contracts/server.ts +1021 -481
- package/src/coordinates/address.ts +88 -0
- package/src/coordinates/constants.test.ts +15 -0
- package/src/coordinates/constants.ts +23 -0
- package/src/coordinates/index.ts +15 -0
- package/src/coordinates/memo.test.ts +47 -0
- package/src/coordinates/memo.ts +20 -0
- package/src/coordinates/permutation.ts +77 -0
- package/src/coordinates/regions.ts +48 -0
- package/src/coordinates/sectors.ts +115 -0
- package/src/data/capabilities.ts +12 -5
- package/src/data/capability-formulas.ts +14 -7
- package/src/data/catalog.ts +0 -5
- package/src/data/colors.ts +14 -47
- package/src/data/entities.json +76 -10
- package/src/data/item-ids.ts +18 -12
- package/src/data/items.json +321 -38
- package/src/data/kind-registry.json +109 -0
- package/src/data/kind-registry.ts +165 -0
- package/src/data/metadata.ts +119 -33
- package/src/data/recipes-runtime.ts +3 -23
- package/src/data/recipes.json +238 -117
- package/src/derivation/build-methods.ts +45 -0
- package/src/derivation/capabilities.test.ts +151 -0
- package/src/derivation/capabilities.ts +512 -0
- package/src/derivation/capability-mappings.ts +9 -12
- package/src/derivation/crafting.ts +23 -24
- package/src/derivation/index.ts +25 -2
- package/src/derivation/recipe-usage.test.ts +78 -0
- package/src/derivation/recipe-usage.ts +141 -0
- package/src/derivation/reserve-regen.ts +34 -0
- package/src/derivation/resources.ts +125 -38
- package/src/derivation/rollups.test.ts +55 -0
- package/src/derivation/rollups.ts +56 -0
- package/src/derivation/stars.test.ts +51 -0
- package/src/derivation/stars.ts +15 -0
- package/src/derivation/stats.ts +6 -6
- package/src/derivation/stratum.ts +17 -20
- package/src/derivation/tiers.ts +40 -7
- package/src/derivation/wormhole.ts +136 -0
- package/src/entities/entity.ts +98 -0
- package/src/entities/gamestate.ts +3 -28
- package/src/entities/makers.ts +124 -134
- package/src/entities/slot-multiplier.ts +43 -0
- package/src/errors.ts +12 -16
- package/src/format.ts +26 -4
- package/src/index-module.ts +267 -47
- package/src/managers/actions.ts +528 -95
- package/src/managers/base.ts +6 -2
- package/src/managers/construction-types.ts +80 -0
- package/src/managers/construction.ts +412 -0
- package/src/managers/context.ts +20 -1
- package/src/managers/coordinates.ts +14 -0
- package/src/managers/entities.ts +18 -66
- package/src/managers/epochs.ts +40 -0
- package/src/managers/index.ts +17 -1
- package/src/managers/locations.ts +25 -29
- package/src/managers/nft.test.ts +14 -0
- package/src/managers/nft.ts +70 -0
- package/src/managers/plot.ts +122 -0
- package/src/nft/atomicassets.abi.json +1342 -0
- package/src/nft/atomicassets.ts +237 -0
- package/src/nft/atomicdata.ts +130 -0
- package/src/nft/buildImmutableData.ts +338 -0
- package/src/nft/description.ts +98 -24
- package/src/nft/index.ts +3 -0
- package/src/planner/index.ts +127 -0
- package/src/planner/planner.test.ts +319 -0
- package/src/resolution/describe-module.ts +18 -13
- package/src/resolution/display-name.ts +38 -10
- package/src/resolution/resolve-item.test.ts +37 -0
- package/src/resolution/resolve-item.ts +55 -24
- package/src/scheduling/accessor.ts +68 -22
- package/src/scheduling/availability.ts +108 -0
- package/src/scheduling/cancel.test.ts +348 -0
- package/src/scheduling/cancel.ts +209 -0
- package/src/scheduling/energy.ts +47 -0
- package/src/scheduling/idle-resolve.ts +45 -0
- package/src/scheduling/lane-core.ts +128 -0
- package/src/scheduling/lanes.test.ts +249 -0
- package/src/scheduling/lanes.ts +198 -0
- package/src/scheduling/projection.ts +209 -105
- package/src/scheduling/schedule.ts +241 -104
- package/src/scheduling/task-cargo.ts +46 -0
- package/src/shipload.ts +21 -1
- package/src/subscriptions/manager.ts +229 -142
- package/src/subscriptions/mappers.ts +5 -8
- package/src/subscriptions/types.ts +11 -3
- package/src/testing/catalog-hash.ts +19 -0
- package/src/testing/index.ts +2 -0
- package/src/testing/projection-parity.ts +167 -0
- package/src/travel/reach.ts +23 -0
- package/src/travel/route-planner.ts +196 -0
- package/src/travel/travel.ts +200 -112
- package/src/types/capabilities.ts +29 -6
- package/src/types/entity.ts +3 -3
- package/src/types/index.ts +0 -1
- package/src/types.ts +28 -13
- package/src/utils/cargo.ts +27 -0
- package/src/utils/display-name.ts +70 -0
- package/src/utils/system.ts +36 -24
- package/src/capabilities/loading.ts +0 -8
- package/src/entities/container.ts +0 -108
- package/src/entities/ship-deploy.ts +0 -259
- package/src/entities/ship.ts +0 -204
- package/src/entities/warehouse.ts +0 -119
- package/src/types/entity-traits.ts +0 -69
package/src/index-module.ts
CHANGED
|
@@ -10,30 +10,30 @@ export {Types as ServerTypes} from './contracts/server'
|
|
|
10
10
|
export {Types as PlatformTypes} from './contracts/platform'
|
|
11
11
|
|
|
12
12
|
import type {ServerContract} from './contracts'
|
|
13
|
+
import type {Entity as EntityType} from './entities/entity'
|
|
13
14
|
|
|
14
15
|
export {Shipload} from './shipload'
|
|
15
|
-
export {
|
|
16
|
-
export type
|
|
17
|
-
export
|
|
18
|
-
export type
|
|
19
|
-
export
|
|
20
|
-
export type
|
|
21
|
-
export
|
|
16
|
+
export {Entity} from './entities/entity'
|
|
17
|
+
export type Ship = EntityType
|
|
18
|
+
export type Warehouse = EntityType
|
|
19
|
+
export type Container = EntityType
|
|
20
|
+
export type Extractor = EntityType
|
|
21
|
+
export type Factory = EntityType
|
|
22
|
+
export type Nexus = EntityType
|
|
23
|
+
export {makeEntity} from './entities/makers'
|
|
24
|
+
export type {EntityStateInput, PackedModuleInput} from './entities/makers'
|
|
25
|
+
export type {InstalledModule} from './entities/slot-multiplier'
|
|
22
26
|
|
|
23
27
|
export type movement_stats = ServerContract.Types.movement_stats
|
|
24
28
|
export type energy_stats = ServerContract.Types.energy_stats
|
|
25
|
-
export type loader_stats = ServerContract.Types.loader_stats
|
|
26
29
|
export type schedule = ServerContract.Types.schedule
|
|
30
|
+
export type lane = ServerContract.Types.lane
|
|
27
31
|
export type task = ServerContract.Types.task
|
|
28
32
|
export type cargo_item = ServerContract.Types.cargo_item
|
|
29
|
-
export type
|
|
30
|
-
export type container_row = ServerContract.Types.container_row
|
|
31
|
-
export type gatherer_stats = ServerContract.Types.gatherer_stats
|
|
33
|
+
export type entity_row = ServerContract.Types.entity_row
|
|
32
34
|
|
|
33
35
|
export type location_static = ServerContract.Types.location_static
|
|
34
|
-
export type location_epoch = ServerContract.Types.location_epoch
|
|
35
36
|
export type location_derived = ServerContract.Types.location_derived
|
|
36
|
-
export type location_row = ServerContract.Types.location_row
|
|
37
37
|
export {Player} from './entities/player'
|
|
38
38
|
export type {PlayerStateInput} from './entities/player'
|
|
39
39
|
export {EntityInventory} from './entities/entity-inventory'
|
|
@@ -46,9 +46,32 @@ export {
|
|
|
46
46
|
LocationsManager,
|
|
47
47
|
EpochsManager,
|
|
48
48
|
ActionsManager,
|
|
49
|
+
NftManager,
|
|
50
|
+
ConstructionManager,
|
|
49
51
|
} from './managers'
|
|
50
|
-
export type {
|
|
51
|
-
|
|
52
|
+
export type {
|
|
53
|
+
LocationStratum,
|
|
54
|
+
NftConfigForItem,
|
|
55
|
+
BuildableTarget,
|
|
56
|
+
BuildState,
|
|
57
|
+
SourceEntityRef,
|
|
58
|
+
SourceCargoStack,
|
|
59
|
+
FinalizerEntityRef,
|
|
60
|
+
FinalizerCapability,
|
|
61
|
+
InboundTransfer,
|
|
62
|
+
ScheduledBuild,
|
|
63
|
+
Reservation,
|
|
64
|
+
} from './managers'
|
|
65
|
+
export type {
|
|
66
|
+
EntityRefInput,
|
|
67
|
+
LaunchNumericInput,
|
|
68
|
+
LaunchQuote,
|
|
69
|
+
LaunchQuoteCatcher,
|
|
70
|
+
LaunchQuoteLauncher,
|
|
71
|
+
LaunchStatsInput,
|
|
72
|
+
} from './managers/actions'
|
|
73
|
+
export type {WrapDeposit} from './managers/nft'
|
|
74
|
+
export {resolveLockedAmount} from './managers/nft'
|
|
52
75
|
|
|
53
76
|
export {
|
|
54
77
|
getItem,
|
|
@@ -63,18 +86,18 @@ export {
|
|
|
63
86
|
categoryLabel,
|
|
64
87
|
categoryFromIndex,
|
|
65
88
|
categoryLabelFromIndex,
|
|
66
|
-
tierLabel,
|
|
67
89
|
} from './data/catalog'
|
|
68
90
|
export {getCurrentEpoch, getEpochInfo} from './scheduling/epoch'
|
|
69
91
|
export type {EpochInfo} from './scheduling/epoch'
|
|
70
92
|
export {
|
|
71
93
|
getSystemName,
|
|
72
94
|
hasSystem,
|
|
95
|
+
getLocationKind,
|
|
73
96
|
getLocationType,
|
|
74
97
|
getLocationTypeName,
|
|
75
98
|
isGatherableLocation,
|
|
99
|
+
isLocationBuildable,
|
|
76
100
|
deriveLocationStatic,
|
|
77
|
-
deriveLocationEpoch,
|
|
78
101
|
deriveLocation,
|
|
79
102
|
} from './utils/system'
|
|
80
103
|
|
|
@@ -86,6 +109,7 @@ export {
|
|
|
86
109
|
getEligibleResources,
|
|
87
110
|
getResourceWeight,
|
|
88
111
|
getLocationCandidates,
|
|
112
|
+
getLocationProfile,
|
|
89
113
|
getDepthThreshold,
|
|
90
114
|
getResourceTier,
|
|
91
115
|
DEPTH_THRESHOLD_T1,
|
|
@@ -95,6 +119,9 @@ export {
|
|
|
95
119
|
DEPTH_THRESHOLD_T5,
|
|
96
120
|
LOCATION_MIN_DEPTH,
|
|
97
121
|
LOCATION_MAX_DEPTH,
|
|
122
|
+
yieldThresholdAt,
|
|
123
|
+
YIELD_FRACTION_SHALLOW,
|
|
124
|
+
YIELD_FRACTION_DEEP,
|
|
98
125
|
PLANET_SUBTYPE_GAS_GIANT,
|
|
99
126
|
PLANET_SUBTYPE_ROCKY,
|
|
100
127
|
PLANET_SUBTYPE_TERRESTRIAL,
|
|
@@ -105,42 +132,71 @@ export {
|
|
|
105
132
|
|
|
106
133
|
export type {StratumInfo, ResourceStats, DerivedStratum} from './derivation'
|
|
107
134
|
|
|
108
|
-
export {
|
|
135
|
+
export {
|
|
136
|
+
RESERVE_TIERS,
|
|
137
|
+
TIER_ROLL_MAX,
|
|
138
|
+
tierOfReserve,
|
|
139
|
+
rollTier,
|
|
140
|
+
rollWithinTier,
|
|
141
|
+
RESOURCE_TIER_MULT_TENTHS,
|
|
142
|
+
applyResourceTierMultiplier,
|
|
143
|
+
} from './derivation'
|
|
109
144
|
export type {ReserveTier, TierRange} from './derivation'
|
|
110
145
|
|
|
146
|
+
export {getEffectiveReserve} from './derivation'
|
|
147
|
+
export type {EffectiveReserveInput} from './derivation'
|
|
148
|
+
|
|
111
149
|
export {getStatDefinitions, getStatName, resolveStats} from './derivation'
|
|
112
150
|
export type {StatDefinition, NamedStats} from './derivation'
|
|
113
151
|
|
|
152
|
+
export {
|
|
153
|
+
STAR_STEP,
|
|
154
|
+
MAX_STARS_PER_STAT,
|
|
155
|
+
MAX_STAR_RATING,
|
|
156
|
+
starsForStat,
|
|
157
|
+
starRating,
|
|
158
|
+
statMagnitude,
|
|
159
|
+
} from './derivation'
|
|
160
|
+
|
|
114
161
|
export {hash, hash512} from './utils/hash'
|
|
162
|
+
export {validateDisplayName, normalizeDisplayName} from './utils/display-name'
|
|
163
|
+
export type {DisplayNameResult, ValidateDisplayNameOptions} from './utils/display-name'
|
|
115
164
|
|
|
116
165
|
export {
|
|
117
166
|
distanceBetweenCoordinates,
|
|
118
167
|
distanceBetweenPoints,
|
|
119
168
|
findNearbyPlanets,
|
|
120
|
-
lerp,
|
|
121
|
-
rotation,
|
|
122
|
-
calc_ship_mass,
|
|
123
169
|
calc_acceleration,
|
|
170
|
+
calc_energyusage,
|
|
124
171
|
calc_flighttime,
|
|
125
|
-
calc_ship_flighttime,
|
|
126
|
-
calc_ship_acceleration,
|
|
127
|
-
calc_rechargetime,
|
|
128
|
-
calc_ship_rechargetime,
|
|
129
|
-
calc_loader_flighttime,
|
|
130
172
|
calc_loader_acceleration,
|
|
131
|
-
|
|
173
|
+
calc_loader_flighttime,
|
|
174
|
+
calc_onesided_duration,
|
|
132
175
|
calc_orbital_altitude,
|
|
176
|
+
calc_rechargetime,
|
|
177
|
+
calc_ship_acceleration,
|
|
178
|
+
calc_ship_flighttime,
|
|
179
|
+
calc_ship_mass,
|
|
180
|
+
calc_ship_rechargetime,
|
|
133
181
|
calc_transfer_duration,
|
|
134
|
-
|
|
182
|
+
calc_transit_duration,
|
|
183
|
+
calculateFlightTime,
|
|
135
184
|
calculateLoadTimeBreakdown,
|
|
136
185
|
calculateRefuelingTime,
|
|
137
|
-
|
|
138
|
-
|
|
186
|
+
calculateTransferTime,
|
|
187
|
+
easeFlightProgress,
|
|
139
188
|
estimateDealTravelTime,
|
|
140
|
-
|
|
141
|
-
|
|
189
|
+
estimateTravelTime,
|
|
190
|
+
flightSpeedFactor,
|
|
191
|
+
type FloatPosition,
|
|
142
192
|
getDestinationLocation,
|
|
193
|
+
getFlightOrigin,
|
|
194
|
+
getInterpolatedPosition,
|
|
143
195
|
getPositionAt,
|
|
196
|
+
hasEnergyForDistance,
|
|
197
|
+
interpolateFlightPosition,
|
|
198
|
+
lerp,
|
|
199
|
+
rotation,
|
|
144
200
|
} from './travel/travel'
|
|
145
201
|
export type {
|
|
146
202
|
LoadTimeBreakdown,
|
|
@@ -150,8 +206,44 @@ export type {
|
|
|
150
206
|
HasScheduleAndLocation,
|
|
151
207
|
} from './travel/travel'
|
|
152
208
|
|
|
209
|
+
export {planRoute, sdkSystemGraph, MAX_LEGS} from './travel/route-planner'
|
|
210
|
+
export type {
|
|
211
|
+
Coord,
|
|
212
|
+
Neighbor,
|
|
213
|
+
SystemGraph,
|
|
214
|
+
RoutePlan,
|
|
215
|
+
RouteFailure,
|
|
216
|
+
RouteResult,
|
|
217
|
+
RouteFailureReason,
|
|
218
|
+
PlanRouteParams,
|
|
219
|
+
} from './travel/route-planner'
|
|
220
|
+
|
|
221
|
+
export {computePerLegReach, computeGroupPerLegReach} from './travel/reach'
|
|
222
|
+
export type {ReachStats} from './travel/reach'
|
|
223
|
+
|
|
153
224
|
export * as schedule from './scheduling/schedule'
|
|
154
|
-
export
|
|
225
|
+
export {LANE_MOBILITY, LANE_BARRIER} from './scheduling/schedule'
|
|
226
|
+
export type {
|
|
227
|
+
ScheduleData,
|
|
228
|
+
LaneView,
|
|
229
|
+
OrderedTask,
|
|
230
|
+
ResolvedEvent,
|
|
231
|
+
} from './scheduling/schedule'
|
|
232
|
+
export {
|
|
233
|
+
candidateLaneCompletesAt,
|
|
234
|
+
laneKeyForModule,
|
|
235
|
+
rawScheduleEnd,
|
|
236
|
+
resolveLaneGatherer,
|
|
237
|
+
resolveLaneCrafter,
|
|
238
|
+
resolveLaneLoader,
|
|
239
|
+
selectGatherLane,
|
|
240
|
+
workerLaneKey,
|
|
241
|
+
} from './scheduling/lanes'
|
|
242
|
+
export type {
|
|
243
|
+
ResolvedGathererLane,
|
|
244
|
+
ResolvedCrafterLane,
|
|
245
|
+
ResolvedLoaderLane,
|
|
246
|
+
} from './scheduling/lanes'
|
|
155
247
|
export {ScheduleAccessor, createScheduleAccessor} from './scheduling/accessor'
|
|
156
248
|
export {InventoryAccessor, createInventoryAccessor} from './entities/inventory-accessor'
|
|
157
249
|
export type {HasCargo} from './entities/inventory-accessor'
|
|
@@ -159,36 +251,85 @@ export type {HasCargo} from './entities/inventory-accessor'
|
|
|
159
251
|
export * as cargoUtils from './entities/cargo-utils'
|
|
160
252
|
export type {CargoData} from './entities/cargo-utils'
|
|
161
253
|
|
|
254
|
+
export {cargoRef, cargoItem} from './utils/cargo'
|
|
255
|
+
|
|
162
256
|
export {
|
|
163
257
|
createProjectedEntity,
|
|
164
258
|
projectEntity,
|
|
165
259
|
projectEntityAt,
|
|
166
|
-
|
|
167
|
-
projectFromCurrentStateAt,
|
|
260
|
+
projectRemainingAt,
|
|
168
261
|
validateSchedule,
|
|
169
262
|
} from './scheduling/projection'
|
|
170
263
|
export type {
|
|
171
264
|
Projectable,
|
|
172
|
-
ProjectableSnapshot,
|
|
173
265
|
ProjectedEntity,
|
|
174
266
|
ProjectionOptions,
|
|
175
267
|
} from './scheduling/projection'
|
|
176
268
|
|
|
269
|
+
export {taskCargoChanges} from './scheduling/task-cargo'
|
|
270
|
+
export type {TaskCargoChange, TaskCargoDirection} from './scheduling/task-cargo'
|
|
271
|
+
|
|
272
|
+
export {composeIdleResolve} from './scheduling/idle-resolve'
|
|
273
|
+
export type {CounterpartLookup, IdleResolveTarget} from './scheduling/idle-resolve'
|
|
274
|
+
|
|
275
|
+
export {cancelEligibility, CancelBlockReason} from './scheduling/cancel'
|
|
276
|
+
export type {
|
|
277
|
+
CancelPlan,
|
|
278
|
+
CancelEffects,
|
|
279
|
+
CancelRefund,
|
|
280
|
+
CancelReleasedHold,
|
|
281
|
+
CancelEligibilityInput,
|
|
282
|
+
} from './scheduling/cancel'
|
|
283
|
+
|
|
284
|
+
export {
|
|
285
|
+
projectedCargoAvailableAt,
|
|
286
|
+
availableForItem,
|
|
287
|
+
cargoReadyAt,
|
|
288
|
+
taskCargoEffect,
|
|
289
|
+
} from './scheduling/availability'
|
|
290
|
+
|
|
291
|
+
export {maxCraftable} from './capabilities/craftable'
|
|
292
|
+
|
|
293
|
+
export {energyAtTime} from './scheduling/energy'
|
|
294
|
+
|
|
177
295
|
export * from './types/capabilities'
|
|
178
296
|
export * from './types/entity'
|
|
297
|
+
export {
|
|
298
|
+
EntityClass,
|
|
299
|
+
ENTITY_SHIP,
|
|
300
|
+
ENTITY_WAREHOUSE,
|
|
301
|
+
ENTITY_EXTRACTOR,
|
|
302
|
+
ENTITY_FACTORY,
|
|
303
|
+
ENTITY_CONTAINER,
|
|
304
|
+
ENTITY_NEXUS,
|
|
305
|
+
getEntityClass,
|
|
306
|
+
getPackedEntityType,
|
|
307
|
+
getKindMeta,
|
|
308
|
+
getTemplateMeta,
|
|
309
|
+
kindCan,
|
|
310
|
+
ALL_ENTITY_TYPES,
|
|
311
|
+
CAP_WRAP,
|
|
312
|
+
CAP_UNDEPLOY,
|
|
313
|
+
CAP_DEMOLISH,
|
|
314
|
+
CAP_MODULES,
|
|
315
|
+
isShip,
|
|
316
|
+
isWarehouse,
|
|
317
|
+
isExtractor,
|
|
318
|
+
isFactory,
|
|
319
|
+
isContainer,
|
|
320
|
+
isNexus,
|
|
321
|
+
isPlot,
|
|
322
|
+
} from './data/kind-registry'
|
|
323
|
+
export type {EntityTypeName, KindMeta, TemplateMeta} from './data/kind-registry'
|
|
179
324
|
export * from './capabilities'
|
|
180
325
|
|
|
181
326
|
export {
|
|
182
327
|
categoryColors,
|
|
183
328
|
tierColors,
|
|
184
|
-
tierLabels,
|
|
185
|
-
categoryIcons,
|
|
186
|
-
categoryIconShapes,
|
|
187
329
|
componentIcon,
|
|
188
330
|
moduleIcon,
|
|
189
331
|
itemAbbreviations,
|
|
190
332
|
} from './data/colors'
|
|
191
|
-
export type {CategoryIconShape} from './data/colors'
|
|
192
333
|
|
|
193
334
|
export {itemTier, itemOffset, itemCategory, isRelatedItem, isCraftedItem} from './data/tiers'
|
|
194
335
|
export type {CraftedItemCategory} from './data/tiers'
|
|
@@ -215,6 +356,13 @@ export {
|
|
|
215
356
|
} from './derivation/capability-mappings'
|
|
216
357
|
export {SLOT_FORMULAS} from './data/capability-formulas'
|
|
217
358
|
export type {SlotConsumer, SlotConsumerKind} from './data/capability-formulas'
|
|
359
|
+
export {
|
|
360
|
+
getAllRecipes,
|
|
361
|
+
getRecipeConsumers,
|
|
362
|
+
getComponentDemand,
|
|
363
|
+
getResourceDemand,
|
|
364
|
+
} from './derivation/recipe-usage'
|
|
365
|
+
export type {StatFlow, RecipeConsumer, DemandRow, ResourceDemand} from './derivation/recipe-usage'
|
|
218
366
|
|
|
219
367
|
export {
|
|
220
368
|
encodeStats,
|
|
@@ -233,7 +381,15 @@ export {
|
|
|
233
381
|
} from './derivation/crafting'
|
|
234
382
|
export type {StackInput, CategoryStacks, RecipeSlotInput} from './derivation/crafting'
|
|
235
383
|
|
|
236
|
-
export {
|
|
384
|
+
export {
|
|
385
|
+
availableBuildMethods,
|
|
386
|
+
isBuildable,
|
|
387
|
+
isPlotBuildable,
|
|
388
|
+
filterByBuildMethod,
|
|
389
|
+
allBuildableItems,
|
|
390
|
+
allPlotBuildableItems,
|
|
391
|
+
} from './derivation/build-methods'
|
|
392
|
+
export type {BuildMethod} from './derivation/build-methods'
|
|
237
393
|
|
|
238
394
|
export {
|
|
239
395
|
computeShipHullCapabilities,
|
|
@@ -245,9 +401,31 @@ export {
|
|
|
245
401
|
computeCrafterCapabilities,
|
|
246
402
|
computeWarehouseHullCapabilities,
|
|
247
403
|
computeStorageCapabilities,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
404
|
+
computeBatteryCapabilities,
|
|
405
|
+
computeContainerCapabilities,
|
|
406
|
+
computeContainerT2Capabilities,
|
|
407
|
+
computeWarpCapabilities,
|
|
408
|
+
computeLauncherCapabilities,
|
|
409
|
+
computeBaseCapacity,
|
|
410
|
+
computeEntityCapabilities,
|
|
411
|
+
GATHERER_DEPTH_TABLE,
|
|
412
|
+
GATHERER_DEPTH_MAX_TIER,
|
|
413
|
+
gathererDepthForTier,
|
|
414
|
+
} from './derivation/capabilities'
|
|
415
|
+
export type {GathererDepthParams, ComputedCapabilities} from './derivation/capabilities'
|
|
416
|
+
|
|
417
|
+
export {
|
|
418
|
+
WH,
|
|
419
|
+
feistel,
|
|
420
|
+
feistelInv,
|
|
421
|
+
regionOf,
|
|
422
|
+
partnerRegion,
|
|
423
|
+
wormholeAt,
|
|
424
|
+
wormholeAtRegionEndpoint,
|
|
425
|
+
isValidWormholePair,
|
|
426
|
+
} from './derivation/wormhole'
|
|
427
|
+
|
|
428
|
+
export {rollupGatherer, rollupCrafter, rollupLoaders} from './derivation/rollups'
|
|
251
429
|
|
|
252
430
|
export {resolveItem} from './resolution/resolve-item'
|
|
253
431
|
export type {
|
|
@@ -287,6 +465,39 @@ export type {
|
|
|
287
465
|
NFTCommonBase,
|
|
288
466
|
} from './nft/deserializers'
|
|
289
467
|
|
|
468
|
+
export {deserializeAtomicData} from './nft/atomicdata'
|
|
469
|
+
export type {SchemaField, RawData} from './nft/atomicdata'
|
|
470
|
+
|
|
471
|
+
export {
|
|
472
|
+
buildImmutableData,
|
|
473
|
+
buildResourceImmutable,
|
|
474
|
+
buildComponentImmutable,
|
|
475
|
+
buildModuleImmutable,
|
|
476
|
+
buildEntityImmutable,
|
|
477
|
+
computeNftImageUrl,
|
|
478
|
+
} from './nft/buildImmutableData'
|
|
479
|
+
export type {
|
|
480
|
+
AtomicAttributeType,
|
|
481
|
+
ImmutableEntry,
|
|
482
|
+
ImmutableModuleSlot,
|
|
483
|
+
} from './nft/buildImmutableData'
|
|
484
|
+
|
|
485
|
+
export {
|
|
486
|
+
fetchAtomicAssetsForOwner,
|
|
487
|
+
fetchAtomicSchemas,
|
|
488
|
+
decodeAtomicAsset,
|
|
489
|
+
buildMintAssetAction,
|
|
490
|
+
ATOMICASSETS_ACCOUNT,
|
|
491
|
+
SHIPLOAD_COLLECTION,
|
|
492
|
+
} from './nft/atomicassets'
|
|
493
|
+
export type {
|
|
494
|
+
AtomicAssetRow,
|
|
495
|
+
AtomicSchemaRow,
|
|
496
|
+
DecodedAtomicAsset,
|
|
497
|
+
FetchAssetsOptions,
|
|
498
|
+
MintAssetParams,
|
|
499
|
+
} from './nft/atomicassets'
|
|
500
|
+
|
|
290
501
|
export {
|
|
291
502
|
buildEntityDescription,
|
|
292
503
|
formatModuleLine,
|
|
@@ -297,16 +508,21 @@ export {
|
|
|
297
508
|
computeBaseCapacityWarehouse,
|
|
298
509
|
computeEngineThrust,
|
|
299
510
|
computeEngineDrain,
|
|
511
|
+
computeTravelDrain,
|
|
512
|
+
ENGINE_DRAIN_BASE,
|
|
513
|
+
ENGINE_DRAIN_REF_THRUST,
|
|
514
|
+
ENGINE_DRAIN_REF_THM,
|
|
300
515
|
computeGeneratorCap,
|
|
301
516
|
computeGeneratorRech,
|
|
302
517
|
computeGathererYield,
|
|
303
518
|
computeGathererDrain,
|
|
304
519
|
computeGathererDepth,
|
|
305
|
-
computeGathererSpeed,
|
|
306
520
|
computeLoaderMass,
|
|
307
521
|
computeLoaderThrust,
|
|
308
522
|
computeCrafterSpeed,
|
|
309
523
|
computeCrafterDrain,
|
|
524
|
+
computeHaulerCapacity,
|
|
525
|
+
computeHaulerEfficiency,
|
|
310
526
|
computeWarpRange,
|
|
311
527
|
} from './nft/description'
|
|
312
528
|
|
|
@@ -318,9 +534,13 @@ export {
|
|
|
318
534
|
itemTypeCode,
|
|
319
535
|
} from './data/tiers'
|
|
320
536
|
|
|
321
|
-
export {formatMass, formatMassDelta} from './format'
|
|
537
|
+
export {formatMass, formatMassDelta, formatMassScaled, formatLocation} from './format'
|
|
538
|
+
export * from './coordinates'
|
|
322
539
|
|
|
323
|
-
export {displayName, describeItem} from './resolution/display-name'
|
|
540
|
+
export {displayName, baseName, describeItem} from './resolution/display-name'
|
|
324
541
|
export type {DescribeOptions} from './resolution/display-name'
|
|
325
542
|
|
|
326
543
|
export * from './subscriptions'
|
|
544
|
+
|
|
545
|
+
export {planParallelGather, planParallelTransfer} from './planner'
|
|
546
|
+
export type {LanePlanEntry, PlanTarget, GatherPlanEntity} from './planner'
|