상속: VGGenerator
예제 #1
0
파일: Form1.cs 프로젝트: SuperV1234/VeeGen
        private void Button2Click(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));

            int coverage = Convert.ToInt32(textBox7.Text);
            int fc = Convert.ToInt32(textBox4.Text);
            int wc = Convert.ToInt32(textBox5.Text);
            int iterations = Convert.ToInt32(textBox6.Text);

            VGGCave cave = new VGGCave(0, 1, coverage, fc, wc, iterations);
            cave.Generate(currentArea);

            richTextBox1.Text = World.WorldArea.ToString();
        }
예제 #2
0
파일: Form1.cs 프로젝트: SuperV1234/VeeGen
        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();
        }