private void Button3Click(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)); VGGBSPDungeon bsp = new VGGBSPDungeon(4, 3, 1, Convert.ToInt32(textBox8.Text), Convert.ToInt32(textBox11.Text), Convert.ToInt32(textBox9.Text), checkBox1.Checked, checkBox4.Checked, Convert.ToInt32(textBox19.Text), Convert.ToInt32(textBox20.Text), checkBox5.Checked); bsp.Generate(currentArea); richTextBox1.Text = World.WorldArea.ToString(); }
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(); }