Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions F1ReplayClient/Data/Base/NotifyPropertyBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ public void RaisePropertyChange(string propertyName)

#region INotifyPropertyChanged

/// <summary>
/// PropertyChanged event
/// </summary>
/// <inheritdoc/>
public event PropertyChangedEventHandler? PropertyChanged;

#endregion // INotifyPropertyChanged
Expand Down
12 changes: 2 additions & 10 deletions F1ReplayClient/Data/ContextViewData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -575,18 +575,10 @@ public string TimeDuration

#region IDataErrorInfo

/// <summary>
/// Returns the error text for the object as a whole. This type validates per property only,
/// so the value is never assigned and stays null. WPF binding ignores an object level error
/// and evaluates the indexer instead, which is the supported usage of IDataErrorInfo here
/// </summary>
/// <inheritdoc/>
public string Error { get; }

/// <summary>
/// Check content
/// </summary>
/// <param name="columnName">Name of field</param>
/// <returns>Error</returns>
/// <inheritdoc/>
public string this[string columnName] => CheckFieldContent(columnName);

/// <summary>
Expand Down
4 changes: 1 addition & 3 deletions F1ReplayClient/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -877,9 +877,7 @@ private void UpdateProgressView(int processedFiles,

#region IDisposable

/// <summary>
/// Dispose method
/// </summary>
/// <inheritdoc/>
public void Dispose()
{
Dispose(true);
Expand Down
4 changes: 1 addition & 3 deletions F1Server.Core/Packets/Data/F1-2019/CarStatus2019.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ public CarStatus2019()

#region ICarStatusBase

/// <summary>
/// Car status of all cars
/// </summary>
/// <inheritdoc/>
public ICarStatusDataBase[] CarStatusData { get; }

#endregion // ICarStatusBase
Expand Down
108 changes: 27 additions & 81 deletions F1Server.Core/Packets/Data/F1-2019/CarStatusData2019.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,143 +10,89 @@ public class CarStatusData2019 : ICarStatusData2019
{
#region ICarStatusData2019

/// <summary>
/// Tyres wear percentage
/// </summary>
/// <inheritdoc/>
public ushort[] TyresWear { get; set; }

/// <summary>
/// Tyre damage in percent
/// </summary>
/// <inheritdoc/>
public ushort[] TyreDamage { get; set; }

/// <summary>
/// Front left wing damage in percent
/// </summary>
/// <inheritdoc/>
public ushort FrontLeftWingDamage { get; set; }

/// <summary>
/// Front right wing damage in percent
/// </summary>
/// <inheritdoc/>
public ushort FrontRightWingDamage { get; set; }

/// <summary>
/// Rear wing damage in percent
/// </summary>
/// <inheritdoc/>
public ushort RearWingDamage { get; set; }

/// <summary>
/// Engine Damage in percent
/// </summary>
/// <inheritdoc/>
public ushort EngineDamage { get; set; }

/// <summary>
/// Gearbox damage in percent
/// </summary>
/// <inheritdoc/>
public ushort GearBoxDamage { get; set; }

#endregion // ICarStatusData2019

#region ICarStatusDataBase

/// <summary>
/// Traction control 0 - off - 2 - high
/// </summary>
/// <inheritdoc/>
public ushort TractionControl { get; set; }

/// <summary>
/// Anti lock brakes - 0 - off - 1 - on
/// </summary>
/// <inheritdoc/>
public ushort AntiLockBrakes { get; set; }

/// <summary>
/// Fuel mix - 0 - lean - 1 - standard - 2 - rich - 3 - max
/// </summary>
/// <inheritdoc/>
public ushort FuelMix { get; set; }

/// <summary>
/// Front brake bias in percentage
/// </summary>
/// <inheritdoc/>
public ushort FrontBrakeBias { get; set; }

/// <summary>
/// Pit limiter status - 0 - off - 1 - on
/// </summary>
/// <inheritdoc/>
public ushort PitLimiterStatus { get; set; }

/// <summary>
/// Current fuel mass
/// </summary>
/// <inheritdoc/>
public float FuelInTank { get; set; }

/// <summary>
/// Fuel capacity
/// </summary>
/// <inheritdoc/>
public float FuelCapacity { get; set; }

/// <summary>
/// Fuel remaining in terms of laps (value on MFD)
/// </summary>
/// <inheritdoc/>
public float FuelRemainingLaps { get; set; }

/// <summary>
/// Cars max RPM, point of rev limiter
/// </summary>
/// <inheritdoc/>
public uint MaxRPM { get; set; }

/// <summary>
/// Cars idle RPM
/// </summary>
/// <inheritdoc/>
public uint IdleRPM { get; set; }

/// <summary>
/// Maximum number of gears
/// </summary>
/// <inheritdoc/>
public ushort MaxGears { get; set; }

/// <summary>
/// DRS allowed - 0 - not allowed - 1 - allowed - -1 - unknown
/// </summary>
/// <inheritdoc/>
public short DRSAllowed { get; set; }

/// <summary>
/// Tyre compound
/// </summary>
/// <inheritdoc/>
public ushort ActualTyreCompound { get; set; }

/// <summary>
/// Visual tyre compound - can be different from actual compound
/// </summary>
/// <inheritdoc/>
public VisualTyreCompound VisualTyreCompound { get; set; }

/// <summary>
/// FIA flags
/// </summary>
/// <inheritdoc/>
public VehicleFiaFlagColor FiaFlags { get; set; }

/// <summary>
/// ERS energy store in Joules
/// </summary>
/// <inheritdoc/>
public float ERSStoreEnergy { get; set; }

/// <summary>
/// ERS deployment mode - 0 - none - 1 - low - 2 - medium - 3 - high - 4 - overtake - 5 - hotlap
/// </summary>
/// <inheritdoc/>
public ushort ERSDeployMode { get; set; }

/// <summary>
/// ERS energy harvested this lap by MGU-K
/// </summary>
/// <inheritdoc/>
public float ERSHarvestedThisLapMGUK { get; set; }

/// <summary>
/// ERS energy harvested this lap by MGU-H
/// </summary>
/// <inheritdoc/>
public float ERSHarvestedThisLapMGUH { get; set; }

/// <summary>
/// ERS energy deployed this lap
/// </summary>
/// <inheritdoc/>
public float ERSDeployedThisLap { get; set; }

#endregion // ICarStatusDataBase
Expand Down
4 changes: 1 addition & 3 deletions F1Server.Core/Packets/Data/F1-2019/CarTelemetry2019.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ public CarTelemetry2019()

#region ICarTelemetryBase

/// <summary>
/// Car telemetry of all cars
/// </summary>
/// <inheritdoc/>
public ICarTelemetryDataBase[] CarTelemetryData { get; }

#endregion // ICarTelemetryBase
Expand Down
60 changes: 15 additions & 45 deletions F1Server.Core/Packets/Data/F1-2019/CarTelemetryData2019.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,79 +9,49 @@ public class CarTelemetryData2019 : ICarTelemetryData2019
{
#region ICarTelemetryDataBase

/// <summary>
/// Speed
/// </summary>
/// <inheritdoc/>
public ushort Speed { get; set; }

/// <summary>
/// Amount of throttle applied (0.0 - 1.0)
/// </summary>
/// <inheritdoc/>
public float Throttle { get; set; }

/// <summary>
/// Steering (-1.0 [full left] - 1.0 [full right])
/// </summary>
/// <inheritdoc/>
public float Steer { get; set; }

/// <summary>
/// Amount of brake applied (0.0 - 1.0)
/// </summary>
/// <inheritdoc/>
public float Brake { get; set; }

/// <summary>
/// Amount of clutch applied (0 - 100)
/// </summary>
/// <inheritdoc/>
public ushort Clutch { get; set; }

/// <summary>
/// Current gear (1-8, N = 0, R = -1)
/// </summary>
/// <inheritdoc/>
public short Gear { get; set; }

/// <summary>
/// Engine RPM
/// </summary>
/// <inheritdoc/>
public ushort EngineRPM { get; set; }

/// <summary>
/// DRS active or not
/// </summary>
/// <inheritdoc/>
public bool IsDRS { get; set; }

/// <summary>
/// Rev lights indicator in percent
/// </summary>
/// <inheritdoc/>
public ushort RevLightsIndicator { get; set; }

/// <summary>
/// Brakes temperatures (celsius)
/// </summary>
/// <inheritdoc/>
public Temperature BrakesTemperature { get; set; }

/// <summary>
/// Tyres surface temperature (celsius)
/// </summary>
/// <inheritdoc/>
public Temperature TyresSurfaceTemperature { get; set; }

/// <summary>
/// Tyres inner temperature (celsius)
/// </summary>
/// <inheritdoc/>
public Temperature TyresInnerTemperature { get; set; }

/// <summary>
/// Engine temperature (celsius)
/// </summary>
/// <inheritdoc/>
public ushort EngineTemperature { get; set; }

/// <summary>
/// Tyres pressure
/// </summary>
/// <inheritdoc/>
public TyresPressure TyresPressure { get; set; }

/// <summary>
/// Type of surface
/// </summary>
/// <inheritdoc/>
public WheelSurface SurfaceType { get; set; }

#endregion // ICarTelemetryDataBase
Expand Down
8 changes: 2 additions & 6 deletions F1Server.Core/Packets/Data/F1-2019/EventData2019.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,10 @@ public EventData2019()

#region IEventDataBase

/// <summary>
/// Event code
/// </summary>
/// <inheritdoc/>
public string EventCode { get; set; }

/// <summary>
/// Event details
/// </summary>
/// <inheritdoc/>
public IEventDataDetailsBase EventDetails { get; }

#endregion // IEventDataBase
Expand Down
12 changes: 3 additions & 9 deletions F1Server.Core/Packets/Data/F1-2019/EventDataDetails2019.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,13 @@ internal class EventDataDetails2019 : IEventDataDetailsBase
{
#region IEventDataDetailsBase

/// <summary>
/// Type of event
/// </summary>
/// <inheritdoc/>
public EventType EventType { get; set; }

/// <summary>
/// Car number
/// </summary>
/// <inheritdoc/>
public ushort VehicleIndex { get; set; }

/// <summary>
/// Fastest lap in seconds
/// </summary>
/// <inheritdoc/>
public float FastestLap { get; set; }

#endregion // IEventDataDetailsBase
Expand Down
Loading
Loading