Ejemplo n.º 1
0
 public override bool Equals(object other)
 {
     if (other == null)
     {
         return(false);
     }
     else if (other is ScreenPoint)
     {
         return(Equals((ScreenPoint)other));
     }
     else if (other is Vector2)
     {
         return(Relative.Equals((Vector2)other));
     }
     else if (other is Point)
     {
         return(Absolute.Equals((Point)other));
     }
     else if ((other = other as string) != null)
     {
         return(ToString().Equals(other));
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
        public virtual bool Equals(SkillMod mod)
        {
            if (ReferenceEquals(null, mod))
            {
                return(false);
            }

            return(Value.Equals(mod.Value) && Relative.Equals(mod.Relative) && Skill == mod.Skill);
        }
Ejemplo n.º 3
0
        public virtual bool Equals(SkillBuffInfo info)
        {
            if (ReferenceEquals(null, info))
            {
                return(false);
            }

            if (ReferenceEquals(this, info))
            {
                return(true);
            }

            return(Value.Equals(info.Value) && Relative.Equals(info.Relative) && Skill == info.Skill);
        }
Ejemplo n.º 4
0
        /// <inheritdoc />
        public bool Equals([AllowNull] Delta other)
        {
            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Reference == other.Reference ||
                     Reference != null &&
                     Reference.Equals(other.Reference)
                     ) &&
                 (
                     Position == other.Position ||
                     Position != null &&
                     Position.Equals(other.Position)
                 ) &&
                 (
                     Relative == other.Relative ||
                     Relative != null &&
                     Relative.Equals(other.Relative)
                 ) &&
                 (
                     ValueFormat == other.ValueFormat ||
                     ValueFormat != null &&
                     ValueFormat.Equals(other.ValueFormat)
                 ) &&
                 (
                     Increasing == other.Increasing ||
                     Increasing != null &&
                     Increasing.Equals(other.Increasing)
                 ) &&
                 (
                     Decreasing == other.Decreasing ||
                     Decreasing != null &&
                     Decreasing.Equals(other.Decreasing)
                 ) &&
                 (
                     Font == other.Font ||
                     Font != null &&
                     Font.Equals(other.Font)
                 ));
        }