Exemple #1
0
        private void Button5Click(object sender, EventArgs e)
        {
            VGArea currentArea = new VGArea(World,
                                            Convert.ToInt32(textBox21.Text), Convert.ToInt32(textBox22.Text),
                                            Convert.ToInt32(textBox23.Text), Convert.ToInt32(textBox24.Text));

            VGGOutliner outliner = new VGGOutliner();

            outliner.Generate(currentArea);

            richTextBox1.Text = World.WorldArea.ToString();
        }
Exemple #2
0
        private void Button6Click(object sender, EventArgs e)
        {
            VGArea currentArea = new VGArea(World,
                                            Convert.ToInt32(textBox21.Text), Convert.ToInt32(textBox22.Text),
                                            Convert.ToInt32(textBox23.Text), Convert.ToInt32(textBox24.Text));

            VGGCave       cave     = new VGGCave(mIterations: 3, mInitialSolidPercent: 75);
            VGGBSPDungeon bsp      = new VGGBSPDungeon(mSplits: 9, mCarveOffset: 1);
            VGGOutliner   outliner = new VGGOutliner();

            cave.Generate(currentArea);
            bsp.Generate(currentArea);
            outliner.Generate(currentArea);

            richTextBox1.Text = World.WorldArea.ToString();
        }