GW2v2Profession

@Serializable
data class GW2v2Profession(val id: String, val name: String, val code: Int, val icon: String, val bigIcon: String, val specializations: List<Int>, val weapons: Map<String, GW2v2Profession.Weapon>, val flags: List<String>, val skills: List<GW2v2Profession.Skill>, val training: List<GW2v2Profession.Training>, val skillsByPalette: List<List<Int>>)

Information about a playable profession.

Parameters

id

the profession's ID

name

the profession's localized name

code

the profession's palette code

icon

a render service URL for the profession's icon

bigIcon

a render service URL for a big version of the profession's icon

specializations

the IDs of the profession's specializations

weapons

information about the weapons usable by this profession

flags

additional flags describing this profession's properties (e.g. NoRacialSkills)

skills

the profession specific skills

training

array of trainings of this profession

skillsByPalette

mappings from palette IDs to skill IDs

Constructors

Link copied to clipboard
constructor(id: String, name: String, code: Int, icon: String, bigIcon: String, specializations: List<Int>, weapons: Map<String, GW2v2Profession.Weapon>, flags: List<String>, skills: List<GW2v2Profession.Skill>, training: List<GW2v2Profession.Training>, skillsByPalette: List<List<Int>>)

Types

Link copied to clipboard
@Serializable
data class Skill(val id: Int, val slot: String, val type: String, val attunement: String? = null, val source: String? = null)

Information about a profession skill.

Link copied to clipboard
@Serializable
data class Training(val id: Int, val category: String, val name: String, val track: List<GW2v2Profession.Training.Track>)

Information about training track.

Link copied to clipboard
@Serializable
data class Weapon(val specialization: Int? = null, val flags: List<String>, val skills: List<GW2v2Profession.Weapon.Skill>)

Information about a profession's weapon and it's skills.

Properties

Link copied to clipboard
@SerialName(value = "icon_big")
val bigIcon: String

This field holds a render service URL for a big version of the profession's icon.

Link copied to clipboard
val code: Int

This field holds the profession's palette code.

Link copied to clipboard

This field holds additional flags describing this profession's properties (e.g. NoRacialSkills).

Link copied to clipboard

This field holds a render service URL for the profession's icon.

Link copied to clipboard
val id: String

This field holds the profession's ID.

Link copied to clipboard

This field holds the profession's localized name.

Link copied to clipboard

This field holds the profession specific skills.

Link copied to clipboard
@SerialName(value = "skills_by_palette")
val skillsByPalette: List<List<Int>>

This field holds mappings from palette IDs to skill IDs.

Link copied to clipboard

This field holds the IDs of the profession's specializations.

Link copied to clipboard

This field holds array of trainings of this profession.

Link copied to clipboard

This field holds information about the weapons usable by this profession.