Thread Tools Display Modes
10-01-18, 06:13 PM   #1
MuffinManKen
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 106
GET_ITEM_INFO_RECEIVED vs. ITEM_DATA_LOAD_RESULT

When I've wanted to preload some item data in the past I've called GetItemInfo and ignored the return value. Then when you get the GET_ITEM_INFO_RECEIVED event, the data should be there. I just noticed there's an alternate API C_Item.RequestLoadItemDataByID and it triggers a different event: ITEM_DATA_LOAD_RESULT.

The 2 events appear to have the same payload and indicate the same thing, just that they were initiated by a different API call. Does anyone know if there's any real difference?

I tried some timings and there wasn't a significant difference between GetItemInfo and RequestLoadItemDataByID. If there's no difference I'd probably go with RequestLoadItemDataByID since it's more self-documenting and as a new(er) API is likely to be supported for a longer time.
  Reply With Quote
10-01-18, 06:36 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
They probably made it so that GetItemInfo still works for the addons that use it still and maybe in the next API update it will be removed.
__________________
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » GET_ITEM_INFO_RECEIVED vs. ITEM_DATA_LOAD_RESULT

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off