Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

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

Added Function for getting the short Name of a AxleConfiguration (e.g. "4x2"...

Added Function for getting the short Name of a AxleConfiguration (e.g. "4x2" and not "AxleConfiguration4x2")
parent 0f360bfb
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,14 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data
AxleConfig8x8,
}
public static class AxleConfigurationExtensions
{
public static string GetName(this AxleConfiguration self)
{
return self.ToString().Substring(10);
}
}
public class VehicleData : SimulationComponentData
{
//public static VehicleData ReadFromFile(string fileName)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment