GameMap

@Serializable
data class GameMap(val id: Int, val type: String, val scores: Map<String, Int>, val deaths: Map<String, Int>, val kills: Map<String, Int>, val objectives: List<GW2v2WvwMatch.GameMap.Objective>, val bonuses: List<GW2v2WvwMatch.GameMap.Bonus>)

Map-specific information about scores.

Parameters

id

the map's ID

type

the map's type (i.e. "Center", "RedHome", "BlueHome", or "GreenHome")

scores

the scores by team color

deaths

the deaths by team color

kills

the kills by team color

objectives

the list of the map's objective

bonuses

the bonuses granted by this map

Constructors

Link copied to clipboard
constructor(id: Int, type: String, scores: Map<String, Int>, deaths: Map<String, Int>, kills: Map<String, Int>, objectives: List<GW2v2WvwMatch.GameMap.Objective>, bonuses: List<GW2v2WvwMatch.GameMap.Bonus>)

Types

Link copied to clipboard
@Serializable
data class Bonus(val type: String, val owner: String)

Information about a bonus.

Link copied to clipboard
@Serializable
data class Objective(val id: String, val type: String, val owner: String, val lastFlipped: String, val claimedBy: String? = null, val claimedAt: String? = null, val pointsTick: Int, val pointsCapture: Int, val guildUpgrades: List<Int>? = null, val yaksDelivered: Int? = null)

Information about a map objective.

Properties

Link copied to clipboard

This field holds the bonuses granted by this map.

Link copied to clipboard

This field holds the deaths by team color.

Link copied to clipboard
val id: Int

This field holds the map's ID.

Link copied to clipboard

This field holds the kills by team color.

Link copied to clipboard

This field holds the list of the map's objective.

Link copied to clipboard

This field holds the scores by team color.

Link copied to clipboard

This field holds the map's type (i.e. "Center", "RedHome", "BlueHome", or "GreenHome").