This commit is contained in:
叶子维
2024-04-01 10:18:01 +08:00
parent a4b8feb7ef
commit 6130fa345b
2 changed files with 6 additions and 10 deletions

View File

@ -2,12 +2,10 @@ package com.gh.gamecenter.entity
import com.gh.gamecenter.common.constant.Constants
import com.gh.gamecenter.common.entity.IconFloat
import com.gh.gamecenter.feature.exposure.ExposureEvent
import com.gh.gamecenter.feature.entity.*
import com.gh.gamecenter.feature.exposure.ExposureEvent
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.IgnoredOnParcel
import java.util.*
import kotlin.collections.ArrayList
data class GameUpdateEntity(
@SerializedName("game_id")
@ -76,9 +74,8 @@ data class GameUpdateEntity(
/**
* 是否为 mod 游戏,根据是否有 mod 标签来判断,不受镜像、游戏屏蔽影响
*/
val isModdedGame by lazy {
tagStyle.any { it.name.lowercase(Locale.getDefault()) == "mod" }
}
val isModdedGame: Boolean
get() = tagStyle.any { it.name.lowercase(Locale.getDefault()) == "mod" }
fun isShowPlugin(location: PluginLocation): Boolean {