C_SpecializationInfo
namespaceavailable in: camelotStatus in wowlua
31 functions: 9 implemented, 9 recorded, 13 guessed. 10 events, 3 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
CanPlayerUsePVPTalentUI | Returns true if the player is allowed to use the PvP talent UI, or false and a reason string if not.(): (boolean, string) | recorded |
CanPlayerUseTalentSpecUI | Returns true if the player is allowed to use the specialization UI, or false and a reason string if not.(): (boolean, string) | implemented |
CanPlayerUseTalentUI | Returns true if the player is allowed to use the talent UI, or false and a reason string if not.(): (boolean, string) | implemented |
GetActiveSpecGroup | Returns the index of the current active specialization/talent/glyph group.(isInspect: boolean?, isPet: boolean?): number | implemented |
GetAllClassIDs | Returns the IDs of all player classes. · by wowlua(): number[] | implemented |
GetAllSelectedPvpTalentIDs | Returns the IDs of the player's selected PvP talents. · by wowlua(): number[] | recorded |
GetClassIDFromSpecID | Returns the ID of the class the given specialization belongs to. · by wowlua(specID: number): number? | recorded |
GetCombatConfigIDForSpecGroup | Returns the ID of the talent loadout configuration of the given specialization group. · by wowlua(groupIndex: number): number? | implemented |
GetInspectSelectedPvpTalent | Returns the ID of the PvP talent the inspected unit has selected in the given slot. · by wowlua(inspectedUnit: string, talentIndex: number): number? | guessed |
GetInspectSpecialization | Returns the specialization ID of the inspected unit. · by wowlua(unit: string): number | implemented |
GetNumSpecializationsForClassID | Returns the number of specializations of the given class. · by wowlua(classID: number): number | guessed |
GetPvpTalentAlertStatus | Returns whether PvP talent slots and PvP talents have something new to point out to the player. · by wowlua(): (boolean, boolean) | recorded |
GetPvpTalentInfo | Returns information about the given PvP talent. · by wowlua(talentID: number): PvpTalentInfo? | guessed |
GetPvpTalentSlotInfo | Returns information about a PvP talent slot. · by wowlua(talentIndex: number): PvpTalentSlotInfo? | guessed |
GetPvpTalentSlotUnlockLevel | Returns the level at which a PvP talent slot unlocks. · by wowlua(talentIndex: number): number? | recorded |
GetPvpTalentUnlockLevel | Returns the level at which the given PvP talent unlocks. · by wowlua(talentID: number): number? | guessed |
GetSpecIDs | Returns the list of SpecializationIDs that are part of a specSet.(specSetID: number): number[] | guessed |
GetSpecialization | Returns the index of the player's current specialization.(isInspect: boolean?, isPet: boolean?, specGroupIndex: number?): number | implemented |
GetSpecializationInfo | Returns info for a specialization.(specializationIndex: number, isInspect: boolean, isPet: boolean, inspectTarget: string?, sex: number?, groupIndex: number?, classID: number?): (number, string?, string?, number?, string?, number?, number, string?, number, boolean) | implemented |
GetSpecializationMasterySpells | Returns the mastery spell ID of the specified specialization.(specializationIndex: number, isInspect: boolean?, isPet: boolean?): number[] | recorded |
GetSpellsDisplay | Returns the IDs of the spells shown for the given specialization. · by wowlua(specializationID: number): number[] | recorded |
GetTalentInfo | Returns info for the specified talent.(query: TalentInfoQuery): TalentInfoResult? | guessed |
HasPlayerEarnedATalentPoint | Whether the player has earned a talent point. · by wowlua(): boolean | implemented |
IsInitialized | Returns whether player talent specialization info has been initialized.(): boolean | recorded |
IsPvpTalentLocked | Whether the given PvP talent is locked. · by wowlua(talentID: number): boolean | guessed |
IsSpecSelectionEnabled | Whether specialization selection is enabled for the given class. · by wowlua(classID: number): boolean | recorded |
MatchesCurrentSpecSet | Whether the player's current specialization is in the given specialization set. · by wowlua(specSetID: number): boolean | guessed |
SetActiveSpecGroup | Switches to the given specialization group. · by wowlua(groupIndex: number) | guessed |
SetPetSpecialization | Sets the specialization of the player's pet. · by wowlua(specIndex: number, petNumber: number?) | guessed |
SetPvpTalentLocked | Locks or unlocks the given PvP talent. · by wowlua(talentID: number, locked: boolean) | guessed |
SetSpecialization | Switches the player to the given specialization. Returns whether the change was started. · by wowlua(specIndex: number): boolean | guessed |
"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.
Events
| event | payload | fired by the emulator |
|---|---|---|
ACTIVE_TALENT_GROUP_CHANGED | curr: number, prev: number | implemented |
CONFIRM_PET_UNLEARN | cost: number | not implemented |
CONFIRM_TALENT_WIPE | cost: number, respecType: number | not implemented |
PET_SPECIALIZATION_CHANGED | no payload | not implemented |
PLAYER_LEARN_PVP_TALENT_FAILED | no payload | not implemented |
PLAYER_LEARN_TALENT_FAILED | no payload | not implemented |
PLAYER_PVP_TALENT_UPDATE | no payload | implemented |
PLAYER_TALENT_UPDATE | no payload | implemented |
SPEC_INVOLUNTARILY_CHANGED | isPet: boolean | not implemented |
TALENTS_INVOLUNTARILY_RESET | isPetTalents: boolean | not implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("CONFIRM_PET_UNLEARN").
Structures
PvpTalentInfo· talentID, name, icon, selected, available, spellID, unlocked, known, grantedByAura, dependenciesUnmet, dependenciesUnmetReason?PvpTalentSlotInfo· enabled, level, selectedTalentID?, availableTalentIDsSpecializationInfoOutput· specId, name?, description?, icon?, role?, primaryStat?, pointsSpent, background?, previewPointsSpent, isUnlockedSpecializationInfoQuery· specializationIndex, isInspect, isPet, inspectTarget?, sex?, groupIndex?, classID?TalentInfoQuery· groupIndex?, isInspect, tier?, column?, target?, specializationIndex?, talentIndex?, isPetTalentInfoResult· talentID, name, icon, tier, column, selected, available, spellID, isPVPTalentUnlocked, known, grantedByAura, rank, maxRank, meetsPrereq, previewRank, meetsPreviewPrereq, isExceptional, hasGoldBorder
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (SpecializationInfo system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.