Exemplo n.º 1
0
        private Server GetServer(ProcessItem process)
        {
            var baseDir = Directory.GetParent(Directory.GetParent(process.Path).FullName);
            var config  = new IL2StartupConfig(String.Concat(baseDir, @"\data\startup.cfg"));
            var rcon    = new RconConnection(config);
            var server  = new Server(rcon, process);

            return(new Server(rcon, process));
        }
Exemplo n.º 2
0
        private Server GetServer(ProcessItem process)
        {
            var baseDir = Directory.GetParent(Directory.GetParent(process.Path).FullName);
            var config  = new IL2StartupConfig(string.Concat(baseDir, @"\data\startup.cfg"));
            var rcon    = new RconConnection(config);

            var appSettings = Settings.Default.Config;

            rcon.RconDefaultLogin    = appSettings.RconStaticLogin;
            rcon.RconDefaultPassword = appSettings.RconStaticPassword;

            var server = new Server(config, rcon, process);

            return(server);
        }
Exemplo n.º 3
0
 public RconConnection(IL2StartupConfig config)
 {
     Config = config;
 }