Freighter
Freighters that mine resources from the map.
Inherits
Properties
Name | Type | Access | Description |
---|---|---|---|
amount | Number | RW | How much of the held resource is abord |
maxAmount | Number | R | The maximum carryable amount of tne current resource |
resource | Resource | RW | The resource currently held |
spaceRemaining | Number | R | Amount of space remaining for current resource |
droppingOff | Boolean | R | True if the freighter is delivering its cargo |
source | Entity | R | The entity being mined |
station | Entity | R | Station that resources will be delivered to |
Functions and Enumerations
- Instance Functions
Functions that are called without an instance of the Freighter class.
- getMaxAmount( resource )
Get the maximum of a resource carryable
- getMaxAmount( resource )