Ejemplo n.º 1
0
Archivo: sof.cs Proyecto: Jeffg24/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;
     }
 }
Ejemplo n.º 2
0
Archivo: sof.cs Proyecto: Jeffg24/irtvo
 public String SessionInfo(String method, iRTVO.Sessions.SessionInfo session, Int32 rounding)
 {
     switch (method)
     {
         case "sof":
             if (session.Standings.Count != drivercount)
                 this.UpdateSOF();
             return Math.Round(Math.Floor(this.sof), rounding).ToString();
             break;
         default:
             return "[invalid]";
             break;
     }
 }
Ejemplo n.º 3
0
 public String SessionInfo(String method, iRTVO.Sessions.SessionInfo session, Int32 rounding)
 {
     switch (method)
     {
         case "test":
             return "test succesful";
             break;
         case "state":
             return session.State.ToString();
             break;
         default:
             return "[invalid]";
             break;
     }
 }
Ejemplo n.º 4
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;
     }
 }
Ejemplo n.º 5
0
 internal void OverlayTick(iRTVO.Overlay overlay)
 {
     foreach (var pair in this.scripts)
     {
         try
         {
             if (!pair.Value.RequestedInterfaces.HasFlag(ScriptInterfaceRequestType.OverlayTick))
                 continue;
             logger.Debug("Calling OverlayTick in {0}", pair.Key);
             using (new TimeCall("ApiTick"))
                 pair.Value.OverlayTick();
         }
         catch (Exception ex)
         {
             logger.Error("Error in {0}.OverlayTick: {1}", pair.Key, ex.ToString());
         }
     }
 }
Ejemplo n.º 6
0
 public void OverlayTick(iRTVO.Overlay overlay)
 {
     foreach (var pair in this.scripts)
         pair.Value.OverlayTick(overlay);
 }
Ejemplo n.º 7
0
Archivo: sof.cs Proyecto: Jeffg24/irtvo
 public void OverlayTick(iRTVO.Overlay overlay)
 {
 }
Ejemplo n.º 8
0
 public String SessionInfo(String method, iRTVO.Sessions.SessionInfo session, Int32 rounding)
 {
     return "";
 }
Ejemplo n.º 9
0
 public String DriverInfo(String method, iRTVO.Sessions.SessionInfo.StandingsItem standing, iRTVO.Sessions.SessionInfo session, Int32 rounding)
 {
     return "";
 }