BuildTemplate

data class BuildTemplate(val professionId: UByte, val specializations: List<ChatLink.BuildTemplate.Specialization>, val skills: List<UShort>, val aquaticSkills: List<UShort>, val professionContext: ChatLink.BuildTemplate.ProfessionContext?, val weapons: List<UShort> = emptyList(), val weaponSkillOverrides: List<UInt> = emptyList()) : ChatLink(source)

A build template.

Skill IDs are palette IDs and should not be confused with the skill IDs in the official Guild Wars 2 API.

Only the shape of the parameters (e.g. list sizes) is validated and not the actual data (e.g. ID validity).

Since

0.1.0

Parameters

professionId

the ID of the template's profession

specializations

the template's specializations. (Must contain three elements.)

skills

the IDs of the template's (terrestrial) skills. (Must contain five elements.)

aquaticSkills

the IDs of the template's aquatic skills. (Must contain five elements.)

professionContext

the profession-specific context, or null if no profession specific information exists for the template's profession

weapons

the weapons of the template.

weaponSkillOverrides

the skill IDs of the template's weapon skill overrides

Throws

if any parameter value does not match its expected shape

Constructors

Link copied to clipboard
constructor(profession: Profession, specializations: List<ChatLink.BuildTemplate.Specialization>, skills: List<UShort>, aquaticSkills: List<UShort>, professionContext: ChatLink.BuildTemplate.ProfessionContext?, weapons: List<UShort> = emptyList(), weaponSkillOverrides: List<UInt> = emptyList())
constructor(professionId: UByte, specializations: List<ChatLink.BuildTemplate.Specialization>, skills: List<UShort>, aquaticSkills: List<UShort>, professionContext: ChatLink.BuildTemplate.ProfessionContext?, weapons: List<UShort> = emptyList(), weaponSkillOverrides: List<UInt> = emptyList())

Types

Link copied to clipboard
sealed class ProfessionContext

Profession-specific additional information.

Link copied to clipboard
data class RangerContext(val pets: List<UByte>, val aquaticPets: List<UByte>) : ChatLink.BuildTemplate.ProfessionContext

Profession-specific information for rangers.

Link copied to clipboard
data class RevenantContext(val legends: List<UByte>, val aquaticLegends: List<UByte>, val inactiveLegendUtilitySkills: List<UShort>, val inactiveAquaticLegendUtilitySkills: List<UShort>) : ChatLink.BuildTemplate.ProfessionContext

Profession-specific information for revenants.

Link copied to clipboard
data class Specialization(val specializationId: UByte, val majorTraits: List<UByte?>)

A build template's specialization.

Properties

Link copied to clipboard
Link copied to clipboard
@get:JvmName(name = "getProfessionId")
val professionId: UByte
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard