TrinityCore
UF::ItemData Struct Reference

#include <UpdateFields.h>

+ Inheritance diagram for UF::ItemData:

Public Member Functions

void WriteCreate (ByteBuffer &data, EnumFlag< UpdateFieldFlag > fieldVisibilityFlags, Item const *owner, Player const *receiver) const
 
void WriteUpdate (ByteBuffer &data, EnumFlag< UpdateFieldFlag > fieldVisibilityFlags, Item const *owner, Player const *receiver) const
 
void WriteUpdate (ByteBuffer &data, Mask const &changesMask, bool ignoreNestedChangesMask, Item const *owner, Player const *receiver) const
 
void ClearChangesMask ()
 
- Public Member Functions inherited from UF::HasChangesMask< 41 >
MutableFieldReference< T, false > ModifyValue (UpdateField< T, BlockBit, Bit >(Derived::*field))
 
MutableFieldReference< T, false > ModifyValue (UpdateFieldArray< T, Size, Bit, FirstElementBit >(Derived::*field), uint32 index)
 
MutableFieldReference< T, false > ModifyValue (DynamicUpdateField< T, BlockBit, Bit >(Derived::*field))
 
MutableFieldReference< T, false > ModifyValue (DynamicUpdateField< T, BlockBit, Bit >(Derived::*field), uint32 index)
 
MutableFieldReference< T, false > ModifyValue (OptionalUpdateField< T, BlockBit, Bit >(Derived::*field))
 
void MarkChanged (UpdateField< T, BlockBit, Bit >(Derived::*))
 
void MarkChanged (UpdateFieldArray< T, Size, Bit, FirstElementBit >(Derived::*), uint32 index)
 
void MarkChanged (DynamicUpdateField< T, BlockBit, Bit >(Derived::*), uint32)
 
void MarkChanged (OptionalUpdateField< T, BlockBit, Bit >(Derived::*))
 
void ClearChanged (UpdateField< T, BlockBit, Bit >(Derived::*))
 
void ClearChanged (UpdateFieldArray< T, Size, Bit, FirstElementBit >(Derived::*), uint32 index)
 
void ClearChanged (DynamicUpdateField< T, BlockBit, Bit >(Derived::*field), uint32 index)
 
void ClearChanged (OptionalUpdateField< T, BlockBit, Bit >(Derived::*))
 
Mask const & GetChangesMask () const
 

Static Public Member Functions

static void AppendAllowedFieldsMaskForFlag (Mask &allowedMaskForTarget, EnumFlag< UpdateFieldFlag > fieldVisibilityFlags)
 
static void FilterDisallowedFieldsMaskForFlag (Mask &changesMask, EnumFlag< UpdateFieldFlag > fieldVisibilityFlags)
 

Public Attributes

DynamicUpdateField< UF::ArtifactPower, 0, 1 > ArtifactPowers
 
DynamicUpdateField< UF::SocketedGem, 0, 2 > Gems
 
UpdateField< ObjectGuid, 0, 3 > Owner
 
UpdateField< ObjectGuid, 0, 4 > ContainedIn
 
UpdateField< ObjectGuid, 0, 5 > Creator
 
UpdateField< ObjectGuid, 0, 6 > GiftCreator
 
UpdateField< uint32, 0, 7 > StackCount
 
UpdateField< uint32, 0, 8 > Expiration
 
UpdateField< uint32, 0, 9 > DynamicFlags
 
UpdateField< uint32, 0, 10 > Durability
 
UpdateField< uint32, 0, 11 > MaxDurability
 
UpdateField< uint32, 0, 12 > CreatePlayedTime
 
UpdateField< int32, 0, 13 > Context
 
UpdateField< int64, 0, 14 > CreateTime
 
UpdateField< uint64, 0, 15 > ArtifactXP
 
UpdateField< uint8, 0, 16 > ItemAppearanceModID
 
UpdateField< UF::ItemModList, 0, 17 > Modifiers
 
UpdateField< uint32, 0, 18 > DynamicFlags2
 
UpdateField< WorldPackets::Item::ItemBonusKey, 0, 19 > ItemBonusKey
 
UpdateField< uint16, 0, 20 > DEBUGItemLevel
 
UpdateFieldArray< int32, 5, 21, 22 > SpellCharges
 
UpdateFieldArray< UF::ItemEnchantment, 13, 27, 28 > Enchantment
 

Additional Inherited Members

- Public Types inherited from UF::HasChangesMask< 41 >
using Base = HasChangesMask< Bits >
 
using Mask = UpdateMask< Bits >
 
- Static Protected Member Functions inherited from UF::HasChangesMask< 41 >
static void ClearChangesMask (UpdateField< T, BlockBit, Bit > &field)
 
static void ClearChangesMask (UpdateField< T, BlockBit, Bit > &, std::false_type)
 
static void ClearChangesMask (UpdateField< T, BlockBit, Bit > &field, std::true_type)
 
static void ClearChangesMask (UpdateFieldArray< T, Size, Bit, FirstElementBit > &field)
 
static void ClearChangesMask (UpdateFieldArray< T, Size, Bit, FirstElementBit > &, std::false_type)
 
static void ClearChangesMask (UpdateFieldArray< T, Size, Bit, FirstElementBit > &field, std::true_type)
 
static void ClearChangesMask (DynamicUpdateField< T, BlockBit, Bit > &field)
 
static void ClearChangesMask (DynamicUpdateField< T, BlockBit, Bit > &, std::false_type)
 
static void ClearChangesMask (DynamicUpdateField< T, BlockBit, Bit > &field, std::true_type)
 
static void ClearChangesMask (OptionalUpdateField< T, BlockBit, Bit > &field)
 
static void ClearChangesMask (OptionalUpdateField< T, BlockBit, Bit > &, std::false_type)
 
static void ClearChangesMask (OptionalUpdateField< T, BlockBit, Bit > &field, std::true_type)
 
- Protected Attributes inherited from UF::HasChangesMask< 41 >
Mask _changesMask
 

Detailed Description

Definition at line 118 of file UpdateFields.h.

Member Function Documentation

◆ AppendAllowedFieldsMaskForFlag()

void UF::ItemData::AppendAllowedFieldsMaskForFlag ( Mask allowedMaskForTarget,
EnumFlag< UpdateFieldFlag fieldVisibilityFlags 
)
static

Definition at line 325 of file UpdateFields.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ClearChangesMask()

void UF::ItemData::ClearChangesMask ( )

Definition at line 480 of file UpdateFields.cpp.

+ Here is the call graph for this function:

◆ FilterDisallowedFieldsMaskForFlag()

void UF::ItemData::FilterDisallowedFieldsMaskForFlag ( Mask changesMask,
EnumFlag< UpdateFieldFlag fieldVisibilityFlags 
)
static

Definition at line 331 of file UpdateFields.cpp.

+ Here is the call graph for this function:

◆ WriteCreate()

void UF::ItemData::WriteCreate ( ByteBuffer data,
EnumFlag< UpdateFieldFlag fieldVisibilityFlags,
Item const *  owner,
Player const *  receiver 
) const

Definition at line 263 of file UpdateFields.cpp.

+ Here is the call graph for this function:

◆ WriteUpdate() [1/2]

void UF::ItemData::WriteUpdate ( ByteBuffer data,
EnumFlag< UpdateFieldFlag fieldVisibilityFlags,
Item const *  owner,
Player const *  receiver 
) const

Definition at line 318 of file UpdateFields.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ WriteUpdate() [2/2]

void UF::ItemData::WriteUpdate ( ByteBuffer data,
Mask const &  changesMask,
bool  ignoreNestedChangesMask,
Item const *  owner,
Player const *  receiver 
) const

Definition at line 338 of file UpdateFields.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ ArtifactPowers

DynamicUpdateField<UF::ArtifactPower, 0, 1> UF::ItemData::ArtifactPowers

Definition at line 120 of file UpdateFields.h.

◆ ArtifactXP

UpdateField<uint64, 0, 15> UF::ItemData::ArtifactXP

Definition at line 134 of file UpdateFields.h.

◆ ContainedIn

UpdateField<ObjectGuid, 0, 4> UF::ItemData::ContainedIn

Definition at line 123 of file UpdateFields.h.

◆ Context

UpdateField<int32, 0, 13> UF::ItemData::Context

Definition at line 132 of file UpdateFields.h.

◆ CreatePlayedTime

UpdateField<uint32, 0, 12> UF::ItemData::CreatePlayedTime

Definition at line 131 of file UpdateFields.h.

◆ CreateTime

UpdateField<int64, 0, 14> UF::ItemData::CreateTime

Definition at line 133 of file UpdateFields.h.

◆ Creator

UpdateField<ObjectGuid, 0, 5> UF::ItemData::Creator

Definition at line 124 of file UpdateFields.h.

◆ DEBUGItemLevel

UpdateField<uint16, 0, 20> UF::ItemData::DEBUGItemLevel

Definition at line 139 of file UpdateFields.h.

◆ Durability

UpdateField<uint32, 0, 10> UF::ItemData::Durability

Definition at line 129 of file UpdateFields.h.

◆ DynamicFlags

UpdateField<uint32, 0, 9> UF::ItemData::DynamicFlags

Definition at line 128 of file UpdateFields.h.

◆ DynamicFlags2

UpdateField<uint32, 0, 18> UF::ItemData::DynamicFlags2

Definition at line 137 of file UpdateFields.h.

◆ Enchantment

UpdateFieldArray<UF::ItemEnchantment, 13, 27, 28> UF::ItemData::Enchantment

Definition at line 141 of file UpdateFields.h.

◆ Expiration

UpdateField<uint32, 0, 8> UF::ItemData::Expiration

Definition at line 127 of file UpdateFields.h.

◆ Gems

DynamicUpdateField<UF::SocketedGem, 0, 2> UF::ItemData::Gems

Definition at line 121 of file UpdateFields.h.

◆ GiftCreator

UpdateField<ObjectGuid, 0, 6> UF::ItemData::GiftCreator

Definition at line 125 of file UpdateFields.h.

◆ ItemAppearanceModID

UpdateField<uint8, 0, 16> UF::ItemData::ItemAppearanceModID

Definition at line 135 of file UpdateFields.h.

◆ ItemBonusKey

UpdateField<WorldPackets::Item::ItemBonusKey, 0, 19> UF::ItemData::ItemBonusKey

Definition at line 138 of file UpdateFields.h.

◆ MaxDurability

UpdateField<uint32, 0, 11> UF::ItemData::MaxDurability

Definition at line 130 of file UpdateFields.h.

◆ Modifiers

UpdateField<UF::ItemModList, 0, 17> UF::ItemData::Modifiers

Definition at line 136 of file UpdateFields.h.

◆ Owner

UpdateField<ObjectGuid, 0, 3> UF::ItemData::Owner

Definition at line 122 of file UpdateFields.h.

◆ SpellCharges

UpdateFieldArray<int32, 5, 21, 22> UF::ItemData::SpellCharges

Definition at line 140 of file UpdateFields.h.

◆ StackCount

UpdateField<uint32, 0, 7> UF::ItemData::StackCount

Definition at line 126 of file UpdateFields.h.


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