LibDruidMana-1.0

From WowAce Wiki
Jump to: navigation, search
Summary
Lib: DruidMana-1.0
A library to provide data on mana for druids in bear or cat form.
TOC 2.4 (20400)
Category Libraries
Author ckknight
Details
Version 1.0
OptionalDeps LibStub
Links
Betas Ace SVN Zip
Changelog FishEye


API Documentation

Note: This documentation is auto-generated. Please note that direct modifications may be overwritten on next autogenerate.

:AddListener(tab , "method")

Arguments

tab
table or function - the object method is harbored in or the function to directly call
"method"
string - the method name to be called on table

Notes

Add a listener that will be called when mana updates

Example

LibStub("LibDruidMana-1.0"):AddListener(function(currMana, maxMana)
	-- do something here
end)
LibStub("LibDruidMana-1.0"):AddListener(MyAddon, "MethodName")

:GetCurrentMana()

Returns

number - the current amount of mana the druid would have in normal form

Example

local mana = LibStub("LibDruidMana-1.0"):GetCurrentMana()

:GetMaximumMana()

Returns

number - the maximum amount of mana the druid would have in normal form

Example

local maxmana = LibStub("LibDruidMana-1.0"):GetMaximumMana()