Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (UnlockedDescription.Length != 0)
            {
                hash ^= UnlockedDescription.GetHashCode();
            }
            if (Disabled != false)
            {
                hash ^= Disabled.GetHashCode();
            }
            if (ShowBadge != false)
            {
                hash ^= ShowBadge.GetHashCode();
            }
            if (visibilityConditions_ != null)
            {
                hash ^= VisibilityConditions.GetHashCode();
            }
            if (unlockConditions_ != null)
            {
                hash ^= UnlockConditions.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();
            }
            hash ^= unlockConditions_.GetHashCode();
            if (AssetScriptName.Length != 0)
            {
                hash ^= AssetScriptName.GetHashCode();
            }
            if (Icon.Length != 0)
            {
                hash ^= Icon.GetHashCode();
            }
            if (AssetType != 0)
            {
                hash ^= AssetType.GetHashCode();
            }
            if (LensType != 0)
            {
                hash ^= LensType.GetHashCode();
            }
            if (Visible != false)
            {
                hash ^= Visible.GetHashCode();
            }
            if (MediaSupportedType != 0)
            {
                hash ^= MediaSupportedType.GetHashCode();
            }
            if (Animated != false)
            {
                hash ^= Animated.GetHashCode();
            }
            if (StorePackId.Length != 0)
            {
                hash ^= StorePackId.GetHashCode();
            }
            if (OrderId != 0)
            {
                hash ^= OrderId.GetHashCode();
            }
            if (IsFullBodyLens != false)
            {
                hash ^= IsFullBodyLens.GetHashCode();
            }
            if (IsEmptyAsset != false)
            {
                hash ^= IsEmptyAsset.GetHashCode();
            }
            if (ShowBadge != false)
            {
                hash ^= ShowBadge.GetHashCode();
            }
            if (visibilityConditions_ != null)
            {
                hash ^= VisibilityConditions.GetHashCode();
            }
            if (StockAssetName.Length != 0)
            {
                hash ^= StockAssetName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }