Weapon

@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.

Parameters

specialization

the ID of the profession's specializations required for this weapon

flags

additional flags describing this weapon's properties (e.g. MainHand, OffHand, TwoHand, Aquatic)

skills

the skills for the weapon if wielded by this profession

Constructors

Link copied to clipboard
constructor(specialization: Int? = null, flags: List<String>, skills: List<GW2v2Profession.Weapon.Skill>)

Types

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

Information about a weapon's skills.

Properties

Link copied to clipboard

This field holds additional flags describing this weapon's properties (e.g. MainHand, OffHand, TwoHand, Aquatic).

Link copied to clipboard

This field holds the skills for the weapon if wielded by this profession.

Link copied to clipboard
val specialization: Int? = null

This field holds the ID of the profession's specializations required for this weapon.