public override int GetHashCode() { int hash = 1; if (IndividualDamagePokeballs != 0) { hash ^= IndividualDamagePokeballs.GetHashCode(); } if (TeamDamagePokeballs != 0) { hash ^= TeamDamagePokeballs.GetHashCode(); } if (GymOwnershipPokeballs != 0) { hash ^= GymOwnershipPokeballs.GetHashCode(); } if (BasePokeballs != 0) { hash ^= BasePokeballs.GetHashCode(); } if (BluePercentage != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BluePercentage); } if (RedPercentage != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RedPercentage); } if (YellowPercentage != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(YellowPercentage); } if (BonusItemMultiplier != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(BonusItemMultiplier); } if (HighestFriendshipMilestone != 0) { hash ^= HighestFriendshipMilestone.GetHashCode(); } if (HighestFriendshipPokeballs != 0) { hash ^= HighestFriendshipPokeballs.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (activePokemon_ != null) { hash ^= ActivePokemon.GetHashCode(); } if (trainerPublicProfile_ != null) { hash ^= TrainerPublicProfile.GetHashCode(); } hash ^= reversePokemon_.GetHashCode(); hash ^= defeatedPokemon_.GetHashCode(); hash ^= lobbyPokemon_.GetHashCode(); if (DamageDealt != 0) { hash ^= DamageDealt.GetHashCode(); } if (SuperEffectiveChargeMove != false) { hash ^= SuperEffectiveChargeMove.GetHashCode(); } if (WeatherBoosted != false) { hash ^= WeatherBoosted.GetHashCode(); } if (HighestFriendshipMilestone != 0) { hash ^= HighestFriendshipMilestone.GetHashCode(); } hash ^= friendCodename_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }