Exemple #1
0
 public BSPDungeon(BSPSettings bspSettings, RoomSettings roomSettings, ConnectionSettings connectionSettings)
 {
     this.bspSettings        = bspSettings;
     this.roomSettings       = roomSettings;
     this.connectionSettings = connectionSettings;
 }
Exemple #2
0
        }                                          //always Vector2Int.up or Vector2Int.right (or null)

        public Partition(Vector2Int start, Vector2Int end, int depth, BSPSettings bspSettings, RoomSettings roomSettings, ConnectionSettings connectionSettings)
        {
            this.start              = start;
            this.end                = end;
            this.depth              = depth;
            this.bspSettings        = bspSettings;
            this.roomSettings       = roomSettings;
            this.connectionSettings = connectionSettings;

            connection = new List <Shape>();

            isFinal = false;
        }