Generate() 공개 메소드

public Generate ( VGArea mArea ) : void
mArea VGArea
리턴 void
예제 #1
0
파일: Form1.cs 프로젝트: SuperV1234/VeeGen
        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();
        }
예제 #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();
        }