Ejemplo n.º 1
0
 protected virtual void OnRaceEvent(RaceEvent @event)
 {
     if (this.RaceEvent != null) this.RaceEvent(this, new RaceEventArgs(@event));
 }
Ejemplo n.º 2
0
 public RaceEventArgs(RaceEvent @event)
 {
     _event = @event;
 }
Ejemplo n.º 3
0
        public void NotifyPitstop(RaceEvent.EventTypes type, Driver driver)
        {
            DriverRaceEvent e;
            if (type == Events.RaceEvent.EventTypes.PitEntry)
                e = new PitEntryRaceEvent();
            else
                e = new PitExitRaceEvent();

            e.Driver = driver;
            e.SessionTime = _telemetry.SessionTime.Value;
            e.Lap = driver.Live.Lap;
            this.OnRaceEvent(e);
        }