Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OneFuel = Quantity{Material: "FUEL", Amount: 1}
OneFuel is a quantity for a single unit of fuel.
Functions ¶
This section is empty.
Types ¶
type Rule ¶
Rule defines how an output can be constructed from some input materials.
func RuleFromString ¶
RuleFromString creates a new rule from its string representation.
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table is a list of conversion rules between types of materials.
func TableFromString ¶
TableFromString creates a conversion table from lines of rules.
func (*Table) RequiredOre ¶
RequiredOre returns the minimum amount of ore needed to produce the desired quantity of material with the rules in this table.
Click to show internal directories.
Click to hide internal directories.