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