예제 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Hp != 0)
            {
                hash ^= Hp.GetHashCode();
            }
            if (Mp != 0)
            {
                hash ^= Mp.GetHashCode();
            }
            if (Attack != 0)
            {
                hash ^= Attack.GetHashCode();
            }
            if (Defend != 0)
            {
                hash ^= Defend.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (AccountId != 0UL)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (PlayerId != 0UL)
            {
                hash ^= PlayerId.GetHashCode();
            }
            if (Diamonds != 0)
            {
                hash ^= Diamonds.GetHashCode();
            }
            if (OldLevel != 0)
            {
                hash ^= OldLevel.GetHashCode();
            }
            if (OldExp != 0)
            {
                hash ^= OldExp.GetHashCode();
            }
            if (AddedExp != 0)
            {
                hash ^= AddedExp.GetHashCode();
            }
            if (Hp != 0)
            {
                hash ^= Hp.GetHashCode();
            }
            if (Mp != 0)
            {
                hash ^= Mp.GetHashCode();
            }
            if (Food != 0)
            {
                hash ^= Food.GetHashCode();
            }
            if (Gold != 0)
            {
                hash ^= Gold.GetHashCode();
            }
            hash ^= cards_.GetHashCode();
            hash ^= cardTemps_.GetHashCode();
            hash ^= items_.GetHashCode();
            hash ^= itemTemps_.GetHashCode();
            hash ^= buffs_.GetHashCode();
            hash ^= buffTemps_.GetHashCode();
            hash ^= equips_.GetHashCode();
            hash ^= equipTemps_.GetHashCode();
            return(hash);
        }
예제 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (AccountId != 0UL)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (PlayerId != 0UL)
            {
                hash ^= PlayerId.GetHashCode();
            }
            if (Reason != 0)
            {
                hash ^= Reason.GetHashCode();
            }
            if (Diamonds != 0)
            {
                hash ^= Diamonds.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Exp != 0)
            {
                hash ^= Exp.GetHashCode();
            }
            if (Hp != 0)
            {
                hash ^= Hp.GetHashCode();
            }
            if (Mp != 0)
            {
                hash ^= Mp.GetHashCode();
            }
            if (Food != 0)
            {
                hash ^= Food.GetHashCode();
            }
            if (Gold != 0)
            {
                hash ^= Gold.GetHashCode();
            }
            hash ^= cards_.GetHashCode();
            hash ^= items_.GetHashCode();
            hash ^= buffs_.GetHashCode();
            hash ^= equips_.GetHashCode();
            return(hash);
        }
예제 #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PlayerId != 0UL)
            {
                hash ^= PlayerId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (CharacterId != 0)
            {
                hash ^= CharacterId.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Exp != 0)
            {
                hash ^= Exp.GetHashCode();
            }
            if (Hp != 0)
            {
                hash ^= Hp.GetHashCode();
            }
            if (MaxHp != 0)
            {
                hash ^= MaxHp.GetHashCode();
            }
            if (Mp != 0)
            {
                hash ^= Mp.GetHashCode();
            }
            if (MaxMp != 0)
            {
                hash ^= MaxMp.GetHashCode();
            }
            if (Food != 0)
            {
                hash ^= Food.GetHashCode();
            }
            if (MaxFood != 0)
            {
                hash ^= MaxFood.GetHashCode();
            }
            if (Gold != 0)
            {
                hash ^= Gold.GetHashCode();
            }
            if (HeadIcon != 0)
            {
                hash ^= HeadIcon.GetHashCode();
            }
            if (MapSkillId != 0)
            {
                hash ^= MapSkillId.GetHashCode();
            }
            if (BattleSkillId != 0)
            {
                hash ^= BattleSkillId.GetHashCode();
            }
            hash ^= equips_.GetHashCode();
            return(hash);
        }