Beispiel #1
0
        public bool CheckScene(MemoryMap map, out string[] chests, out int collCount)
        {
            List <string> chestList = new List <string>();
            bool          output    = true;

            collCount = 0;
            foreach (var item in map.itemsByScene[index])
            {
                if (item.CheckWord(GetChestWord(), GetCollectableWord()))
                {
                    chestList.Add("[X] " + item.ToString());
                    collCount++;
                }
                else
                {
                    chestList.Add("[ ] " + item.ToString());
                    output = false;
                }
            }
            chests = chestList.ToArray();
            return(output);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("OOT Auto Tracker:");

            savePath = ConfigurationSettings.AppSettings.Get("Directory");
            savePath = Environment.ExpandEnvironmentVariables(savePath);

            fileMonitor = new FileMonitor(savePath);
            Console.WriteLine("File Monitor Initialized");

            Console.WriteLine("Please wait while chest file is loaded");

            map = new MemoryMap();
            map.LoadItems();

            Console.WriteLine("Chest File Loaded");
            Console.WriteLine("");
            Console.WriteLine("Enter a command, or enter help for help");
            Console.WriteLine("If you are using this software to track your game, use the autotrack command");

            ConsoleLoop();

            fileMonitor.Dispose();
        }