public ConnectionManager(MatchMakerSettings settings)
 {
     Settings = settings;
     Logger.DefaultLogger("Initializing Connection Manager on Port: " + Settings.MasterPort);
     InitializationQueue = new Queue <TcpClient>();
     Listener            = new TcpListener(IPAddress.Any, Settings.MasterPort);
 }
Example #2
0
 public PortManager(MatchMakerSettings settings)
 {
     Settings = settings;
     PortMap  = new Port[Settings.GameServerPortRange.Range];
     InitializePortMap();
     Logger.DefaultLogger("Initializing Port Manager on Range: " + Settings.GameServerPortRange);
 }
        public GameInstanceManager(MatchMakerSettings settings)
        {
            Logger.DefaultLogger("Initializing Game Instance Manager");

            Settings  = settings;
            StartInfo = new ProcessStartInfo(Settings.GameServerPath);
            StartInfo.CreateNoWindow   = settings.InstanceCreateNoWindow;
            StartInfo.UseShellExecute  = settings.InstanceUseShellExecute;
            StartInfo.WorkingDirectory = Path.GetDirectoryName(Settings.GameServerPath);
        }
 private void LoadSettings(StartupArgumentInfo info, string[] args)
 {
     if (args.Length != 0)
     {
         Program.Settings = MatchMakerSettings.Load(args[0]);
         Logger.Log(LogType.Log, "Loaded Settings.", 1);
     }
     else
     {
         Program.Settings = new MatchMakerSettings();
         Logger.Log(LogType.Log, "Settings set to Default.", 1);
     }
 }