// Methods public List <ReactorFuelMode> GetVariantsOrderedByFuelRatio(Part part, double FuelEfficiency, double powerToSupply, double fuelUsePerMJMult) { foreach (var fuelMode in Variants) { fuelMode.FuelRatio = fuelMode.ReactorFuels.Min(fuel => fuel.GetFuelRatio(part, FuelEfficiency, powerToSupply, fuelUsePerMJMult)); } return(Variants.OrderByDescending(m => m.FuelRatio).ThenBy(m => m.Position).ToList()); }
// Methods public List <ReactorFuelMode> GetVariantsOrderedByFuelRatio(Part part, double fuelEfficiency, double powerToSupply, double fuelUsePerMjMult, bool allowSimulate = true) { foreach (var fuelMode in Variants) { fuelMode.FuelRatio = fuelMode.ReactorFuels.Min(fuel => fuel.GetFuelRatio(part, fuelEfficiency, powerToSupply, fuelUsePerMjMult, allowSimulate ? fuel.Simulate : false)); } return(Variants.OrderByDescending(m => m.FuelRatio).ThenBy(m => m.Position).ToList()); }