
dev.robocode.tankroyale.gui.model.Participant.kt Maven / Gradle / Ivy
package dev.robocode.tankroyale.gui.model
import kotlinx.serialization.Serializable
@Serializable
data class Participant(
val id: Int,
val sessionId: String,
val name: String,
val version: String,
val authors: List,
val description: String? = null,
val homepage: String? = null,
val countryCodes: List,
val gameTypes: Set = HashSet(),
val platform: String? = null,
val programmingLang: String? = null,
val initialPosition: InitialPosition? = null,
val teamId: Int? = null,
val teamName: String? = null,
val teamVersion: String? = null,
val isDroid: Boolean = false,
) {
val displayName = "$name $version ($id)" + (teamName?.let { " / $teamName $teamVersion ($teamId)" } ?: "")
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy