コード例 #1
0
ファイル: StandingsItem.cs プロジェクト: CloseUpDK/iRTVO
 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;
 }
コード例 #2
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();
        }
コード例 #3
0
ファイル: StandingsItem.cs プロジェクト: moose3/iRTVO
 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;
 }
コード例 #4
0
ファイル: SessionEvent.cs プロジェクト: CloseUpDK/iRTVO
 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;
 }
コード例 #5
0
ファイル: SessionEvent.cs プロジェクト: moose3/iRTVO
 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;
 }
コード例 #6
0
ファイル: StandingsItem.cs プロジェクト: moose3/iRTVO
        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();
            }
        }
コード例 #7
0
ファイル: StandingsItem.cs プロジェクト: CloseUpDK/iRTVO
 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();
     }
 }
コード例 #8
0
ファイル: SessionInfo.cs プロジェクト: CloseUpDK/iRTVO
        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();
        }