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

#include <ItemPackets.h>

Public Member Functions

bool operator== (ItemBonusInstanceData const &r) const
 
bool operator!= (ItemBonusInstanceData const &r) const
 

Public Attributes

uint8 Context = 0
 
std::vector< int32BonusListIDs
 

Member Function Documentation

bool WorldPackets::Item::ItemBonusInstanceData::operator!= ( ItemBonusInstanceData const r) const
inline
37 { return !(*this == r); }
bool WorldPackets::Item::ItemBonusInstanceData::operator== ( ItemBonusInstanceData const r) const
22 {
23  if (Context != r.Context)
24  return false;
25 
26  if (BonusListIDs.size() != r.BonusListIDs.size())
27  return false;
28 
29  return std::is_permutation(BonusListIDs.begin(), BonusListIDs.end(), r.BonusListIDs.begin());
30 }
std::vector< int32 > BonusListIDs
Definition: ItemPackets.h:34
uint8 Context
Definition: ItemPackets.h:33

Member Data Documentation

std::vector<int32> WorldPackets::Item::ItemBonusInstanceData::BonusListIDs
uint8 WorldPackets::Item::ItemBonusInstanceData::Context = 0

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