Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (uiTargetStartPos_ != null)
            {
                hash ^= UiTargetStartPos.GetHashCode();
            }
            if (UiTargetStartRadius != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(UiTargetStartRadius);
            }
            if (uiTargetEndPos_ != null)
            {
                hash ^= UiTargetEndPos.GetHashCode();
            }
            if (UiTargetEndRadius != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(UiTargetEndRadius);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
 public void MergeFrom(ClientProtegoPattern other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.uiTargetStartPos_ != null)
     {
         if (uiTargetStartPos_ == null)
         {
             UiTargetStartPos = new global::WUProtos.Data.Client.ClientProtegoPattern.Types.Vector2();
         }
         UiTargetStartPos.MergeFrom(other.UiTargetStartPos);
     }
     if (other.UiTargetStartRadius != 0F)
     {
         UiTargetStartRadius = other.UiTargetStartRadius;
     }
     if (other.uiTargetEndPos_ != null)
     {
         if (uiTargetEndPos_ == null)
         {
             UiTargetEndPos = new global::WUProtos.Data.Client.ClientProtegoPattern.Types.Vector2();
         }
         UiTargetEndPos.MergeFrom(other.UiTargetEndPos);
     }
     if (other.UiTargetEndRadius != 0F)
     {
         UiTargetEndRadius = other.UiTargetEndRadius;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }