public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (contents_ != null) { hash ^= Contents.GetHashCode(); } if (cost_ != null) { hash ^= Cost.GetHashCode(); } if (IapId.Length != 0) { hash ^= IapId.GetHashCode(); } if (skuData_ != null) { hash ^= SkuData.GetHashCode(); } if (requirements_ != null) { hash ^= Requirements.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(StorePack other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.contents_ != null) { if (contents_ == null) { Contents = new global::WUProtos.Data.Loot.LootCollection(); } Contents.MergeFrom(other.Contents); } if (other.cost_ != null) { if (cost_ == null) { Cost = new global::WUProtos.Data.Loot.LootCollection(); } Cost.MergeFrom(other.Cost); } if (other.IapId.Length != 0) { IapId = other.IapId; } if (other.skuData_ != null) { if (skuData_ == null) { SkuData = new global::WUProtos.Data.SkuData(); } SkuData.MergeFrom(other.SkuData); } if (other.requirements_ != null) { if (requirements_ == null) { Requirements = new global::WUProtos.Data.Requirements(); } Requirements.MergeFrom(other.Requirements); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }