示例#1
0
    public String DriverInfo(String method, iRTVO.Sessions.SessionInfo.StandingsItem standing, iRTVO.Sessions.SessionInfo session, Int32 rounding)
    {
        switch (method)
        {
        case "test":
            return("test succesful");

            break;

        case "drivername":
            return(standing.Driver.Name);

            break;

        case "fuel":
            return(((Single)this.sdk.GetData("FuelLevel")).ToString());

            break;

        default:
            return("[invalid]");

            break;
        }
    }
示例#2
0
文件: sof.cs 项目: craigwk/irtvo
    public String DriverInfo(String method, iRTVO.Sessions.SessionInfo.StandingsItem standing, iRTVO.Sessions.SessionInfo session, Int32 rounding)
    {
        switch (method)
        {
        case "officialpoints":
            if (session.Standings.Count != drivercount)
            {
                this.UpdateSOF();
            }
            return(Math.Round(this.points[standing.Position], MidpointRounding.ToEven).ToString());

            break;

        default:
            return("[invalid]");

            break;
        }
    }
示例#3
0
文件: slowmo.cs 项目: craigwk/irtvo
 public String DriverInfo(String method, iRTVO.Sessions.SessionInfo.StandingsItem standing, iRTVO.Sessions.SessionInfo session, Int32 rounding)
 {
     return("");
 }