示例#1
0
        public WRS_SpectatingClient()
        {
            CConfiguration config = new CConfiguration();
            config.uri = uri;

            configuration = new JConfiguration(config.SendCommand());
            if (!configuration.IsValid) throw new Exception("Fehler beim Verbinden. Empfangene Configuration nicht gültig");

            httpTimer = new System.Timers.Timer();
            httpTimer.Interval = (double)refreshHttpInterval;
            httpTimer.Elapsed += httpTimer_Elapsed;
            httpTimer.Enabled = true;
        }
示例#2
0
文件: AICore.cs 项目: Boris0190/WRS20
        public void Start()
        {
            //String teamName = "HelloKittyStorm" + DateTime.Now.Ticks.ToString();
            String teamName = "HelloKittyStorm";

            CConfiguration cConfig = new CConfiguration();
            cConfig.uri = uri;
            config = new JConfiguration(cConfig.SendCommand());

            CTeam cTeam = new CTeam();
            cTeam.TeamName = teamName;
            cTeam.uri = uri;
            team = new JTeam(cTeam.SendCommand());

            Task.Factory.StartNew(() => ThinkTask());
        }