예제 #1
0
 public BTD6Menu(WindowInteractions winInteractions)
 {
     _winInteractions = winInteractions;
     _btd6GamePlayer  = new BTD6GamePlayer(winInteractions);
     LoadScripts(_scriptLoader);
     _moneyReader = new MoneyReader(1920, 1080);
 }
예제 #2
0
        public ParsedScript(BTD6GamePlayer player, string file)
        {
            _player = player;
            var lines = File.ReadAllLines(file);

            _name = lines[0];
            var resolution = lines[1].Split(' ');

            _resolution  = new Size(int.Parse(resolution[0]), int.Parse(resolution[1]));
            _moneyReader = new MoneyReader(_resolution.Width, _resolution.Height);
            _actions     = lines.Skip(1);

            PrepareKeyWordDictionary();
        }