public PenaltyResult(PenaltyResultTypes type) { this.Type = type; this.DriverId = -1; this.PenaltyMessage = ""; this.PenaltyValue = 0; this.CommandFormat = ""; }
public static PenaltyResult FromType(PenaltyResultTypes type) { switch (type) { case PenaltyResultTypes.Clear: return(Clear()); case PenaltyResultTypes.Disqualify: return(Disqualify()); case PenaltyResultTypes.GridPenalty: return(GridPenalty()); case PenaltyResultTypes.Mute: return(Mute()); case PenaltyResultTypes.Investigation: return(Investigation()); case PenaltyResultTypes.NoFurtherAction: return(NoFurtherAction()); case PenaltyResultTypes.Remove: return(Remove()); case PenaltyResultTypes.StopAndGo: return(StopAndGo()); case PenaltyResultTypes.StopAndHoldLaps: return(StopAndHoldLaps()); case PenaltyResultTypes.StopAndHoldTime: return(StopAndHoldTime()); case PenaltyResultTypes.TimePenalty: return(TimePenalty()); case PenaltyResultTypes.Unmute: return(Unmute()); case PenaltyResultTypes.Warning: return(Warning()); } return(Other("", "")); }
public static PenaltyResult FromType(PenaltyResultTypes type) { switch (type) { case PenaltyResultTypes.Clear: return Clear(); case PenaltyResultTypes.Disqualify: return Disqualify(); case PenaltyResultTypes.GridPenalty: return GridPenalty(); case PenaltyResultTypes.Mute: return Mute(); case PenaltyResultTypes.Investigation: return Investigation(); case PenaltyResultTypes.NoFurtherAction: return NoFurtherAction(); case PenaltyResultTypes.Remove: return Remove(); case PenaltyResultTypes.StopAndGo: return StopAndGo(); case PenaltyResultTypes.StopAndHoldLaps: return StopAndHoldLaps(); case PenaltyResultTypes.StopAndHoldTime: return StopAndHoldTime(); case PenaltyResultTypes.TimePenalty: return TimePenalty(); case PenaltyResultTypes.Unmute: return Unmute(); case PenaltyResultTypes.Warning: return Warning(); } return Other("", ""); }