private void SetFloorAttributesFromRooms()
 {
     foreach (var room in rooms)
     {
         SetAttributeRect(FloorAttribute.Room(room), room.rect);
     }
 }
 private void SetAttributeRect(FloorAttribute attr, int left, int right, int top, int bottom)
 {
     for (int y = top; y < bottom; y++)
     {
         for (int x = left; x < right; x++)
         {
             attrs[y, x] = attr;
         }
     }
 }
 private void SetAttributeRect(FloorAttribute attr, RectInt rect)
 {
     SetAttributeRect(attr, rect.xMin, rect.xMax, rect.yMin, rect.yMax);
 }