Beispiel #1
0
 public void MergeFrom(Buff other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.duration_ != null)
     {
         if (duration_ == null)
         {
             Duration = new global::WUProtos.Data.Buff.BuffDuration();
         }
         Duration.MergeFrom(other.Duration);
     }
     if (other.exclusivityGroup_ != null)
     {
         if (exclusivityGroup_ == null)
         {
             ExclusivityGroup = new global::WUProtos.Data.Buff.BuffExclusivityGroup();
         }
         ExclusivityGroup.MergeFrom(other.ExclusivityGroup);
     }
     if (other.BuffType != 0)
     {
         BuffType = other.BuffType;
     }
     modifiers_.Add(other.modifiers_);
     conditionalModifiers_.Add(other.conditionalModifiers_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (duration_ != null)
            {
                hash ^= Duration.GetHashCode();
            }
            if (exclusivityGroup_ != null)
            {
                hash ^= ExclusivityGroup.GetHashCode();
            }
            if (BuffType != 0)
            {
                hash ^= BuffType.GetHashCode();
            }
            hash ^= Modifiers.GetHashCode();
            hash ^= conditionalModifiers_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ExclusivityGroup.Length != 0)
            {
                hash ^= ExclusivityGroup.GetHashCode();
            }
            if (ExclusivityPriority != 0)
            {
                hash ^= ExclusivityPriority.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }