Expand description
Technologies can be unlocked by consuming science packs. They usually unlock new recipes or further technologies.
This module defines the the science pack resources and the Technology trait.
Structs§
- Research
Point - A resource type representing one research point for a specific
Technology. Use them in theresearchmethod of the correspondingTechnologyto unlock the technology. - Tech
Recipe - A recipe for producing research points for specific technologies.
Traits§
- Technology
- A technology can be unlocked out by calling the
researchmethod with the required science packs. This will consume the science packs and the technology itself, and return whatever the technology unlocks, mostly recipes and other technologies.
Functions§
- tech_
recipe - Creates a new
TechRecipe<T>for use in aMachine. Should not be reexported, as that would allow players to create research points for researches they have not unlocked yet.
Attribute Macros§
- technology_
doc - Generates documentation for a technology struct based on its
research_inputsandresearch_ticksattributes. The generated documentation is appended to any existing documentation on the struct.