public void MergeFrom(ChamberTemplate other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.unlockRequirements_ != null) { if (unlockRequirements_ == null) { UnlockRequirements = new global::WUProtos.Data.Requirements(); } UnlockRequirements.MergeFrom(other.UnlockRequirements); } if (other.visibilityRequirements_ != null) { if (visibilityRequirements_ == null) { VisibilityRequirements = new global::WUProtos.Data.Requirements(); } VisibilityRequirements.MergeFrom(other.VisibilityRequirements); } if (other.MinRunestoneLevel != 0) { MinRunestoneLevel = other.MinRunestoneLevel; } if (other.MaxRunestoneLevel != 0) { MaxRunestoneLevel = other.MaxRunestoneLevel; } if (other.PlayerCap != 0) { PlayerCap = other.PlayerCap; } if (other.DurationMs != 0L) { DurationMs = other.DurationMs; } if (other.KnockoutTimeMs != 0L) { KnockoutTimeMs = other.KnockoutTimeMs; } playerCountMultipliers_.Add(other.playerCountMultipliers_); if (other.BaseChamberRating != 0) { BaseChamberRating = other.BaseChamberRating; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (unlockRequirements_ != null) { hash ^= UnlockRequirements.GetHashCode(); } if (visibilityRequirements_ != null) { hash ^= VisibilityRequirements.GetHashCode(); } if (MinRunestoneLevel != 0) { hash ^= MinRunestoneLevel.GetHashCode(); } if (MaxRunestoneLevel != 0) { hash ^= MaxRunestoneLevel.GetHashCode(); } if (PlayerCap != 0) { hash ^= PlayerCap.GetHashCode(); } if (DurationMs != 0L) { hash ^= DurationMs.GetHashCode(); } if (KnockoutTimeMs != 0L) { hash ^= KnockoutTimeMs.GetHashCode(); } hash ^= PlayerCountMultipliers.GetHashCode(); if (BaseChamberRating != 0) { hash ^= BaseChamberRating.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }