comparison Main.lua @ 260:3558ba83eacd

Added comment support for cursor types: item, merchant (which maps to item), spell.
author James D. Callahan III <jcallahan@curse.com>
date Mon, 18 Mar 2013 17:58:08 -0500
parents 834251607624
children 03f1fbe64104
comparison
equal deleted inserted replaced
259:eac4dc8f462e 260:3558ba83eacd
370 if not item_link then 370 if not item_link then
371 return 371 return
372 end 372 end
373 return tonumber(item_link:match("item:(%d+)")) 373 return tonumber(item_link:match("item:(%d+)"))
374 end 374 end
375 375 private.ItemLinkToID = ItemLinkToID
376 376
377 local function UnitTypeIsNPC(unit_type) 377 local function UnitTypeIsNPC(unit_type)
378 return unit_type == private.UNIT_TYPES.NPC or unit_type == private.UNIT_TYPES.VEHICLE 378 return unit_type == private.UNIT_TYPES.NPC or unit_type == private.UNIT_TYPES.VEHICLE
379 end 379 end
380 380