BSP란Binary SPac Partitioning 즉 전체맵을 양분하는 메서드를 큐를 활용하여 재귀를 통해 MaxSize 이하 MinSize이상의 직사각형으로 나누는작업이다 public class Leaf{ public RectInt rect; // 현재 영역 public Leaf left, right; // 분할된 자식 public RectInt? room; // 실제 방이 생성된 영역 (Optional) public Leaf(RectInt rect) { this.rect = rect; } public bool Split(int minSize, int maxSize) { if (left != null || right != null) ..