Beispiel #1
0
        public override int GetHashCode()
        {
            int num = 1;

            if (id_.HasValue)
            {
                num ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                num ^= Name.GetHashCode();
            }
            if (God != 0)
            {
                num ^= God.GetHashCode();
            }
            if (Weapon != 0)
            {
                num ^= Weapon.GetHashCode();
            }
            num ^= ((object)companions_).GetHashCode();
            num ^= ((object)spells_).GetHashCode();
            num ^= ((object)summonings_).GetHashCode();
            if (_unknownFields != null)
            {
                num ^= ((object)_unknownFields).GetHashCode();
            }
            return(num);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int num = 1;

            if (Nickname.Length != 0)
            {
                num ^= Nickname.GetHashCode();
            }
            if (God != 0)
            {
                num ^= God.GetHashCode();
            }
            if (WeaponId != 0)
            {
                num ^= WeaponId.GetHashCode();
            }
            if (Skin != 0)
            {
                num ^= Skin.GetHashCode();
            }
            if (_unknownFields != null)
            {
                num ^= ((object)_unknownFields).GetHashCode();
            }
            return(num);
        }