TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::Inspect::InspectItemData Struct Reference

#include <InspectPackets.h>

Public Member Functions

 InspectItemData (::Item const *item, uint8 index)
 

Public Attributes

ObjectGuid CreatorGUID
 
Item::ItemInstance Item
 
uint8 Index = 0
 
bool Usable = false
 
std::vector< InspectEnchantDataEnchants
 

Constructor & Destructor Documentation

WorldPackets::Inspect::InspectItemData::InspectItemData ( ::Item const item,
uint8  index 
)
Todo:
60 {
61  CreatorGUID = item->GetGuidValue(ITEM_FIELD_CREATOR);
62 
63  Item.Initialize(item);
64  Index = index;
65  Usable = true;
66 
67  for (uint8 i = 0; i < MAX_ENCHANTMENT_SLOT; ++i)
68  {
69  if (uint32 enchId = item->GetEnchantmentId(EnchantmentSlot(i)))
70  Enchants.emplace_back(enchId, i);
71  }
72 }
Definition: UpdateFields.h:44
EnchantmentSlot
Definition: Item.h:172
std::vector< InspectEnchantData > Enchants
Definition: InspectPackets.h:56
Definition: Item.h:190
uint8 Index
Definition: InspectPackets.h:54
Definition: Item.h:259
uint32_t uint32
Definition: Define.h:150
ObjectGuid CreatorGUID
Definition: InspectPackets.h:52
uint8_t uint8
Definition: Define.h:152
bool Usable
Definition: InspectPackets.h:55

+ Here is the call graph for this function:

Member Data Documentation

ObjectGuid WorldPackets::Inspect::InspectItemData::CreatorGUID
std::vector<InspectEnchantData> WorldPackets::Inspect::InspectItemData::Enchants
uint8 WorldPackets::Inspect::InspectItemData::Index = 0
Item::ItemInstance WorldPackets::Inspect::InspectItemData::Item
bool WorldPackets::Inspect::InspectItemData::Usable = false

The documentation for this struct was generated from the following files: