TrinityCore
UF::GameObjectData Struct Reference

#include <UpdateFields.h>

+ Inheritance diagram for UF::GameObjectData:

Classes

struct  FlagsTag
 
struct  StateTag
 

Public Member Functions

void WriteCreate (ByteBuffer &data, EnumFlag< UpdateFieldFlag > fieldVisibilityFlags, GameObject const *owner, Player const *receiver) const
 
void WriteUpdate (ByteBuffer &data, EnumFlag< UpdateFieldFlag > fieldVisibilityFlags, GameObject const *owner, Player const *receiver) const
 
void WriteUpdate (ByteBuffer &data, Mask const &changesMask, bool ignoreNestedChangesMask, GameObject const *owner, Player const *receiver) const
 
void ClearChangesMask ()
 
- Public Member Functions inherited from UF::HasChangesMask< 25 >
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< std::vector< uint32 >, 0, 1 > StateWorldEffectIDs
 
DynamicUpdateField< int32, 0, 2 > EnableDoodadSets
 
DynamicUpdateField< int32, 0, 3 > WorldEffects
 
UpdateField< int32, 0, 4 > DisplayID
 
UpdateField< uint32, 0, 5 > SpellVisualID
 
UpdateField< uint32, 0, 6 > StateSpellVisualID
 
UpdateField< uint32, 0, 7 > SpawnTrackingStateAnimID
 
UpdateField< uint32, 0, 8 > SpawnTrackingStateAnimKitID
 
UpdateField< uint32, 0, 9 > StateWorldEffectsQuestObjectiveID
 
UpdateField< ObjectGuid, 0, 10 > CreatedBy
 
UpdateField< ObjectGuid, 0, 11 > GuildGUID
 
UpdateField< uint32, 0, 12 > Flags
 
UpdateField< QuaternionData, 0, 13 > ParentRotation
 
UpdateField< int32, 0, 14 > FactionTemplate
 
UpdateField< int8, 0, 15 > State
 
UpdateField< int8, 0, 16 > TypeID
 
UpdateField< uint8, 0, 17 > PercentHealth
 
UpdateField< uint32, 0, 18 > ArtKit
 
UpdateField< uint32, 0, 19 > CustomParam
 
UpdateField< int32, 0, 20 > Level
 
UpdateField< uint32, 0, 21 > AnimGroupInstance
 
UpdateField< uint32, 0, 22 > UiWidgetItemID
 
UpdateField< uint32, 0, 23 > UiWidgetItemQuality
 
UpdateField< uint32, 0, 24 > UiWidgetItemUnknown1000
 

Additional Inherited Members

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

Detailed Description

Definition at line 1182 of file UpdateFields.h.

Member Function Documentation

◆ ClearChangesMask()

void GameObjectData::ClearChangesMask ( )

Definition at line 6609 of file UpdateFields.cpp.

+ Here is the call graph for this function:

◆ WriteCreate()

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

Definition at line 6415 of file UpdateFields.cpp.

+ Here is the call graph for this function:

◆ WriteUpdate() [1/2]

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

Definition at line 6458 of file UpdateFields.cpp.

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

◆ WriteUpdate() [2/2]

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

Definition at line 6463 of file UpdateFields.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ AnimGroupInstance

UpdateField<uint32, 0, 21> UF::GameObjectData::AnimGroupInstance

Definition at line 1206 of file UpdateFields.h.

◆ ArtKit

UpdateField<uint32, 0, 18> UF::GameObjectData::ArtKit

Definition at line 1203 of file UpdateFields.h.

◆ CreatedBy

UpdateField<ObjectGuid, 0, 10> UF::GameObjectData::CreatedBy

Definition at line 1193 of file UpdateFields.h.

◆ CustomParam

UpdateField<uint32, 0, 19> UF::GameObjectData::CustomParam

Definition at line 1204 of file UpdateFields.h.

◆ DisplayID

UpdateField<int32, 0, 4> UF::GameObjectData::DisplayID

Definition at line 1187 of file UpdateFields.h.

◆ EnableDoodadSets

DynamicUpdateField<int32, 0, 2> UF::GameObjectData::EnableDoodadSets

Definition at line 1185 of file UpdateFields.h.

◆ FactionTemplate

UpdateField<int32, 0, 14> UF::GameObjectData::FactionTemplate

Definition at line 1198 of file UpdateFields.h.

◆ Flags

UpdateField<uint32, 0, 12> UF::GameObjectData::Flags

Definition at line 1195 of file UpdateFields.h.

◆ GuildGUID

UpdateField<ObjectGuid, 0, 11> UF::GameObjectData::GuildGUID

Definition at line 1194 of file UpdateFields.h.

◆ Level

UpdateField<int32, 0, 20> UF::GameObjectData::Level

Definition at line 1205 of file UpdateFields.h.

◆ ParentRotation

UpdateField<QuaternionData, 0, 13> UF::GameObjectData::ParentRotation

Definition at line 1197 of file UpdateFields.h.

◆ PercentHealth

UpdateField<uint8, 0, 17> UF::GameObjectData::PercentHealth

Definition at line 1202 of file UpdateFields.h.

◆ SpawnTrackingStateAnimID

UpdateField<uint32, 0, 7> UF::GameObjectData::SpawnTrackingStateAnimID

Definition at line 1190 of file UpdateFields.h.

◆ SpawnTrackingStateAnimKitID

UpdateField<uint32, 0, 8> UF::GameObjectData::SpawnTrackingStateAnimKitID

Definition at line 1191 of file UpdateFields.h.

◆ SpellVisualID

UpdateField<uint32, 0, 5> UF::GameObjectData::SpellVisualID

Definition at line 1188 of file UpdateFields.h.

◆ State

UpdateField<int8, 0, 15> UF::GameObjectData::State

Definition at line 1199 of file UpdateFields.h.

◆ StateSpellVisualID

UpdateField<uint32, 0, 6> UF::GameObjectData::StateSpellVisualID

Definition at line 1189 of file UpdateFields.h.

◆ StateWorldEffectIDs

UpdateField<std::vector<uint32>, 0, 1> UF::GameObjectData::StateWorldEffectIDs

Definition at line 1184 of file UpdateFields.h.

◆ StateWorldEffectsQuestObjectiveID

UpdateField<uint32, 0, 9> UF::GameObjectData::StateWorldEffectsQuestObjectiveID

Definition at line 1192 of file UpdateFields.h.

◆ TypeID

UpdateField<int8, 0, 16> UF::GameObjectData::TypeID

Definition at line 1201 of file UpdateFields.h.

◆ UiWidgetItemID

UpdateField<uint32, 0, 22> UF::GameObjectData::UiWidgetItemID

Definition at line 1207 of file UpdateFields.h.

◆ UiWidgetItemQuality

UpdateField<uint32, 0, 23> UF::GameObjectData::UiWidgetItemQuality

Definition at line 1208 of file UpdateFields.h.

◆ UiWidgetItemUnknown1000

UpdateField<uint32, 0, 24> UF::GameObjectData::UiWidgetItemUnknown1000

Definition at line 1209 of file UpdateFields.h.

◆ WorldEffects

DynamicUpdateField<int32, 0, 3> UF::GameObjectData::WorldEffects

Definition at line 1186 of file UpdateFields.h.


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