comparison Modules/QuickAuctions.lua @ 64:e92a5adf75bf

Added first public API.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Tue, 27 Jul 2010 18:00:00 -0700
parents e7d287cc3b02
children b6c30a5156f9
comparison
equal deleted inserted replaced
63:e7d287cc3b02 64:e92a5adf75bf
1 local ItemAuditor = select(2, ...) 1 local ItemAuditor = select(2, ...)
2 local QuickAuctions= ItemAuditor:NewModule("QuickAuctions") 2 local QuickAuctions= ItemAuditor:NewModule("QuickAuctions")
3 local Crafting = ItemAuditor:GetModule("Crafting")
3 4
4 --[[ 5 --[[
5 This is simply for compatibility while I change the QA API. Once 6 This is simply for compatibility while I change the QA API. Once
6 my changes get merged into the main project, this can go away. 7 my changes get merged into the main project, this can go away.
7 ]] 8 ]]
111 return -1 112 return -1
112 end 113 end
113 end 114 end
114 return 0 115 return 0
115 end 116 end
116 ItemAuditor:RegisterCraftingDecider('IA QuickAuctions', isProfitable) 117 Crafting.RegisterCraftingDecider('IA QuickAuctions', isProfitable)
117 118
118 --[[ 119 --[[
119 This is based on KTQ 120 This is based on KTQ
120 ]] 121 ]]
121 function ItemAuditor:Queue() 122 function ItemAuditor:Queue()