commonMain.eu.codlab.lorcana.Classifications.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lorcana-data Show documentation
Show all versions of lorcana-data Show documentation
Lorcana set descriptions and data
package eu.codlab.lorcana
import eu.codlab.lorcana.cards.ClassificationHolder
import eu.codlab.lorcana.resources.Resources
import eu.codlab.lorcana.utils.LorcanaConfiguration.github
import eu.codlab.tcgmapper.AbstractLoader
import kotlinx.serialization.builtins.ListSerializer
/**
* Represents all the possible classifications that are available. It will retrieve
* a map of name -> TranslationHolder that then can be applied to the cards
*/
object Classifications : AbstractLoader>(
Resources.files.classifications,
"classifications",
ListSerializer(ClassificationHolder.serializer()),
github
)