commonMain.com.bselzer.gw2.v2.model.continent.Continent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of v2-model-jvm Show documentation
Show all versions of v2-model-jvm Show documentation
Guild Wars 2 API models for v2-client.
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