public SimulatorInfo(SimulatorType type, Random random, Func <int> getSymbolCount)
 {
     log.Register(this);
     this.Type           = type;
     this.random         = random;
     this.getSymbolCount = getSymbolCount;
 }
Beispiel #2
0
        /// <summary>
        /// Return value may be null, or the path may not exist.
        /// </summary>
        public string FullPath(SimulatorType Type, AppOptions Option)
        {
            var simPath = Option.SimulatorPaths[Type];

            return(ExceptionHelpers.DefaultIfThrows(
                       () => Path.GetFullPath(Path.Combine(simPath, relativePath)),
                       null));
        }
Beispiel #3
0
 public PDUAddPilot(string callsign, string cid, string password, NetworkRating rating, ProtocolRevision proto, SimulatorType simType, string realName)
     : base(callsign, "")
 {
     CID              = cid;
     Password         = password;
     Rating           = rating;
     ProtocolRevision = proto;
     SimulatorType    = simType;
     RealName         = realName;
 }
Beispiel #4
0
 public simConnector(SimulatorType mytype, string IP)
 {
     if (mytype == SimulatorType.Xplane)
     {
         RAD_softXplanes = true;
     }
     simIP = IP;
     SimValues.Add("roll_out", 0);
     SimValues.Add("pitch_out", 0);
     SimValues.Add("throttle_out", 0);
     SimValues.Add("rudder_out", 0);
 }
Beispiel #5
0
 public SimTypePath(SimulatorType Type, IExportPath Path)
 {
     this.Type = Type;
     this.Path = Path;
 }
Beispiel #6
0
 /// <summary>
 /// Option is not needed and can be null.
 /// </summary>
 public string FullPath(SimulatorType Type, AppOptions Option = null) => absolutePath;
Beispiel #7
0
 public simConnector(SimulatorType mytype, string IP)
 {
     if (mytype == SimulatorType.Xplane)
     {
         RAD_softXplanes = true;
     }
     simIP = IP;
     SimValues.Add("roll_out", 0);
     SimValues.Add("pitch_out", 0);
     SimValues.Add("throttle_out", 0);
     SimValues.Add("rudder_out", 0);
 }