API reference
LibDualSpec:EnhanceDatabase(target, name)
Embed dual spec feature into an existing AceDB-3.0 database.
LibDualSpec specific methods are added to the instance.
Parameters
- target
- (table) the AceDB-3.0 instance.
- name
- (string) a user-friendly name of the database (best bet is the addon name).
LibDualSpec:EnhanceOptions(optionTable, target)
Embed dual spec options into an existing AceDBOptions-3.0 option table.
Parameters
- optionTable
- (table) The option table returned by AceDBOptions-3.0.
- target
- (table) The AceDB-3.0 the options operate on.
LibDualSpec:IterateDatabases()
Iterate through enhanced AceDB3.0 instances.
The iterator returns (instance, name) pairs where instance and name are the
arguments that were provided to lib:EnhanceDatabase.
Return value
Values to be used in a for .. in .. do statement.
enhancedDB:CheckDualSpecState()
Check if a profile swap should occur.
Do nothing if the dual spec feature is disabled. In the other
case, if the internally stored talent spec the actual active talent
spec, the database swap to the alternate profile.
There is normally no reason to call this method directly as LibDualSpec
takes care of calling it at appropriate times.
enhancedDB:GetDualSpecProfile()
Get the alternate profile name.
Defaults to the current profile.
Return value
(string) Alternate profile name.
enhancedDB:IsDualSpecEnabled()
Get dual spec feature status.
Return value
(boolean) true is dual spec feature enabled.
enhancedDB:SetDualSpecEnabled(enabled)
Enable/disabled dual spec feature.
Parameters
- enabled
- (boolean) true to enable dual spec feature, false to disable it.
enhancedDB:SetDualSpecProfile(profileName)
Set the alternate profile name.
No validation are done to ensure the profile is valid.
Parameters
- profileName
- (string) the profile name to use.
Facts
- Date created
- 26 Jun 2009
- Last updated
- 26 Jun 2009