Exemplo n.º 1
0
 public void MergeFrom(StoreCategory other)
 {
     if (other == null)
     {
         return;
     }
     if (other.IconPath.Length != 0)
     {
         IconPath = other.IconPath;
     }
     if (other.Title.Length != 0)
     {
         Title = other.Title;
     }
     if (other.Header.Length != 0)
     {
         Header = other.Header;
     }
     if (other.headerColor_ != null)
     {
         if (headerColor_ == null)
         {
             HeaderColor = new global::WUProtos.Data.Color();
         }
         HeaderColor.MergeFrom(other.HeaderColor);
     }
     if (other.Background.Length != 0)
     {
         Background = other.Background;
     }
     if (other.backgroundColor_ != null)
     {
         if (backgroundColor_ == null)
         {
             BackgroundColor = new global::WUProtos.Data.Color();
         }
         BackgroundColor.MergeFrom(other.BackgroundColor);
     }
     storeSubcategories_.Add(other.storeSubcategories_);
     if (other.HeaderPrefab.Length != 0)
     {
         HeaderPrefab = other.HeaderPrefab;
     }
     if (other.itemColor_ != null)
     {
         if (itemColor_ == null)
         {
             ItemColor = new global::WUProtos.Data.Color();
         }
         ItemColor.MergeFrom(other.ItemColor);
     }
     if (other.Enabled != false)
     {
         Enabled = other.Enabled;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }