What is an "attached" room or structure?

Rooms will be considered to be attached to and part of a dwelling unit if they are connected by a common wall, or 1) by a common roof, covered walkway, carport or garage, and 2) the two nearest exterior walls are not separated by a distance of more than twenty feet (20').