public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (UnlockedDescription.Length != 0)
            {
                hash ^= UnlockedDescription.GetHashCode();
            }
            if (Disabled != false)
            {
                hash ^= Disabled.GetHashCode();
            }
            if (ShowBadge != false)
            {
                hash ^= ShowBadge.GetHashCode();
            }
            if (visibilityConditions_ != null)
            {
                hash ^= VisibilityConditions.GetHashCode();
            }
            if (unlockConditions_ != null)
            {
                hash ^= UnlockConditions.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public void MergeFrom(ClientTitle other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.UnlockedDescription.Length != 0)
     {
         UnlockedDescription = other.UnlockedDescription;
     }
     if (other.Disabled != false)
     {
         Disabled = other.Disabled;
     }
     if (other.ShowBadge != false)
     {
         ShowBadge = other.ShowBadge;
     }
     if (other.visibilityConditions_ != null)
     {
         if (visibilityConditions_ == null)
         {
             VisibilityConditions = new global::WUProtos.Data.Requirements();
         }
         VisibilityConditions.MergeFrom(other.VisibilityConditions);
     }
     if (other.unlockConditions_ != null)
     {
         if (unlockConditions_ == null)
         {
             UnlockConditions = new global::WUProtos.Data.Requirements();
         }
         UnlockConditions.MergeFrom(other.UnlockConditions);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #3
0
 public void MergeFrom(ClientSelfieAvatarAsset other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     unlockConditions_.Add(other.unlockConditions_);
     if (other.AssetScriptName.Length != 0)
     {
         AssetScriptName = other.AssetScriptName;
     }
     if (other.Icon.Length != 0)
     {
         Icon = other.Icon;
     }
     if (other.AssetType != 0)
     {
         AssetType = other.AssetType;
     }
     if (other.LensType != 0)
     {
         LensType = other.LensType;
     }
     if (other.Visible != false)
     {
         Visible = other.Visible;
     }
     if (other.MediaSupportedType != 0)
     {
         MediaSupportedType = other.MediaSupportedType;
     }
     if (other.Animated != false)
     {
         Animated = other.Animated;
     }
     if (other.StorePackId.Length != 0)
     {
         StorePackId = other.StorePackId;
     }
     if (other.OrderId != 0)
     {
         OrderId = other.OrderId;
     }
     if (other.IsFullBodyLens != false)
     {
         IsFullBodyLens = other.IsFullBodyLens;
     }
     if (other.IsEmptyAsset != false)
     {
         IsEmptyAsset = other.IsEmptyAsset;
     }
     if (other.ShowBadge != false)
     {
         ShowBadge = other.ShowBadge;
     }
     if (other.visibilityConditions_ != null)
     {
         if (visibilityConditions_ == null)
         {
             VisibilityConditions = new global::WUProtos.Data.Requirements();
         }
         VisibilityConditions.MergeFrom(other.VisibilityConditions);
     }
     if (other.StockAssetName.Length != 0)
     {
         StockAssetName = other.StockAssetName;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            hash ^= unlockConditions_.GetHashCode();
            if (AssetScriptName.Length != 0)
            {
                hash ^= AssetScriptName.GetHashCode();
            }
            if (Icon.Length != 0)
            {
                hash ^= Icon.GetHashCode();
            }
            if (AssetType != 0)
            {
                hash ^= AssetType.GetHashCode();
            }
            if (LensType != 0)
            {
                hash ^= LensType.GetHashCode();
            }
            if (Visible != false)
            {
                hash ^= Visible.GetHashCode();
            }
            if (MediaSupportedType != 0)
            {
                hash ^= MediaSupportedType.GetHashCode();
            }
            if (Animated != false)
            {
                hash ^= Animated.GetHashCode();
            }
            if (StorePackId.Length != 0)
            {
                hash ^= StorePackId.GetHashCode();
            }
            if (OrderId != 0)
            {
                hash ^= OrderId.GetHashCode();
            }
            if (IsFullBodyLens != false)
            {
                hash ^= IsFullBodyLens.GetHashCode();
            }
            if (IsEmptyAsset != false)
            {
                hash ^= IsEmptyAsset.GetHashCode();
            }
            if (ShowBadge != false)
            {
                hash ^= ShowBadge.GetHashCode();
            }
            if (visibilityConditions_ != null)
            {
                hash ^= VisibilityConditions.GetHashCode();
            }
            if (StockAssetName.Length != 0)
            {
                hash ^= StockAssetName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }