Beispiel #1
0
 public bool Equals(ChamberTemplate other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (Id != other.Id)
     {
         return(false);
     }
     if (!object.Equals(UnlockRequirements, other.UnlockRequirements))
     {
         return(false);
     }
     if (!object.Equals(VisibilityRequirements, other.VisibilityRequirements))
     {
         return(false);
     }
     if (MinRunestoneLevel != other.MinRunestoneLevel)
     {
         return(false);
     }
     if (MaxRunestoneLevel != other.MaxRunestoneLevel)
     {
         return(false);
     }
     if (PlayerCap != other.PlayerCap)
     {
         return(false);
     }
     if (DurationMs != other.DurationMs)
     {
         return(false);
     }
     if (KnockoutTimeMs != other.KnockoutTimeMs)
     {
         return(false);
     }
     if (!PlayerCountMultipliers.Equals(other.PlayerCountMultipliers))
     {
         return(false);
     }
     if (BaseChamberRating != other.BaseChamberRating)
     {
         return(false);
     }
     return(Equals(_unknownFields, other._unknownFields));
 }
Beispiel #2
0
        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);
        }