public override int GetHashCode() { int hash = 1; if (LevelId != 0) { hash ^= LevelId.GetHashCode(); } if (BeforeLevelId != 0) { hash ^= BeforeLevelId.GetHashCode(); } if (AfterLevelId != 0) { hash ^= AfterLevelId.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } hash ^= abilities_.GetHashCode(); hash ^= ItemMax.GetHashCode(); hash ^= FansMax.GetHashCode(); if (Max != 0) { hash ^= Max.GetHashCode(); } hash ^= eventId_.GetHashCode(); hash ^= StarSource.GetHashCode(); hash ^= awards_.GetHashCode(); if (GameType != 0) { hash ^= GameType.GetHashCode(); } if (LevelInfoId != 0) { hash ^= LevelInfoId.GetHashCode(); } if (ChapterGroup != 0) { hash ^= ChapterGroup.GetHashCode(); } if (LevelMark.Length != 0) { hash ^= LevelMark.GetHashCode(); } hash ^= LevelPlot.GetHashCode(); hash ^= levelCoordinate_.GetHashCode(); hash ^= levelBackdrop_.GetHashCode(); if (levelExtra_ != null) { hash ^= LevelExtra.GetHashCode(); } return(hash); }
public bool Equals(LevelPB other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(other, this)) { return(true); } if (LevelId != other.LevelId) { return(false); } if (BeforeLevelId != other.BeforeLevelId) { return(false); } if (AfterLevelId != other.AfterLevelId) { return(false); } if (Type != other.Type) { return(false); } if (!abilities_.Equals(other.abilities_)) { return(false); } if (!ItemMax.Equals(other.ItemMax)) { return(false); } if (!FansMax.Equals(other.FansMax)) { return(false); } if (Max != other.Max) { return(false); } if (!eventId_.Equals(other.eventId_)) { return(false); } if (!StarSource.Equals(other.StarSource)) { return(false); } if (!awards_.Equals(other.awards_)) { return(false); } if (GameType != other.GameType) { return(false); } if (LevelInfoId != other.LevelInfoId) { return(false); } if (ChapterGroup != other.ChapterGroup) { return(false); } if (LevelMark != other.LevelMark) { return(false); } if (!LevelPlot.Equals(other.LevelPlot)) { return(false); } if (!levelCoordinate_.Equals(other.levelCoordinate_)) { return(false); } if (!levelBackdrop_.Equals(other.levelBackdrop_)) { return(false); } if (!object.Equals(LevelExtra, other.LevelExtra)) { return(false); } return(true); }