コード例 #1
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);
        }
コード例 #2
0
ファイル: PBMapPlayerData.cs プロジェクト: PenpenLi/BIG_HEAD
        public override int GetHashCode()
        {
            int hash = 1;

            if (playerData_ != null)
            {
                hash ^= PlayerData.GetHashCode();
            }
            if (PlayerPosX != 0)
            {
                hash ^= PlayerPosX.GetHashCode();
            }
            if (PlayerPosY != 0)
            {
                hash ^= PlayerPosY.GetHashCode();
            }
            if (PlayerModelId != 0)
            {
                hash ^= PlayerModelId.GetHashCode();
            }
            if (InstanceId != 0)
            {
                hash ^= InstanceId.GetHashCode();
            }
            if (deck_ != null)
            {
                hash ^= Deck.GetHashCode();
            }
            hash ^= cards_.GetHashCode();
            hash ^= equips_.GetHashCode();
            hash ^= buffs_.GetHashCode();
            hash ^= items_.GetHashCode();
            if (AddedExp != 0)
            {
                hash ^= AddedExp.GetHashCode();
            }
            hash ^= rewardCards_.GetHashCode();
            hash ^= rewardItems_.GetHashCode();
            return(hash);
        }