Пример #1
0
        public SC2Bot(SC2BotOption option = null)
        {
            if (option == null)
            {
                option = new SC2BotOption();
            }
            this.option = option;
            SetBoolProperty("Auto", true);
            SetBoolProperty("Log", false);
            SetBoolProperty("DumpNetural", false);
            SetBoolProperty("DumpSelf", true);
            SetBoolProperty("DumpEnemy", true);
            SetBoolProperty("DumpWorker", false);

            if (this.option.flgReadMode == false)
            {
                saveDirName = String.Format("GS{0:yyyyMMdd-HHmmss}", DateTime.Now);
                DirectoryInfo dir = new DirectoryInfo(saveDirName);
                if (dir.Exists)
                {
                    dir.Empty();
                }
                else
                {
                    dir.Create();
                }
            }
        }
Пример #2
0
 public TerranBot(SC2BotOption option = null) : base(option)
 {
 }