commonMain.com.bselzer.gw2.v2.model.continent.region.Region.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.region
import com.bselzer.gw2.v2.model.continent.map.ContinentMap
import com.bselzer.gw2.v2.model.map.MapId
import com.bselzer.gw2.v2.model.tile.position.TexturePosition
import com.bselzer.gw2.v2.model.tile.position.TopLeftTextureBound
import com.bselzer.ktx.value.identifier.Identifiable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Region(
@SerialName("id")
override val id: RegionId = RegionId(),
@SerialName("name")
val name: String = "",
/**
* The two-dimensional coordinates of the region label.
*/
@SerialName("label_coord")
val labelCoordinates: TexturePosition = TexturePosition(),
/**
* The continent dimensions.
*
* The first sublist contains the top-left coordinates.
*
* The second sublist contains the bottom-right coordinates.
*/
@SerialName("continent_rect")
val continentRectangle: TopLeftTextureBound = TopLeftTextureBound(),
/**
* A map of the map id to the map information.
*/
@SerialName("maps")
val maps: Map = emptyMap()
) : Identifiable