C_ClassTalents
namespaceavailable in: camelotStatus in wowlua
31 functions: 1 implemented, 15 recorded, 15 guessed. 8 events, 0 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
CanChangeTalents | Returns true only if the player has staged changes and can commit their talents in their current state.(): (boolean, boolean, string?) | recorded |
CanCreateNewConfig | Whether a new talent loadout can be created. · by wowlua(): boolean | recorded |
CanEditTalents | Returns true if the player could switch talents if they staged a proper loadout.(): (boolean, string) | recorded |
CommitConfig | Applies any pending changes to the specified loadout configID(savedConfigID: number?): boolean | implemented |
DeleteConfig | Deletes a talent loadout and returns whether it was deleted. · by wowlua(configID: number): boolean | guessed |
GetActiveConfigID | Returns the configID used for your currently selected specialization. Not to be confused with a talent loadout's configID(): number? | recorded |
GetActiveHeroTalentSpec | Returns the SubTreeID of the player's active Hero Talent Specialization SubTree.(): number? | recorded |
GetConfigIDsBySpecID | Returns a list of talent loadouts for a given spec(specID: number?): number[] | recorded |
GetHasStarterBuild | Whether the current specialization has a starter build. · by wowlua(): boolean | recorded |
GetHeroTalentSpecsForClassSpec | Returns the SubTreeIDs of the Hero Talent Specializations available to a Class Specialization and config; Returns nothing if none available(configID: number?, classSpecID: number?): (number[]?, number?) | recorded |
GetLastSelectedSavedConfigID | Returns the value stored using C_ClassTalents.UpdateLastSelectedSavedConfigID.(specID: number): number? | recorded |
GetNextStarterBuildPurchase | Returns the next talent the starter build will choose. · by wowlua(): (number?, number?) | recorded |
GetStarterBuildActive | Whether the starter build is active. · by wowlua(): boolean | recorded |
GetTraitTreeForSpec | Returns the ID of the talent tree of a specialization, or nil. · by wowlua(specID: number): number? | recorded |
HasUnspentHeroTalentPoints | Returns whether the player has any unspent talent points in their active hero talent tree. If hasUnspentPoints is true, numHeroPoints will be greater than zero.(): (boolean, number) | recorded |
HasUnspentTalentPoints | Returns whether the player has any unspent talent points in their class or spec talent trees.(): (boolean, number, number) | recorded |
ImportLoadout | Imports a talent loadout and returns whether it worked and an error message. · by wowlua(configID: number, entries: ImportLoadoutEntryInfo[], name: string, importString: string?): (boolean, string) | guessed |
InitializeViewLoadout | Prepares the Constants.TraitConsts.VIEW_TRAIT_CONFIG_ID configID, with spec and level information.(specID: number, level: number) | guessed |
IsConfigPopulated | New configs may or may not be populated and ready to load immediately after creation. Avoid calling for configs intentionally created empty.(configID: number): boolean | recorded |
LoadConfig | Switches to a saved talent loadout and returns the result, an error message, and the changed talents. · by wowlua(configID: number, autoApply: boolean): (LoadConfigResult, string?, number[]) | guessed |
RenameConfig | Renames a talent loadout and returns whether it was renamed. · by wowlua(configID: number, name: string): boolean | guessed |
RequestNewConfig | Creates a new talent loadout with the given name and returns whether it was requested. · by wowlua(name: string): boolean | guessed |
SaveConfig | Saves the talent changes to a loadout and returns whether they were saved. · by wowlua(configID: number): boolean | guessed |
SetStarterBuildActive | Switches your active talent loadout to the Starter Build, which is a Blizzard defined talent build, meant to be good enough for most content.(active: boolean): LoadConfigResult | guessed |
SetUsesSharedActionBars | Sets whether a talent loadout uses the action bars shared by all loadouts. · by wowlua(configID: number, usesShared: boolean) | guessed |
SwitchToLoadoutByIndex | Loads loadout for the current specialization by dropdown index. Indices start at 1.(loadoutIndex: number) | guessed |
SwitchToLoadoutByName | Loads loadout for the current specialization by name. Loads the first one found in the case of duplicate names.(loadoutName: string) | guessed |
SwitchToSpecializationByIndex | Activates specialization for the current class by index in the order within the Specializations tab. Indices start at 1.(specIndex: number) | guessed |
SwitchToSpecializationByName | Activates specialization for the current class by spec name.(specName: string) | guessed |
UpdateLastSelectedSavedConfigID | Remembers which talent loadout of a specialization was last selected. · by wowlua(specID: number, configID: number?) | guessed |
ViewLoadout | Applies loadout information to a previously initialized Constants.TraitConsts.VIEW_TRAIT_CONFIG_ID configID(entries: ImportLoadoutEntryInfo[], importString: string?): 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_COMBAT_CONFIG_CHANGED | configID: number | not implemented |
CLASS_TALENTS_SWITCH_TO_LOADOUT_BY_INDEX | loadoutIndex: number | not implemented |
CLASS_TALENTS_SWITCH_TO_LOADOUT_BY_NAME | loadoutName: string | not implemented |
CLASS_TALENTS_SWITCH_TO_SPECIALIZATION_BY_INDEX | specIndex: number | not implemented |
CLASS_TALENTS_SWITCH_TO_SPECIALIZATION_BY_NAME | specName: string | not implemented |
SELECTED_LOADOUT_CHANGED | no payload | not implemented |
SPECIALIZATION_CHANGE_CAST_FAILED | no payload | not implemented |
STARTER_BUILD_ACTIVATION_FAILED | no payload | not implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("ACTIVE_COMBAT_CONFIG_CHANGED").
Structures
ImportLoadoutEntryInfo· nodeID, ranksGranted, ranksPurchased, selectionEntryID
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (ClassTalents 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.