public InfractionData(int checkpointIndex, float timeOfInfraction, Vector2 carPosition, float speed, float acceleration, InfractionSeverityIdentifier severity) { CheckpointIndex = checkpointIndex; TimeOfInfraction = timeOfInfraction; CarPosition = carPosition; Speed = speed; Acceleration = acceleration; Severity = severity; }
public void DriverReportedOffTrack(Transponder transponder, InfractionSeverityIdentifier infractionSeverity) => CheckpointReport?.Invoke(this, transponder, infractionSeverity);