Пример #1
0
        private void GetSeedSelection(object sender, EventArgs e)
        {
            SeedSelection dlg = new SeedSelection();

            dlg.Seed = Settings.Seed;
            if (DialogResult.OK == dlg.ShowDialog())
            {
                Universe      = new UniverseHandler(Settings.UniverseHeight, Settings.UniverseWidth);
                Settings.Seed = dlg.Seed;
                Universe.GenerateWorldSeed(dlg.Seed, Settings.torofinite);
            }
            graphicsPanel1.Invalidate();
        }
Пример #2
0
 private void _ReUseSeed_Click(object sender, EventArgs e)
 {
     Universe.GenerateWorldSeed(Settings.Seed, Settings.torofinite);
     graphicsPanel1.Invalidate();
 }