public override int GetHashCode() { int code = 23; code = code * 31 + SourceIndex.GetHashCode(); code = code * 31 + TargetIndex.GetHashCode(); return(code); }
public override int GetHashCode() { int hash = 1; if (Type != 0) { hash ^= Type.GetHashCode(); } if (ActionStartMs != 0L) { hash ^= ActionStartMs.GetHashCode(); } if (DurationMs != 0) { hash ^= DurationMs.GetHashCode(); } if (EnergyDelta != 0) { hash ^= EnergyDelta.GetHashCode(); } if (AttackerIndex != 0) { hash ^= AttackerIndex.GetHashCode(); } if (TargetIndex != 0) { hash ^= TargetIndex.GetHashCode(); } if (ActivePokemonId != 0UL) { hash ^= ActivePokemonId.GetHashCode(); } if (playerJoined_ != null) { hash ^= PlayerJoined.GetHashCode(); } if (battleResults_ != null) { hash ^= BattleResults.GetHashCode(); } if (DamageWindowsStartTimestampMs != 0L) { hash ^= DamageWindowsStartTimestampMs.GetHashCode(); } if (DamageWindowsEndTimestampMs != 0L) { hash ^= DamageWindowsEndTimestampMs.GetHashCode(); } if (playerLeft_ != null) { hash ^= PlayerLeft.GetHashCode(); } if (TargetPokemonId != 0UL) { hash ^= TargetPokemonId.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 17; hash = hash * 31 + Level.GetHashCode(); hash = hash * 31 + On.GetHashCode(); hash = hash * 31 + TargetType.GetHashCode(); hash = hash * 31 + TargetIndex.GetHashCode(); return(hash); }