public override int GetHashCode() { unchecked { var hashCode = TimeRemaining.GetHashCode(); hashCode = (hashCode * 397) ^ (int)State; hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0); hashCode = (hashCode * 397) ^ PercentComplete.GetHashCode(); return(hashCode); } }
///<inheritdoc/> public override int GetHashCode() { int hash = 17; // Overflow is fine, just wrap unchecked { hash = (hash * 29) + PercentComplete.GetHashCode(); hash = (hash * 29) + Damage.GetHashCode(); hash = (hash * 29) + Predistributed.GetHashCode(); hash = (hash * 29) + State.GetHashCode(); hash = (hash * 29) + Smoking.GetHashCode(); hash = (hash * 29) + Flaming.GetHashCode(); } return(hash); }