Skip to main content

Module research

Module research 

Source
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§

ResearchPoint
A resource type representing one research point for a specific Technology. Use them in the research method of the corresponding Technology to unlock the technology.
TechRecipe
A recipe for producing research points for specific technologies.

Traits§

Technology
A technology can be unlocked out by calling the research method 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 a Machine. 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_inputs and research_ticks attributes. The generated documentation is appended to any existing documentation on the struct.

Derive Macros§

TechnologyEx