Пример #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));
        }
Пример #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);
        }
Пример #3
0
 public RconConnection(IL2StartupConfig config)
 {
     Config = config;
 }