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

commonMain.com.bselzer.gw2.v2.model.continent.Continent.kt Maven / Gradle / Ivy

The newest version!
package com.bselzer.gw2.v2.model.continent

import com.bselzer.gw2.v2.model.continent.floor.FloorId
import com.bselzer.ktx.geometry.dimension.bi.Dimension2D
import com.bselzer.ktx.serialization.serializer.Dimension2DSerializer
import com.bselzer.ktx.value.identifier.Identifiable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
data class Continent(
    @SerialName("id")
    override val id: ContinentId = ContinentId(),

    @SerialName("name")
    val name: String = "",

    /**
     * The width and height of the continent.
     */
    @Serializable(with = Dimension2DSerializer::class)
    @SerialName("continent_dims")
    val dimensions: Dimension2D = Dimension2D(),

    @SerialName("min_zoom")
    val minZoom: Int = 0,

    @SerialName("max_zoom")
    val maxZoom: Int = 0,

    /**
     * The ids of the floors.
     * @see the wiki
     */
    @SerialName("floors")
    val floorIds: List = emptyList()
) : Identifiable




© 2015 - 2024 Weber Informatics LLC | Privacy Policy