Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var Playthrough = PlaythroughGenerator.GeneratePlaythrough(CheckerInstance, listBox2.SelectedIndex);

            if (Playthrough.GameClearItem == null)
            {
                MessageBox.Show("The selected Game Clear Item can not be obtained in this seed. A playthrough can not be generated.");
                return;
            }
            PlaythroughGenerator.DisplayPlaythrough(Playthrough.ImportantPlaythrough, Playthrough.PlaythroughInstance, Playthrough.GameClearItem.Check.ID, CheckerInstance.Logic);
        }
Пример #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            if (!(listBox1.SelectedItem is LogicObjects.ListItem))
            {
                return;
            }
            var Location    = (listBox1.SelectedItem as LogicObjects.ListItem).LocationEntry;
            var Item        = (listBox1.SelectedItem as LogicObjects.ListItem).ItemEntry;
            var Playthrough = PlaythroughGenerator.GeneratePlaythrough(CheckerInstance, Location.ID, true);

            var LocationInPlayThrough = Playthrough.Playthrough.Find(x => x.Check.ID == Location.ID);

            if (LocationInPlayThrough == null)
            {
                MessageBox.Show($"{Item.ItemName ?? Item.DictionaryName} Can not be obtained in this seed");
                return;
            }
            MessageBox.Show($"{Item.ItemName ?? Item.DictionaryName} Can be obtained in Sphere {LocationInPlayThrough.SphereNumber}");
        }