public Room(IntRange widthRange, IntRange heightRange) { this.size = new IntPair(widthRange.Random, heightRange.Random); }
public Corridor(IntRange lengthRange, Room entranceRoom, Room exitRoom, Direction direction) { this.length = lengthRange.Random; this.entranceRoom = entranceRoom; this.exitRoom = exitRoom; this.direction = direction; }