Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = CardsFixedAtLevel?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (ComputerDifficulty != null ? ComputerDifficulty.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DisplayInfo != null ? DisplayInfo.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Hide.GetHashCode();
         hashCode = (hashCode * 397) ^ (Id?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Image != null ? Image.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsNew.GetHashCode();
         hashCode = (hashCode * 397) ^ IsQuickmatchPlaylist.GetHashCode();
         hashCode = (hashCode * 397) ^ IsTeamGamePlaylist.GetHashCode();
         hashCode = (hashCode * 397) ^ LonelyPartyUsesWildcard.GetHashCode();
         hashCode = (hashCode * 397) ^ MatchTicketTimeoutDurationSeconds;
         hashCode = (hashCode * 397) ^ MaxPartySize;
         hashCode = (hashCode * 397) ^ MaxPlayerCount;
         hashCode = (hashCode * 397) ^ MinPartySize;
         hashCode = (hashCode * 397) ^ MinPlayerCount;
         hashCode = (hashCode * 397) ^ (MpsdHopperName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (MpsdHopperStatName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PlaylistEntries?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (StatsClassification?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (TargetPlatform?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ThumbnailImage != null ? ThumbnailImage.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ UsesBanRules.GetHashCode();
         hashCode = (hashCode * 397) ^ Voting.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Version.Length != 0)
            {
                hash ^= Version.GetHashCode();
            }
            hash ^= authors_.GetHashCode();
            if (Copyrights.Length != 0)
            {
                hash ^= Copyrights.GetHashCode();
            }
            if (ContactInformation.Length != 0)
            {
                hash ^= ContactInformation.GetHashCode();
            }
            if (Reference.Length != 0)
            {
                hash ^= Reference.GetHashCode();
            }
            if (thumbnailImage_ != null)
            {
                hash ^= ThumbnailImage.GetHashCode();
            }
            if (AvatarPermission != global::VrmProtobuf.Meta.Types.AvatarPermissionType.OnlyAuthor)
            {
                hash ^= AvatarPermission.GetHashCode();
            }
            if (ViolentUsage != false)
            {
                hash ^= ViolentUsage.GetHashCode();
            }
            if (SexualUsage != false)
            {
                hash ^= SexualUsage.GetHashCode();
            }
            if (GameUsage != false)
            {
                hash ^= GameUsage.GetHashCode();
            }
            if (CommercialUsage != global::VrmProtobuf.Meta.Types.CommercialUsageType.PersonalNonCommercialNonProfit)
            {
                hash ^= CommercialUsage.GetHashCode();
            }
            if (PoliticalOrReligiousUsage != false)
            {
                hash ^= PoliticalOrReligiousUsage.GetHashCode();
            }
            if (OtherPermissionUrl.Length != 0)
            {
                hash ^= OtherPermissionUrl.GetHashCode();
            }
            if (CreditNotation != global::VrmProtobuf.Meta.Types.CreditNotationType.Required)
            {
                hash ^= CreditNotation.GetHashCode();
            }
            if (AllowRedistribution != false)
            {
                hash ^= AllowRedistribution.GetHashCode();
            }
            if (Modify != global::VrmProtobuf.Meta.Types.ModifyType.Prohibited)
            {
                hash ^= Modify.GetHashCode();
            }
            if (OtherLicenseUrl.Length != 0)
            {
                hash ^= OtherLicenseUrl.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }