v0.13.8

C_ClassTalents

namespaceavailable in: camelot

Status in wowlua

31 functions: 1 implemented, 15 recorded, 15 guessed. 8 events, 0 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
CanChangeTalentsReturns true only if the player has staged changes and can commit their talents in their current state.
(): (boolean, boolean, string?)
recorded
CanCreateNewConfigWhether a new talent loadout can be created. · by wowlua
(): boolean
recorded
CanEditTalentsReturns true if the player could switch talents if they staged a proper loadout.
(): (boolean, string)
recorded
CommitConfigApplies any pending changes to the specified loadout configID
(savedConfigID: number?): boolean
implemented
DeleteConfigDeletes a talent loadout and returns whether it was deleted. · by wowlua
(configID: number): boolean
guessed
GetActiveConfigIDReturns the configID used for your currently selected specialization. Not to be confused with a talent loadout's configID
(): number?
recorded
GetActiveHeroTalentSpecReturns the SubTreeID of the player's active Hero Talent Specialization SubTree.
(): number?
recorded
GetConfigIDsBySpecIDReturns a list of talent loadouts for a given spec
(specID: number?): number[]
recorded
GetHasStarterBuildWhether the current specialization has a starter build. · by wowlua
(): boolean
recorded
GetHeroTalentSpecsForClassSpecReturns 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
GetLastSelectedSavedConfigIDReturns the value stored using C_ClassTalents.UpdateLastSelectedSavedConfigID.
(specID: number): number?
recorded
GetNextStarterBuildPurchaseReturns the next talent the starter build will choose. · by wowlua
(): (number?, number?)
recorded
GetStarterBuildActiveWhether the starter build is active. · by wowlua
(): boolean
recorded
GetTraitTreeForSpecReturns the ID of the talent tree of a specialization, or nil. · by wowlua
(specID: number): number?
recorded
HasUnspentHeroTalentPointsReturns 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
HasUnspentTalentPointsReturns whether the player has any unspent talent points in their class or spec talent trees.
(): (boolean, number, number)
recorded
ImportLoadoutImports 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
InitializeViewLoadoutPrepares the Constants.TraitConsts.VIEW_TRAIT_CONFIG_ID configID, with spec and level information.
(specID: number, level: number)
guessed
IsConfigPopulatedNew 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
LoadConfigSwitches 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
RenameConfigRenames a talent loadout and returns whether it was renamed. · by wowlua
(configID: number, name: string): boolean
guessed
RequestNewConfigCreates a new talent loadout with the given name and returns whether it was requested. · by wowlua
(name: string): boolean
guessed
SaveConfigSaves the talent changes to a loadout and returns whether they were saved. · by wowlua
(configID: number): boolean
guessed
SetStarterBuildActiveSwitches 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
SetUsesSharedActionBarsSets whether a talent loadout uses the action bars shared by all loadouts. · by wowlua
(configID: number, usesShared: boolean)
guessed
SwitchToLoadoutByIndexLoads loadout for the current specialization by dropdown index. Indices start at 1.
(loadoutIndex: number)
guessed
SwitchToLoadoutByNameLoads loadout for the current specialization by name. Loads the first one found in the case of duplicate names.
(loadoutName: string)
guessed
SwitchToSpecializationByIndexActivates specialization for the current class by index in the order within the Specializations tab. Indices start at 1.
(specIndex: number)
guessed
SwitchToSpecializationByNameActivates specialization for the current class by spec name.
(specName: string)
guessed
UpdateLastSelectedSavedConfigIDRemembers which talent loadout of a specialization was last selected. · by wowlua
(specID: number, configID: number?)
guessed
ViewLoadoutApplies 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

eventpayloadfired by the emulator
ACTIVE_COMBAT_CONFIG_CHANGEDconfigID: numbernot implemented
CLASS_TALENTS_SWITCH_TO_LOADOUT_BY_INDEXloadoutIndex: numbernot implemented
CLASS_TALENTS_SWITCH_TO_LOADOUT_BY_NAMEloadoutName: stringnot implemented
CLASS_TALENTS_SWITCH_TO_SPECIALIZATION_BY_INDEXspecIndex: numbernot implemented
CLASS_TALENTS_SWITCH_TO_SPECIALIZATION_BY_NAMEspecName: stringnot implemented
SELECTED_LOADOUT_CHANGEDno payloadnot implemented
SPECIALIZATION_CHANGE_CAST_FAILEDno payloadnot implemented
STARTER_BUILD_ACTIVATION_FAILEDno payloadnot 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.