Пример #1
0
 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);
 }
Пример #2
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);
 }