-
Notifications
You must be signed in to change notification settings - Fork 14
SimSnacks
This class determines how long consumed resources like Snacks will last by simulating resource consumption and simulating running converters like soil recyclers and snacks processors. It is designed to allow for an arbitrary number of resource production chains and an arbitrary number of consumed resources. Conditions: The only inputs allowed into the system are those consumed by kerbals. Ex: kerbals eat Snacks and produce Soil. Resources aboard the vessel that aren't directly involved in resource consumption are fixed. Ex: Resource harvesters that produce Ore aren't accounted for. Running simulations is computationally expensive. This class should be run in a thread.
Creates a simulator from the supplied ship construct
ship: A ShipConstruct to simulate
A SimSnacks simulator
Creates a simulator from the proto vessel
protoVessel: The unloaded vessel to query for resources and converters.
A SimSnacks simulator.
Creates a simulator from a loaded vessel
vessel: The Vessel object to query for resources and converters.
A SimSnacks simulator.