Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit ad0f229a authored by Michael KRISPER's avatar Michael KRISPER
Browse files

PowertrainBuilder.GetGearbox: Simplified overrides into one method.

parent e7f6bf92
No related branches found
No related tags found
No related merge requests found
......@@ -1214,14 +1214,9 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
modData.AddAuxiliary(auxId);
}
private static IGearbox GetGearbox(IVehicleContainer container)
{
var strategy = GetShiftStrategy(container);
return GetGearbox(container, strategy);
}
private static IGearbox GetGearbox(IVehicleContainer container, IShiftStrategy strategy)
private static IGearbox GetGearbox(IVehicleContainer container, IShiftStrategy strategy = null)
{
strategy = strategy ?? GetShiftStrategy(container);
switch (container.RunData.GearboxData.Type) {
case GearboxType.AMT:
case GearboxType.MT:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment