コード例 #1
0
        public void KantoPipelineTest()
        {
            Pipeline pocketWorldPipeline = PipelineUtility.CreateEmptyPipelineWithYamlGraph(FileUtilities.LoadFile("graph_pokemon_map.yaml"));

            pocketWorldPipeline.AddStep(SetupWfcStep());

            Graph pocketWorldGraph = pocketWorldPipeline.Execute();

            Console.WriteLine("--- Final Map: ---");
            Debugging.PrintGraph(pocketWorldGraph.Entities);
        }
コード例 #2
0
        public void PocketWorldPipelineTest()
        {
            Pipeline pocketWorldPipeline = PipelineUtility.CreateEmptyPipelineWithLuaGraph(_luaScript, _additionalImports);

            pocketWorldPipeline.AddStep(new AreaTilesStep("Zone Layer", "Area Layer"));
            pocketWorldPipeline.AddStep(new AreaTileConnectorStep("Zone Layer", "Area Layer"));
            pocketWorldPipeline.AddStep(SetupWfcStep());
            pocketWorldPipeline.AddStep(new ChildToParentPropagatorStep("Area Layer"));
            pocketWorldPipeline.AddStep(new GraphToGridLayoutStep("Area Layer"));

            Graph pocketWorldGraph = pocketWorldPipeline.Execute();

            Console.WriteLine("--- Final Map: ---");
            Debugging.PrintGraph(pocketWorldGraph.Entities);
            FileUtilities.WriteFile("PocketWorldGraph.dot", "./", DotGraphVisualizerStorage.SaveLayerGraph(pocketWorldGraph.GetLayer("Area Layer")));
        }