TrinityCore
UF::ObjectData Struct Reference

#include <UpdateFields.h>

+ Inheritance diagram for UF::ObjectData:

Classes

struct  DynamicFlagsTag
 
struct  EntryIDTag
 

Public Member Functions

void WriteCreate (ByteBuffer &data, EnumFlag< UpdateFieldFlag > fieldVisibilityFlags, Object const *owner, Player const *receiver) const
 
void WriteUpdate (ByteBuffer &data, EnumFlag< UpdateFieldFlag > fieldVisibilityFlags, Object const *owner, Player const *receiver) const
 
void WriteUpdate (ByteBuffer &data, Mask const &changesMask, bool ignoreNestedChangesMask, Object const *owner, Player const *receiver) const
 
void ClearChangesMask ()
 
- Public Member Functions inherited from UF::HasChangesMask< 4 >
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
 

Public Attributes

UpdateField< int32, 0, 1 > EntryID
 
UpdateField< uint32, 0, 2 > DynamicFlags
 
UpdateField< float, 0, 3 > Scale
 

Additional Inherited Members

- Public Types inherited from UF::HasChangesMask< 4 >
using Base = HasChangesMask< Bits >
 
using Mask = UpdateMask< Bits >
 
- Static Protected Member Functions inherited from UF::HasChangesMask< 4 >
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< 4 >
Mask _changesMask
 

Detailed Description

Definition at line 49 of file UpdateFields.h.

Member Function Documentation

◆ ClearChangesMask()

void ObjectData::ClearChangesMask ( )

Definition at line 72 of file UpdateFields.cpp.

+ Here is the call graph for this function:

◆ WriteCreate()

void ObjectData::WriteCreate ( ByteBuffer data,
EnumFlag< UpdateFieldFlag fieldVisibilityFlags,
Object const *  owner,
Player const *  receiver 
) const

Definition at line 38 of file UpdateFields.cpp.

◆ WriteUpdate() [1/2]

void ObjectData::WriteUpdate ( ByteBuffer data,
EnumFlag< UpdateFieldFlag fieldVisibilityFlags,
Object const *  owner,
Player const *  receiver 
) const

Definition at line 45 of file UpdateFields.cpp.

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

◆ WriteUpdate() [2/2]

void ObjectData::WriteUpdate ( ByteBuffer data,
Mask const &  changesMask,
bool  ignoreNestedChangesMask,
Object const *  owner,
Player const *  receiver 
) const

Definition at line 50 of file UpdateFields.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ DynamicFlags

UpdateField<uint32, 0, 2> UF::ObjectData::DynamicFlags

Definition at line 53 of file UpdateFields.h.

◆ EntryID

UpdateField<int32, 0, 1> UF::ObjectData::EntryID

Definition at line 51 of file UpdateFields.h.

◆ Scale

UpdateField<float, 0, 3> UF::ObjectData::Scale

Definition at line 55 of file UpdateFields.h.


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