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

commonMain.eu.codlab.lorcana.cards.Classification.kt Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
package eu.codlab.lorcana.cards

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
data class ClassificationHolder(
    val slug: Classification,
    val en: String,
    val fr: String? = null,
    val de: String? = null
)

@Serializable
enum class Classification(private val rawSlug: String? = null) {
    @SerialName("song")
    Song,

    @SerialName("storyborn")
    Storyborn,

    @SerialName("dreamborn")
    Dreamborn,

    @SerialName("floodborn")
    Floodborn,

    @SerialName("princess")
    Princess,

    @SerialName("prince")
    Prince,

    @SerialName("king")
    King,

    @SerialName("queen")
    Queen,

    @SerialName("deity")
    Deity,

    @SerialName("hero")
    Hero,

    @SerialName("villain")
    Villain,

    @SerialName("ally")
    Ally,

    @SerialName("musketeer")
    Musketeer,

    @SerialName("pirate")
    Pirate,

    @SerialName("alien")
    Alien,

    @SerialName("sorcerer")
    Sorcerer,

    @SerialName("broom")
    Broom,

    @SerialName("mentor")
    Mentor,

    @SerialName("fairy")
    Fairy,

    @SerialName("captain")
    Captain,

    @SerialName("inventor")
    Inventor,

    @SerialName("dragon")
    Dragon,

    @SerialName("tigger")
    Tigger,

    @SerialName("detective")
    Detective,

    @SerialName("seven_dwarfs")
    SevenDwarfs("seven_dwarfs"),

    @SerialName("knight")
    Knight,

    @SerialName("titan")
    Titan,

    @SerialName("hyena")
    Hyena,

    @SerialName("puppy")
    Puppy;

    val slug: String
        get() = rawSlug ?: name.lowercase()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy