|
|
@ -26,13 +26,18 @@ class Game(
|
|
|
|
if (other !is Game)
|
|
|
|
if (other !is Game)
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
|
|
|
|
|
|
|
|
return title == other.title
|
|
|
|
return hashCode() == other.hashCode()
|
|
|
|
&& description == other.description
|
|
|
|
}
|
|
|
|
&& regions == other.regions
|
|
|
|
|
|
|
|
&& path == other.path
|
|
|
|
override fun hashCode(): Int {
|
|
|
|
&& gameId == other.gameId
|
|
|
|
var result = title.hashCode()
|
|
|
|
&& company == other.company
|
|
|
|
result = 31 * result + description.hashCode()
|
|
|
|
&& isHomebrew == other.isHomebrew
|
|
|
|
result = 31 * result + regions.hashCode()
|
|
|
|
|
|
|
|
result = 31 * result + path.hashCode()
|
|
|
|
|
|
|
|
result = 31 * result + gameId.hashCode()
|
|
|
|
|
|
|
|
result = 31 * result + company.hashCode()
|
|
|
|
|
|
|
|
result = 31 * result + isHomebrew.hashCode()
|
|
|
|
|
|
|
|
return result
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
companion object {
|
|
|
|
companion object {
|
|
|
|