Mercurial > wow > itemauditor
diff Modules/Api.lua @ 96:1fbbe3b53f6e
API: added IAapi.GetItemCost
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Thu, 12 Aug 2010 07:11:57 -0700 |
parents | 63823b6b5e28 |
children |
line wrap: on
line diff
--- a/Modules/Api.lua Thu Aug 12 00:54:00 2010 -0700 +++ b/Modules/Api.lua Thu Aug 12 07:11:57 2010 -0700 @@ -42,6 +42,13 @@ Crafting.UnRegisterQueueDestination(name) end +function IAapi.GetItemCost(link) + assert(link, 'usage: IAapi.GetItemCost(itemLink)') + return ItemAuditor:GetItemCost(link) +end + + + local function registerLoadedAddons() return ItemAuditor_RegisterAPI and ItemAuditor_RegisterAPI() end