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

            if (VaultCategoryGmtId.Length != 0)
            {
                hash ^= VaultCategoryGmtId.GetHashCode();
            }
            if (Amount != 0L)
            {
                hash ^= Amount.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (vaultItemTypeCase_ == VaultItemTypeOneofCase.CurrencyItem)
            {
                hash ^= CurrencyItem.GetHashCode();
            }
            if (vaultItemTypeCase_ == VaultItemTypeOneofCase.StaminaItem)
            {
                hash ^= StaminaItem.GetHashCode();
            }
            if (vaultItemTypeCase_ == VaultItemTypeOneofCase.DetectorItem)
            {
                hash ^= DetectorItem.GetHashCode();
            }
            if (vaultItemTypeCase_ == VaultItemTypeOneofCase.ContainerItem)
            {
                hash ^= ContainerItem.GetHashCode();
            }
            if (vaultItemTypeCase_ == VaultItemTypeOneofCase.RunestoneItem)
            {
                hash ^= RunestoneItem.GetHashCode();
            }
            if (vaultItemTypeCase_ == VaultItemTypeOneofCase.PotionItem)
            {
                hash ^= PotionItem.GetHashCode();
            }
            if (vaultItemTypeCase_ == VaultItemTypeOneofCase.PotionIngredient)
            {
                hash ^= PotionIngredient.GetHashCode();
            }
            if (vaultItemTypeCase_ == VaultItemTypeOneofCase.EnergyItem)
            {
                hash ^= EnergyItem.GetHashCode();
            }
            if (vaultItemTypeCase_ == VaultItemTypeOneofCase.CauldronTimeItem)
            {
                hash ^= CauldronTimeItem.GetHashCode();
            }
            if (Cap != 0L)
            {
                hash ^= Cap.GetHashCode();
            }
            if (RelativeValue != 0)
            {
                hash ^= RelativeValue.GetHashCode();
            }
            if (VaultCategoryGmtId.Length != 0)
            {
                hash ^= VaultCategoryGmtId.GetHashCode();
            }
            hash ^= (int)vaultItemTypeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }