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.
There is normally no reason to call this method directly as LibDualSpec takes care of calling it at the appropriate time.


enhancedDB:GetDualSpecProfile(spec)

Get the profile assigned to a specialization.
Defaults to the current profile.

Parameters

spec
(number) the specialization index.

Return value

(string) the 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, spec)

Set the profile assigned to a specialization.
No validation are done to ensure the profile is valid.

Parameters

profileName
(string) the profile name to use.
spec
(number) the specialization index.



Comments

Posts Quoted:
Reply
Clear All Quotes