-
Notifications
You must be signed in to change notification settings - Fork 14
SnacksBackgroundConverter
This class runs active converters in the background, consuming inputs, producing outputs, and yielding resources.
Name of the converter
Name of the converter part module.
Flag indicating that the converter is active.
Flag indicating that the converter is missing resources.
Flag indicating that the container is full.
The input efficiency.
The output efficiency.
Parses a vessel to find active converters to run in the background.
A map keyed by Vessel that has a list of running converters to run in the background.
Initializes a new instance of the class.
protoPart: The ProtPartSnapshot that hosts the converter.
protoModule: The ProtoPartModuleSnapshot representing the converter.
moduleIndex: The module index.
Initializes a new instance of the class.
Checks to be sure the vessel has the required resources.
vessel: The Vessel to check.
elapsedTime: The seconds that have elapsed.
Consumes the input resources.
vessel: The Vessel to consume resources from.
elapsedTime: Converter elapsed time.
Produces the output resources.
vessel: The Vessel to add resources to.
elapsedTime: Converter elapsed time.
Produces the yield resources
vessel: The Vessel to add resources to.
Prepares the converter to process.
vessel: The Vessel to check for preparations.
Handles post process tasks for the converter.
vessel: The Vessel to update.