All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.cssxsh.arknights.excel.Team.kt Maven / Gradle / Ivy

There is a newer version: 2.3.1
Show newest version
package xyz.cssxsh.arknights.excel

import kotlinx.serialization.*

typealias TeamTable = Map

const val DefaultTeam = "none"

enum class PowerLevel(val text: String, val get: (Character) -> String) {
    NATION("国家/地区", { it.nation ?: DefaultTeam }),
    GROUP("势力", { it.group ?: DefaultTeam }),
    TEAM("队伍", { it.team ?: DefaultTeam });
}

@Serializable
data class Team(
    @SerialName("color")
    val color: String,
    @SerialName("isLimited")
    val isLimited: Boolean,
    @SerialName("isRaw")
    val isRaw: Boolean,
    @SerialName("orderNum")
    val order: Int,
    @SerialName("powerCode")
    val code: String,
    @SerialName("powerId")
    override val id: String,
    @SerialName("powerLevel")
    val level: Int,
    @SerialName("powerName")
    override val name: String
) : Id, Name




© 2015 - 2024 Weber Informatics LLC | Privacy Policy