Esempio n. 1
0
 public SimulatorInfo(SimulatorType type, Random random, Func <int> getSymbolCount)
 {
     log.Register(this);
     this.Type           = type;
     this.random         = random;
     this.getSymbolCount = getSymbolCount;
 }
Esempio n. 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));
        }
Esempio n. 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;
 }
Esempio n. 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);
 }
Esempio n. 5
0
 public SimTypePath(SimulatorType Type, IExportPath Path)
 {
     this.Type = Type;
     this.Path = Path;
 }
Esempio n. 6
0
 /// <summary>
 /// Option is not needed and can be null.
 /// </summary>
 public string FullPath(SimulatorType Type, AppOptions Option = null) => absolutePath;
Esempio n. 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);
 }