Ejemplo n.º 1
0
 public bool Equals(PBEquipEntity other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (EntityId != other.EntityId)
     {
         return(false);
     }
     if (ConfId != other.ConfId)
     {
         return(false);
     }
     if (Level != other.Level)
     {
         return(false);
     }
     if (!Attts.Equals(other.Attts))
     {
         return(false);
     }
     if (JinglianLevel != other.JinglianLevel)
     {
         return(false);
     }
     if (JinglianExp != other.JinglianExp)
     {
         return(false);
     }
     if (StarLevel != other.StarLevel)
     {
         return(false);
     }
     if (StarExp != other.StarExp)
     {
         return(false);
     }
     if (StarBless != other.StarBless)
     {
         return(false);
     }
     if (GoldLevel != other.GoldLevel)
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (EntityId != 0L)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (ConfId != 0)
            {
                hash ^= ConfId.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            hash ^= Attts.GetHashCode();
            if (JinglianLevel != 0)
            {
                hash ^= JinglianLevel.GetHashCode();
            }
            if (JinglianExp != 0)
            {
                hash ^= JinglianExp.GetHashCode();
            }
            if (StarLevel != 0)
            {
                hash ^= StarLevel.GetHashCode();
            }
            if (StarExp != 0)
            {
                hash ^= StarExp.GetHashCode();
            }
            if (StarBless != 0)
            {
                hash ^= StarBless.GetHashCode();
            }
            if (GoldLevel != 0)
            {
                hash ^= GoldLevel.GetHashCode();
            }
            return(hash);
        }