Exemplo n.º 1
0
        public async Task <Process> Install()
        {
            Steam.HLDS hlds = new Steam.HLDS(_serverId);
            Process    p    = await hlds.Install("90 mod czero", "90");

            Error = hlds.Error;

            return(p);
        }
Exemplo n.º 2
0
        public async Task <bool> Update()
        {
            Steam.HLDS hlds    = new Steam.HLDS(_serverId);
            bool       success = await hlds.Update("90 mod czero", "90");

            Error = hlds.Error;

            return(success);
        }
Exemplo n.º 3
0
        public async Task <Process> Start()
        {
            string configPath = Functions.Path.GetServerFiles(_serverId, @"czero\server.cfg");

            if (!File.Exists(configPath))
            {
                Notice = $"server.cfg not found ({configPath})";
            }

            Steam.HLDS hlds = new Steam.HLDS(_serverId);
            Process    p    = await hlds.Start(_param);

            Error = hlds.Error;

            return(p);
        }