public string PrintBSP(Grid2DInt map) { foreach (var r in rooms) { Grid2DPaint.Rect <int>(map, r, 0); } return(map.Print()); }
public void Init2D() { grid2D = new Grid2DInt(GridSize, GridSize, 0); dla2 = new DLA2D(); dla2.SetSeedPoint(grid2D, grid2D.Center); //Grid2DPaint.Line(grid2D, SrcPoint,DstPoint,LineWidth); text.text = grid2D.Print(); render.Draw(grid2D); }
public static string SelfTest() { Grid2DInt map = new Grid2DInt(64, 64, 255); if (map == null) { Debug.LogError("null map"); } Division(map, new RectInt(0, 0, 64, 64)); return(map.Print()); }