Ejemplo n.º 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            DungeonGraph graph = new DungeonGraph(8, 8, 8);
            int          seed  = new Random().Next();

            graph.Generate(seed);
            //graph.Generate(1045790396);

            mVisual = new DungeonGraphVisual(graph);

            canvas.Children.Add(mVisual.Viewport);
            mVisual.Viewport.Height = canvas.RenderSize.Height;
            mVisual.Viewport.Width  = canvas.RenderSize.Width;
        }
Ejemplo n.º 2
0
 public DungeonGraphVisual(DungeonGraph graph)
 {
     DungeonGraph = graph;
     Generate();
 }