Пример #1
0
 public void MergeFrom(ClientCollectionFamily other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.Icon.Length != 0)
     {
         Icon = other.Icon;
     }
     if (other.LandmarkTexture.Length != 0)
     {
         LandmarkTexture = other.LandmarkTexture;
     }
     if (other.LandmarkPrefab.Length != 0)
     {
         LandmarkPrefab = other.LandmarkPrefab;
     }
     if (other.LandmarkDescription.Length != 0)
     {
         LandmarkDescription = other.LandmarkDescription;
     }
     if (other.ShowInUi != false)
     {
         ShowInUi = other.ShowInUi;
     }
     if (other.LandmarkIcon.Length != 0)
     {
         LandmarkIcon = other.LandmarkIcon;
     }
     if (other.color_ != null)
     {
         if (color_ == null)
         {
             Color = new global::WUProtos.Data.Color();
         }
         Color.MergeFrom(other.Color);
     }
     if (other.colorHighlight_ != null)
     {
         if (colorHighlight_ == null)
         {
             ColorHighlight = new global::WUProtos.Data.Color();
         }
         ColorHighlight.MergeFrom(other.ColorHighlight);
     }
     if (other.TracePrefab.Length != 0)
     {
         TracePrefab = other.TracePrefab;
     }
     borderImages_.Add(other.borderImages_);
     if (other.FamilyRunestoneIcon.Length != 0)
     {
         FamilyRunestoneIcon = other.FamilyRunestoneIcon;
     }
     if (other.sound_ != null)
     {
         if (sound_ == null)
         {
             Sound = new global::WUProtos.Data.SoundConfig();
         }
         Sound.MergeFrom(other.Sound);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (Icon.Length != 0)
            {
                hash ^= Icon.GetHashCode();
            }
            if (LandmarkTexture.Length != 0)
            {
                hash ^= LandmarkTexture.GetHashCode();
            }
            if (LandmarkPrefab.Length != 0)
            {
                hash ^= LandmarkPrefab.GetHashCode();
            }
            if (LandmarkDescription.Length != 0)
            {
                hash ^= LandmarkDescription.GetHashCode();
            }
            if (ShowInUi != false)
            {
                hash ^= ShowInUi.GetHashCode();
            }
            if (LandmarkIcon.Length != 0)
            {
                hash ^= LandmarkIcon.GetHashCode();
            }
            if (color_ != null)
            {
                hash ^= Color.GetHashCode();
            }
            if (colorHighlight_ != null)
            {
                hash ^= ColorHighlight.GetHashCode();
            }
            if (TracePrefab.Length != 0)
            {
                hash ^= TracePrefab.GetHashCode();
            }
            hash ^= borderImages_.GetHashCode();
            if (FamilyRunestoneIcon.Length != 0)
            {
                hash ^= FamilyRunestoneIcon.GetHashCode();
            }
            if (sound_ != null)
            {
                hash ^= Sound.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }