Example #1
0
 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;
 }
Example #2
0
 public void DriverReportedOffTrack(Transponder transponder, InfractionSeverityIdentifier infractionSeverity) => CheckpointReport?.Invoke(this, transponder, infractionSeverity);