C_ProfSpecs
namespaceavailable in: camelotStatus in wowlua
27 functions: 3 implemented, 2 recorded, 22 guessed. 2 events, 1 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
CanRefundPath | Whether the points spent in a profession specialization path can be refunded. · by wowlua(pathID: number, configID: number): boolean | guessed |
CanUnlockTab | Whether a profession specialization can be unlocked. · by wowlua(tabTreeID: number, configID: number): boolean | guessed |
GetChildrenForPath | Returns the IDs of the paths that branch off a profession specialization path. · by wowlua(pathID: number): number[] | guessed |
GetConfigIDForSkillLine | Returns the ID of a profession's trait configuration. · by wowlua(skillLineID: number): number | implemented |
GetCurrencyInfoForSkillLine | Returns the knowledge points a profession has to spend on specializations. · by wowlua(skillLineID: number): SpecializationCurrencyInfo | guessed |
GetDefaultSpecSkillLine | Returns the skill line ID of the profession whose specializations are shown by default, or nil when there is none. · by wowlua(): number? | guessed |
GetDescriptionForPath | Returns the description of a profession specialization path. · by wowlua(pathID: number): string | guessed |
GetDescriptionForPerk | Returns the description of a profession specialization perk. · by wowlua(perkID: number): string | guessed |
GetEntryIDForPerk | Returns the trait entry ID of a profession specialization perk. · by wowlua(perkID: number): number | guessed |
GetNewSpecReminderProfName | Returns the name of the profession with a new specialization to remind the player of, or nil when there is none. · by wowlua(): string? | recorded |
GetPerksForPath | Returns the perks of a profession specialization path. · by wowlua(pathID: number): SpecPerkInfo[] | guessed |
GetRootPathForTab | Returns the root path of a profession specialization, or nil when it has none. · by wowlua(tabTreeID: number): number? | guessed |
GetSourceTextForPath | Returns the text describing how a profession specialization path is unlocked. · by wowlua(pathID: number, configID: number): string | guessed |
GetSpecTabIDsForSkillLine | Returns the tree IDs of a profession's specializations. · by wowlua(skillLineID: number): number[] | guessed |
GetSpecTabInfo | Returns information about the specializations tab of the professions window. · by wowlua(): SpecializationTabInfo | guessed |
GetSpendCurrencyForPath | Returns the currency spent on a profession specialization path, or nil when there is none. · by wowlua(pathID: number): number? | guessed |
GetSpendEntryForPath | Returns the trait entry ID that points are spent on in a profession specialization path. · by wowlua(pathID: number): number | guessed |
GetStateForPath | Returns whether a profession specialization path is locked, progressing or completed. · by wowlua(pathID: number, configID: number): ProfessionsSpecPathState | guessed |
GetStateForPerk | Returns whether a profession specialization perk is earned or still pending. · by wowlua(perkID: number, configID: number): ProfessionsSpecPerkState | guessed |
GetStateForTab | Returns whether a profession specialization is locked, can be unlocked or is unlocked. · by wowlua(tabTreeID: number, configID: number): ProfessionsSpecTabState | guessed |
GetTabInfo | Returns information about a profession specialization, or nil when there is no such specialization. · by wowlua(tabTreeID: number): ProfTabInfo? | guessed |
GetUnlockEntryForPath | Returns the trait entry ID that unlocks a profession specialization path. · by wowlua(pathID: number): number | guessed |
GetUnlockRankForPerk | Returns the path rank at which a profession specialization perk is earned, or nil when unknown. · by wowlua(perkID: number): number? | guessed |
ShouldShowPointsReminder | Whether the player should be reminded of unspent profession knowledge points. · by wowlua(): boolean | recorded |
ShouldShowPointsReminderForSkillLine | Whether the player should be reminded of unspent knowledge points in the given profession. · by wowlua(skillLineID: number): boolean | implemented |
ShouldShowSpecTab | Whether the professions window should show the specializations tab. · by wowlua(): boolean | guessed |
SkillLineHasSpecialization | Whether the given profession has specializations. · by wowlua(skillLineID: number): boolean | implemented |
"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 |
|---|---|---|
SKILL_LINE_SPECS_RANKS_CHANGED | no payload | implemented |
SKILL_LINE_SPECS_UNLOCKED | skillLineID: number, tradeSkillID: number | not implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("SKILL_LINE_SPECS_UNLOCKED").
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (ProfessionSpecUI system, camelot 1.60.1). Descriptions: written by wowlua where no documentation describes the entry.