Beispiel #1
0
        public static void Main(string[] args)
        {
            ILogManager logManager;
            world = SystemBuilder
                .Create<GraphCoordinate, EmptyData, EdgeData>()
                .WithDefaultLog(out logManager)
                .WithTopology(new GraphTopology(null))
                .WithGraphMap()
                .WithEmptyNodeData()
                .WithEmptyEdgeData()
                .Build();

            runner = new Runner<GraphCoordinate, EmptyData, EdgeData>(world);
            logger = logManager.Journal;
        }
 protected void InitializeWorld(Coordinates2D min, Coordinates2D max)
 {
     ILogManager logManager;
     world = SystemBuilder
         .Create<Coordinates2D, EmptyData, EmptyData>()
         .WithDefaultLog(out logManager)
         .WithTopology(new FourConnectedSurfaceTopology(min, max))
         .WithSurfaceMap()
         .WithEmptyNodeData()
         .WithEmptyEdgeData()
         .Build();
     journal = logManager.Journal;
     world = runner.World;
     runner = new Runner<Coordinates2D, EmptyData, EmptyData>(world);
 }