public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (ItemId != 0) { hash ^= ItemId.GetHashCode(); } if (IncubatorType != 0) { hash ^= IncubatorType.GetHashCode(); } if (UsesRemaining != 0) { hash ^= UsesRemaining.GetHashCode(); } if (PokemonId != 0UL) { hash ^= PokemonId.GetHashCode(); } if (StartKmWalked != 0D) { hash ^= StartKmWalked.GetHashCode(); } if (TargetKmWalked != 0D) { hash ^= TargetKmWalked.GetHashCode(); } return(hash); }
/********* ** Public Methods *********/ /// <summary>Constructs an instance.</summary> /// <param name="incubatorType">The type of incubator the recipe will apply to.</param> /// <param name="inputId">The id of the input item.</param> /// <param name="chance">The chance this recipe will get picked compared to others that have the same <see cref="InputId"/>.</param> /// <param name="minutesTillDone">The number of minutes it takes for the incubator to finish.</param> /// <param name="internalAnimalName">The internal name of the animal that will get created.</param> public IncubatorRecipe(IncubatorType incubatorType, int inputId, float chance, int minutesTillDone, string internalAnimalName) { IncubatorType = incubatorType; InputId = inputId; Chance = chance; MinutesTillDone = minutesTillDone; InternalAnimalName = internalAnimalName; }
public override int GetHashCode() { int hash = 1; if (IncubatorType != 0) { hash ^= IncubatorType.GetHashCode(); } if (Uses != 0) { hash ^= Uses.GetHashCode(); } if (DistanceMultiplier != 0F) { hash ^= DistanceMultiplier.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (IncubatorType != 0) { hash ^= IncubatorType.GetHashCode(); } if (Uses != 0) { hash ^= Uses.GetHashCode(); } if (DistanceMultiplier != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DistanceMultiplier); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (ItemId != 0) { hash ^= ItemId.GetHashCode(); } if (IncubatorType != 0) { hash ^= IncubatorType.GetHashCode(); } if (UsesRemaining != 0) { hash ^= UsesRemaining.GetHashCode(); } if (PokemonId != 0UL) { hash ^= PokemonId.GetHashCode(); } if (StartKmWalked != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(StartKmWalked); } if (TargetKmWalked != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TargetKmWalked); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }