Exemplo n.º 1
0
 private static void CheckAll(string command)
 {
     foreach (var item in map.items)
     {
         SceneIndex sceneIndex = item.sceneIndex;
         SceneData  scene      = save.scenes[(int)sceneIndex];
         string     check      = "\t[ ]";
         if (item.CheckWord(scene.GetChestWord(), scene.GetCollectableWord()))
         {
             check = "\t[x]";
         }
         check += " " + item.ToString();
         Console.WriteLine(check);
     }
 }
Exemplo n.º 2
0
        private static void PrintScene(string command)
        {
            string pos = command.Remove(0, "print ".Length);

            try
            {
                int       index = int.Parse(pos);
                SceneData scene = save.scenes[index];
                Console.WriteLine("\t" + scene.index.ToString());
                Console.WriteLine("\t " + scene.GetChestWord().ToString("X8"));
                Console.WriteLine("\t " + scene.GetCollectableWord().ToString("X8"));
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
            }
        }