BrakeSide ParseSide(string name) { if (name == null) { name = String.Empty; } else { name = name.ToLower(); } return(AI_Utils.ToEnum <BrakeSide> (name, BrakeSide.center)); }
public static ButtonMode Parse(string name) { if (name == null) { name = String.Empty; } else { name = name.ToLower(); } return(AI_Utils.ToEnum <ButtonMode> (name, ButtonMode.hold)); }