示例#1
0
 public bool Equals(EffectDice other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(base.Equals(other) && other.m_diceface == m_diceface && other.m_dicenum == m_dicenum);
 }
示例#2
0
        public override bool Equals(object obj)
        {
            bool result;

            if (!(obj is EffectDice))
            {
                result = false;
            }
            else
            {
                EffectDice effectDice = obj as EffectDice;
                result = (base.Equals(obj) && this.m_diceface == effectDice.m_diceface && this.m_dicenum == effectDice.m_dicenum);
            }
            return(result);
        }
示例#3
0
 public EffectDice(EffectDice copy)
     : this(copy.Id, copy.Value, copy.DiceNum, copy.DiceFace, copy)
 {
 }
示例#4
0
 public bool Equals(EffectDice other)
 {
     return(!object.ReferenceEquals(null, other) && (object.ReferenceEquals(this, other) || (base.Equals(other) && other.m_diceface == this.m_diceface && other.m_dicenum == this.m_dicenum)));
 }