private void Road(int x, int y, int x2, int y2) { AreaGen area = new AreaGen(); area.LineGen(x2 - x, y2 - y, 1, 1, 1, 0, 5); for (int i = 0; i < area.Width; i++) { for (int j = 0; j < area.Height; j++) { switch (area.GetTileType(i, j)) { case AreaTileType.Depth: break; case AreaTileType.Ground: SetGround(x - area.Center.X + i, y - area.Center.Y + j, GroundTileType.Street); break; case AreaTileType.Wall: break; default: break; } } } }