示例#1
0
        public int getRCONPort()
        {
            DewritoConfigLine dewritoConfigLine =
                ConfigLines.FirstOrDefault(dewConfigLine => dewConfigLine.Key == "Game.RconPort");

            return(int.Parse(dewritoConfigLine.Values[0].Trim('"')));
        }
示例#2
0
        public int getSignalServerPort()
        {
            DewritoConfigLine dewritoConfigLine =
                ConfigLines.FirstOrDefault(dewConfigLine => dewConfigLine.Key == "Server.SignalServerPort");

            return(int.Parse(dewritoConfigLine.Values[0].Trim('"')));
        }
示例#3
0
        public string getPlayerName()
        {
            DewritoConfigLine dewritoConfigLine =
                ConfigLines.FirstOrDefault(dewConfigLine => dewConfigLine.Key == "Player.Name");

            return(string.Join(" ", dewritoConfigLine.Values).Trim('"'));
        }
示例#4
0
        public string getRCONPassword()
        {
            DewritoConfigLine dewritoConfigLine =
                ConfigLines.FirstOrDefault(dewConfigLine => dewConfigLine.Key == "Server.RconPassword");

            return(string.Join(" ", dewritoConfigLine.Values).Trim('"'));
        }
示例#5
0
        public string getServerMSG()
        {
            DewritoConfigLine dewritoConfigLine =
                ConfigLines.FirstOrDefault(dewConfigLine => dewConfigLine.Key == "Server.Message");

            return(string.Join(" ", dewritoConfigLine.Values).Trim('"'));
        }
示例#6
0
        public string getVetoConfig()
        {
            DewritoConfigLine dewritoConfigLine =
                ConfigLines.FirstOrDefault(dewConfigLine => dewConfigLine.Key == "Server.VetoJsonPath");

            return(string.Join(" ", dewritoConfigLine.Values));
        }
示例#7
0
        public bool getServerAnnounce()
        {
            DewritoConfigLine dewritoConfigLine =
                ConfigLines.FirstOrDefault(dewConfigLine => dewConfigLine.Key == "Server.ShouldAnnounce");

            return(int.Parse(dewritoConfigLine.Values[0].Trim('"')) != 0);
        }