Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int num = 1;

            if (AccountData)
            {
                num ^= AccountData.GetHashCode();
            }
            if (Occupation)
            {
                num ^= Occupation.GetHashCode();
            }
            if (HeroData)
            {
                num ^= HeroData.GetHashCode();
            }
            if (Decks)
            {
                num ^= Decks.GetHashCode();
            }
            if (Companions)
            {
                num ^= Companions.GetHashCode();
            }
            if (Weapons)
            {
                num ^= Weapons.GetHashCode();
            }
            if (_unknownFields != null)
            {
                num ^= ((object)_unknownFields).GetHashCode();
            }
            return(num);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (accountData_ != null)
            {
                hash ^= AccountData.GetHashCode();
            }
            if (playerData_ != null)
            {
                hash ^= PlayerData.GetHashCode();
            }
            if (playerDetailData_ != null)
            {
                hash ^= PlayerDetailData.GetHashCode();
            }
            return(hash);
        }