GW2v2Trait

@Serializable
data class GW2v2Trait(val id: Int, val tier: Int, val order: Int, val name: String, val description: String? = null, val slot: String, val facts: List<GW2v2Trait.Fact>? = null, val traitedFacts: List<GW2v2Trait.TraitedFact>? = null, val skills: List<GW2v2Trait.Skill>? = null, val specialization: Int, val icon: String)

Information about a trait.

Parameters

id

the trait's ID

tier

the trait's tier

order

the trait's order

name

the trait's localized name

description

the trait's localized description

slot

the slot for the trait

facts

a list of facts

traitedFacts

Information about a trait's fact (i.e. effect/property) that is only active if a specific trait is active.

skills

a list of skills related to this trait

specialization

the specialization that this trait is part of

icon

the URL for the trait's icon

Constructors

Link copied to clipboard
constructor(id: Int, tier: Int, order: Int, name: String, description: String? = null, slot: String, facts: List<GW2v2Trait.Fact>? = null, traitedFacts: List<GW2v2Trait.TraitedFact>? = null, skills: List<GW2v2Trait.Skill>? = null, specialization: Int, icon: String)

Types

Link copied to clipboard

Information about a trait's fact (i.e. effect/property).

Link copied to clipboard
@Serializable
data class Skill(val id: Int, val name: String, val description: String, val icon: String, val chatLink: String, val categories: List<String>? = null, val flags: List<String>? = null, val facts: List<GW2v2Trait.Skill.Fact>? = null, val traitedFacts: List<GW2v2Trait.Skill.TraitedFact>? = null)

Information about a skill related to a trait.

Link copied to clipboard

a list of traited facts

Properties

Link copied to clipboard
val description: String? = null

This field holds the trait's localized description.

Link copied to clipboard
val facts: List<GW2v2Trait.Fact>? = null

This field holds a list of facts.

Link copied to clipboard

This field holds the URL for the trait's icon.

Link copied to clipboard
val id: Int

This field holds the trait's ID.

Link copied to clipboard

This field holds the trait's localized name.

Link copied to clipboard
val order: Int

This field holds the trait's order.

Link copied to clipboard

This field holds a list of skills related to this trait.

Link copied to clipboard

This field holds the slot for the trait.

Link copied to clipboard

This field holds the specialization that this trait is part of.

Link copied to clipboard
val tier: Int

This field holds the trait's tier.

Link copied to clipboard
@SerialName(value = "traited_facts")
val traitedFacts: List<GW2v2Trait.TraitedFact>? = null

This field holds Information about a trait's fact (i.e. effect/property) that is only active if a specific trait is active..