Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Adventure(val id: String, val coord: Coordinates, val name: String, val description: String)

Data model for Adventures

Link copied to clipboard
@Serializable
data class Continent(val id: Int, val name: String, val continentDims: Dimensions, val minZoom: Int, val maxZoom: Int, val floors: List<Int>)

Data model for Continents

Link copied to clipboard
@Serializable
data class ContinentMap(val id: Int, val name: String, val minLevel: Int, val maxLevel: Int, val defaultFloor: Int, val mapRect: Rectangle, val continentRect: Rectangle, val labelCoord: Coordinates, val pointsOfInterest: Map<Int, PointOfInterest>, val tasks: Map<Int, HeartTask>, val skillChallenges: List<SkillChallenge>, val sectors: Map<Int, Sector>, val adventures: List<Adventure>, val masteryPoints: List<MasteryPoint>)

Data model for map info returned by the /continents endpoint

Link copied to clipboard

Data model for Coordinates. A coordinate is defined by one value each on the X and Y axis.

Link copied to clipboard
@Serializable(with = DimensionsSerializer::class)
data class Dimensions(val x: Float, val y: Float)

Data model for Dimensions. A dimension is something with a size in both the X and Y directions.

Link copied to clipboard
@Serializable
data class Floor(val id: Int, val textureDims: Dimensions, val clampedView: Rectangle, val regions: Map<Int, Region>)

Data model for Floors

Link copied to clipboard
@Serializable
data class HeartTask(val id: Int, val objective: String, val level: Int, val coord: Coordinates, val bounds: List<Coordinates>, val chatLink: String)

Data model for Tasks, aka "Hearts"

Link copied to clipboard
@Serializable
data class Map(val id: Int, val name: String, val minLevel: Int, val maxLevel: Int, val defaultFloor: Int, val type: MapType, val floors: List<Int>, val regionId: Int, val regionName: String?, val continentId: Int, val continentName: String? = null, val mapRect: Rectangle, val continentRect: Rectangle)

Data model for map info returned by the /maps endpoint

Link copied to clipboard

Enumeration for the possible types of a map

Link copied to clipboard
@Serializable
data class MasteryPoint(val id: Int, val coord: Coordinates, val region: String)

Data model mastery points.

Link copied to clipboard
@Serializable
data class PointOfInterest(val id: Int, val name: String? = null, val type: PointOfInterestType, val floor: Int, val coord: Coordinates, val chatLink: String, val icon: String? = null)

Data model for points of interest, aka "POI"

Link copied to clipboard

Enumeration for the possible types of a point of interest

Link copied to clipboard
@Serializable(with = RectangleSerializer::class)
data class Rectangle(val first: Coordinates, val second: Coordinates)

Data model for a Rectangle. A rectangle is defined by a pair of coordinates. The first coordinate represents the upper left corner, while the second is the lower right corner.

Link copied to clipboard
@Serializable
data class Region(val id: Int, val name: String, val labelCoord: Coordinates, val continentRect: Rectangle, val maps: Map<Int, ContinentMap>)

Data model for regions. Regions are part of a io.github.kryszak.gwatlin.api.mapinfo.model.Floor

Link copied to clipboard
@Serializable
data class Sector(val id: Int, val name: String, val level: Int, val coord: Coordinates, val bounds: List<Coordinates>, val chatLink: String)

Data model for sectors. Regions are part of a io.github.kryszak.gwatlin.api.mapinfo.model.ContinentMap

Link copied to clipboard
@Serializable
data class SkillChallenge(val id: String, val coord: Coordinates)

Data model for skill challenges, aka "Hero Point"