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

            if (Skin != 0)
            {
                hash ^= Skin.GetHashCode();
            }
            if (Hair != 0)
            {
                hash ^= Hair.GetHashCode();
            }
            if (Shirt != 0)
            {
                hash ^= Shirt.GetHashCode();
            }
            if (Pants != 0)
            {
                hash ^= Pants.GetHashCode();
            }
            if (Hat != 0)
            {
                hash ^= Hat.GetHashCode();
            }
            if (Shoes != 0)
            {
                hash ^= Shoes.GetHashCode();
            }
            if (Gender != 0)
            {
                hash ^= Gender.GetHashCode();
            }
            if (Eyes != 0)
            {
                hash ^= Eyes.GetHashCode();
            }
            if (Backpack != 0)
            {
                hash ^= Backpack.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Skin != 0)
            {
                hash ^= Skin.GetHashCode();
            }
            if (Hair != 0)
            {
                hash ^= Hair.GetHashCode();
            }
            if (Shirt != 0)
            {
                hash ^= Shirt.GetHashCode();
            }
            if (Pants != 0)
            {
                hash ^= Pants.GetHashCode();
            }
            if (Hat != 0)
            {
                hash ^= Hat.GetHashCode();
            }
            if (Shoes != 0)
            {
                hash ^= Shoes.GetHashCode();
            }
            if (Avatar != 0)
            {
                hash ^= Avatar.GetHashCode();
            }
            if (Eyes != 0)
            {
                hash ^= Eyes.GetHashCode();
            }
            if (Backpack != 0)
            {
                hash ^= Backpack.GetHashCode();
            }
            if (AvatarHair.Length != 0)
            {
                hash ^= AvatarHair.GetHashCode();
            }
            if (AvatarShirt.Length != 0)
            {
                hash ^= AvatarShirt.GetHashCode();
            }
            if (AvatarPants.Length != 0)
            {
                hash ^= AvatarPants.GetHashCode();
            }
            if (AvatarHat.Length != 0)
            {
                hash ^= AvatarHat.GetHashCode();
            }
            if (AvatarShoes.Length != 0)
            {
                hash ^= AvatarShoes.GetHashCode();
            }
            if (AvatarEyes.Length != 0)
            {
                hash ^= AvatarEyes.GetHashCode();
            }
            if (AvatarBackpack.Length != 0)
            {
                hash ^= AvatarBackpack.GetHashCode();
            }
            if (AvatarGloves.Length != 0)
            {
                hash ^= AvatarGloves.GetHashCode();
            }
            if (AvatarSocks.Length != 0)
            {
                hash ^= AvatarSocks.GetHashCode();
            }
            if (AvatarBelt.Length != 0)
            {
                hash ^= AvatarBelt.GetHashCode();
            }
            if (AvatarGlasses.Length != 0)
            {
                hash ^= AvatarGlasses.GetHashCode();
            }
            if (AvatarNecklace.Length != 0)
            {
                hash ^= AvatarNecklace.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }