public StandingsItem() { driver = new DriverInfo(); laps = new List<LapInfo>(); fastestlap = 0; lapsled = 0; classlapsled = 0; currentTrackSurface = prevTrackSurface = SurfaceTypes.NotInWorld; trackpct = 0; prevtrackpct = 0; prevtrackpctupdate = 0; speed = 0; prevspeed = 0; position = 0; currentlap = new LapInfo(); sector = 0; sectorbegin = 0; pitstops = 0; pitstoptime = 0; pitstorbegin = DateTime.MinValue; begin = 0; finished = false; offtracksince = 0; positionlive = 0; }
public SessionInfo() { id = 0; lapsTotal = 0; lapsComplete = 0; leadChanges = 0; cautions = 0; cautionLaps = 0; fastestlap = 0; fastestdriver = new DriverInfo(); fastestlapnum = 0; time = 0; sessiontimeremaining = 0; sessionlength = 0; sessionstarttime = -1; sessionstartpos = 0; finishline = Int32.MaxValue; type = SessionTypes.none; state = SessionStates.invalid; flag = SessionFlags.invalid; startlight = SessionStartLights.off; standings = new ObservableCollection <StandingsItem>(); followedDriver = new StandingsItem(); }
public StandingsItem() { driver = new DriverInfo(); laps = new List <LapInfo>(); fastestlap = 0; lapsled = 0; classlapsled = 0; currentTrackSurface = prevTrackSurface = SurfaceTypes.NotInWorld; trackpct = 0; prevtrackpct = 0; prevtrackpctupdate = 0; speed = 0; prevspeed = 0; position = 0; currentlap = new LapInfo(); sector = 0; sectorbegin = 0; pitstops = 0; pitstoptime = 0; pitstorbegin = DateTime.MinValue; begin = 0; finished = false; offtracksince = 0; positionlive = 0; }
public SessionEvent(SessionEventTypes type, Int64 replay, DriverInfo driver, String desc, SessionTypes session, Int32 lap) { this.type = type; this.timestamp = DateTime.Now; this.replaypos = replay; this.driver = driver; this.description = desc; this.session = session; this.lapnum = lap; this.rewind = 0; }
public void setDriver(int carIdx) { int index = SharedData.Drivers.FindIndex(d => d.CarIdx.Equals(carIdx)); if (index >= 0) { driver = SharedData.Drivers[index]; } else { driver = new DriverInfo(); } }
public SessionInfo() { id = 0; lapsTotal = 0; lapsComplete = 0; leadChanges = 0; cautions = 0; cautionLaps = 0; fastestlap = 0; fastestdriver = new DriverInfo(); fastestlapnum = 0; time = 0; sessiontimeremaining = 0; sessionlength = 0; sessionstarttime = -1; sessionstartpos = 0; finishline = Int32.MaxValue; type = SessionTypes.none; state = SessionStates.invalid; flag = SessionFlags.invalid; startlight = SessionStartLights.off; standings = new ObservableCollection<StandingsItem>(); followedDriver = new StandingsItem(); }