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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy