Class TransportRequestGroup
Properties
supplyByID
supplyByID: object
withdraw
withdraw: object
withdrawByID
withdrawByID: object
Accessors
needsSupplying
- get needsSupplying(): boolean
needsWithdrawing
- get needsWithdrawing(): boolean
Methods
Private getInputAmount
-
Parameters
-
-
resourceType: ResourceConstant
Returns number
Private getOutputAmount
-
Parameters
-
-
resourceType: ResourceConstant
Returns number
getPrioritizedClosestRequest
- getPrioritizedClosestRequest(pos: RoomPosition, type: "supply" | "withdraw", filter?: function | undefined): TransportRequest | undefined
-
Parameters
-
pos: RoomPosition
-
type: "supply" | "withdraw"
-
Default value filter: function | undefined = undefined
requestInput
-
Parameters
-
-
Default value priority: Priority = Priority.Normal
-
Default value opts: TransportRequestOptions = {} as TransportRequestOptions
Returns void
requestOutput
-
Parameters
-
-
Default value priority: Priority = Priority.Normal
-
Default value opts: TransportRequestOptions = {} as TransportRequestOptions
Returns void
summarize
- summarize(ignoreEnergy?: boolean): void
-
Parameters
-
Default value ignoreEnergy: boolean = false
Returns void
Transport request groups handle close-range prioritized resource requests, in contrast to the logistics network, which handles longer-ranged requests