Exemplo 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);
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ComputerDifficulty.GetHashCode();
         hashCode = (hashCode * 397) ^ ComputerPlayerId.GetHashCode();
         hashCode = (hashCode * 397) ^ (HumanPlayerId != null ? HumanPlayerId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ LeaderId;
         hashCode = (hashCode * 397) ^ PlayerIndex;
         hashCode = (hashCode * 397) ^ (int)PlayerType;
         hashCode = (hashCode * 397) ^ TeamId;
         return(hashCode);
     }
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = CardStats?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ ComputerDifficulty.GetHashCode();
         hashCode = (hashCode * 397) ^ ComputerPlayerId.GetHashCode();
         hashCode = (hashCode * 397) ^ (ExperienceProgress != null ? ExperienceProgress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HumanPlayerId != null ? HumanPlayerId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsHuman.GetHashCode();
         hashCode = (hashCode * 397) ^ LeaderId;
         hashCode = (hashCode * 397) ^ (LeaderPowerStats?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ PlayerCompletedMatch.GetHashCode();
         hashCode = (hashCode * 397) ^ PlayerMatchOutcome.GetHashCode();
         hashCode = (hashCode * 397) ^ (PointStats?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (RatingProgress != null ? RatingProgress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ TeamId;
         hashCode = (hashCode * 397) ^ TeamPlayerIndex;
         hashCode = (hashCode * 397) ^ TimeInMatch.GetHashCode();
         hashCode = (hashCode * 397) ^ (UnitStats?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (WaveStats?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }