TrinityCore
UF Namespace Reference

Classes

struct  ActivePlayerData
 
struct  ActivePlayerUnk901
 
struct  AreaTriggerData
 
struct  ArenaCooldown
 
struct  ArtifactPower
 
struct  AzeriteEmpoweredItemData
 
struct  AzeriteItemData
 
struct  CharacterRestriction
 
struct  ChrCustomizationChoice
 
struct  ContainerData
 
struct  ConversationActor
 
struct  ConversationData
 
struct  ConversationLine
 
struct  CorpseData
 
struct  CTROptions
 
struct  DynamicObjectData
 
class  DynamicUpdateField
 
class  DynamicUpdateFieldBase
 
struct  DynamicUpdateFieldSetter
 
struct  GameObjectData
 
class  HasChangesMask
 
struct  HasChangesMaskTag
 
struct  IsUpdateFieldHolderTag
 
struct  IsUpdateFieldStructureTag
 
struct  ItemData
 
struct  ItemEnchantment
 
struct  ItemMod
 
struct  ItemModList
 
struct  MawPower
 
struct  MultiFloorExplore
 
struct  MutableFieldReference
 
struct  MutableNestedFieldReference
 
struct  ObjectData
 
class  OptionalUpdateField
 
class  OptionalUpdateFieldBase
 
struct  OptionalUpdateFieldSetter
 
struct  PassiveSpellHistory
 
struct  PlayerData
 
struct  PVPInfo
 
struct  QuestLog
 
struct  QuestSession
 
struct  RecipeProgressionInfo
 
struct  ReplayedQuest
 
struct  Research
 
struct  RestInfo
 
struct  ScaleCurve
 
struct  SceneObjectData
 
struct  SelectedAzeriteEssences
 
struct  SkillInfo
 
struct  SocketedGem
 
struct  SpellCastVisual
 
struct  SpellFlatModByLabel
 
struct  SpellPctModByLabel
 
struct  UnitChannel
 
struct  UnitData
 
struct  UnlockedAzeriteEssence
 
class  UpdateField
 
class  UpdateFieldArray
 
class  UpdateFieldArrayBase
 
class  UpdateFieldArrayBaseWithoutSize
 
class  UpdateFieldBase
 
class  UpdateFieldHolder
 
struct  UpdateFieldPublicSetter
 
struct  UpdateFieldSetter
 
class  ViewerDependentValue
 
class  ViewerDependentValue< UF::ConversationData::LastLineEndTimeTag >
 
class  ViewerDependentValue< UF::ConversationLine::StartTimeTag >
 
class  ViewerDependentValue< UF::GameObjectData::FlagsTag >
 
class  ViewerDependentValue< UF::GameObjectData::LevelTag >
 
class  ViewerDependentValue< UF::GameObjectData::StateTag >
 
class  ViewerDependentValue< UF::ObjectData::DynamicFlagsTag >
 
class  ViewerDependentValue< UF::UnitData::AuraStateTag >
 
class  ViewerDependentValue< UF::UnitData::DisplayIDTag >
 
class  ViewerDependentValue< UF::UnitData::FactionTemplateTag >
 
class  ViewerDependentValue< UF::UnitData::FlagsTag >
 
class  ViewerDependentValue< UF::UnitData::NpcFlagsTag >
 
class  ViewerDependentValue< UF::UnitData::PvpFlagsTag >
 
struct  ViewerDependentValueTag
 
struct  VisibleItem
 
struct  VisualAnim
 

Enumerations

enum  UpdateFieldFlag : uint8 {
  UpdateFieldFlag::None = 0, UpdateFieldFlag::Owner = 0x01, UpdateFieldFlag::PartyMember = 0x02, UpdateFieldFlag::UnitAll = 0x04,
  UpdateFieldFlag::Empath = 0x08
}
 

Functions

template<typename T >
bool SetUpdateFieldValue (UpdateFieldSetter< T > &setter, typename UpdateFieldSetter< T >::value_type &&value)
 
template<typename T >
DynamicUpdateFieldSetter< T >::insert_result AddDynamicUpdateFieldValue (DynamicUpdateFieldSetter< T > &setter)
 
template<typename T >
DynamicUpdateFieldSetter< T >::insert_result InsertDynamicUpdateFieldValue (DynamicUpdateFieldSetter< T > &setter, uint32 index)
 
template<typename T >
void RemoveDynamicUpdateFieldValue (DynamicUpdateFieldSetter< T > &setter, uint32 index)
 
template<typename T >
void ClearDynamicUpdateFieldValues (DynamicUpdateFieldSetter< T > &setter)
 
template<typename T >
void RemoveOptionalUpdateFieldValue (OptionalUpdateFieldSetter< T > &setter)
 
 DEFINE_ENUM_FLAG (UpdateFieldFlag)
 
void WriteDynamicFieldUpdateMask (std::size_t size, std::vector< uint32 > const &updateMask, ByteBuffer &data, int32 bitsForSize=32)
 
void WriteCompleteDynamicFieldUpdateMask (std::size_t size, ByteBuffer &data, int32 bitsForSize=32)
 
ByteBufferoperator<< (ByteBuffer &data, ChrCustomizationChoice const &customizationChoice)
 
ByteBufferoperator>> (ByteBuffer &data, ChrCustomizationChoice &customizationChoice)
 

Enumeration Type Documentation

◆ UpdateFieldFlag

enum UF::UpdateFieldFlag : uint8
strong
Enumerator
None 
Owner 
PartyMember 
UnitAll 
Empath 
33  : uint8
34  {
35  None = 0,
36  Owner = 0x01,
37  PartyMember = 0x02,
38  UnitAll = 0x04,
39  Empath = 0x08
40  };
uint8_t uint8
Definition: Define.h:154

Function Documentation

◆ AddDynamicUpdateFieldValue()

template<typename T >
DynamicUpdateFieldSetter<T>::insert_result UF::AddDynamicUpdateFieldValue ( DynamicUpdateFieldSetter< T > &  setter)
inline
115  {
116  return setter.AddValue();
117  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ClearDynamicUpdateFieldValues()

template<typename T >
void UF::ClearDynamicUpdateFieldValues ( DynamicUpdateFieldSetter< T > &  setter)
inline
133  {
134  setter.Clear();
135  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DEFINE_ENUM_FLAG()

UF::DEFINE_ENUM_FLAG ( UpdateFieldFlag  )

◆ InsertDynamicUpdateFieldValue()

template<typename T >
DynamicUpdateFieldSetter<T>::insert_result UF::InsertDynamicUpdateFieldValue ( DynamicUpdateFieldSetter< T > &  setter,
uint32  index 
)
inline
121  {
122  return setter.InsertValue(index);
123  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator<<()

ByteBuffer & UF::operator<< ( ByteBuffer data,
ChrCustomizationChoice const &  customizationChoice 
)
28 {
29  data << uint32(customizationChoice.ChrCustomizationOptionID);
30  data << uint32(customizationChoice.ChrCustomizationChoiceID);
31 
32  return data;
33 }
uint32_t uint32
Definition: Define.h:152

◆ operator>>()

ByteBuffer & UF::operator>> ( ByteBuffer data,
ChrCustomizationChoice customizationChoice 
)
36 {
37  data >> customizationChoice.ChrCustomizationOptionID;
38  data >> customizationChoice.ChrCustomizationChoiceID;
39 
40  return data;
41 }

◆ RemoveDynamicUpdateFieldValue()

template<typename T >
void UF::RemoveDynamicUpdateFieldValue ( DynamicUpdateFieldSetter< T > &  setter,
uint32  index 
)
inline
127  {
128  setter.RemoveValue(index);
129  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveOptionalUpdateFieldValue()

template<typename T >
void UF::RemoveOptionalUpdateFieldValue ( OptionalUpdateFieldSetter< T > &  setter)
inline
139  {
140  setter.RemoveValue();
141  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetUpdateFieldValue()

template<typename T >
bool UF::SetUpdateFieldValue ( UpdateFieldSetter< T > &  setter,
typename UpdateFieldSetter< T >::value_type &&  value 
)
inline
109  {
110  return setter.SetValue(std::move(value));
111  }
+ Here is the call graph for this function:

◆ WriteCompleteDynamicFieldUpdateMask()

void UF::WriteCompleteDynamicFieldUpdateMask ( std::size_t  size,
ByteBuffer data,
int32  bitsForSize = 32 
)
44 {
45  data.WriteBits(size, bitsForSize);
46  if (size > 32)
47  {
48  if (data.HasUnfinishedBitPack())
49  for (std::size_t block = 0; block < size / 32; ++block)
50  data.WriteBits(0xFFFFFFFFu, 32);
51  else
52  for (std::size_t block = 0; block < size / 32; ++block)
53  data << uint32(0xFFFFFFFFu);
54  }
55  else if (size == 32)
56  {
57  data.WriteBits(0xFFFFFFFFu, 32);
58  return;
59  }
60 
61  if (size % 32)
62  data.WriteBits(0xFFFFFFFFu, size % 32);
63 }
void WriteBits(std::size_t value, int32 bits)
Definition: ByteBuffer.h:203
uint32_t uint32
Definition: Define.h:152
bool HasUnfinishedBitPack() const
Definition: ByteBuffer.h:150
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ WriteDynamicFieldUpdateMask()

void UF::WriteDynamicFieldUpdateMask ( std::size_t  size,
std::vector< uint32 > const &  updateMask,
ByteBuffer data,
int32  bitsForSize = 32 
)
22 {
23  data.WriteBits(size, bitsForSize);
24  if (size > 32)
25  {
26  if (data.HasUnfinishedBitPack())
27  for (std::size_t block = 0; block < size / 32; ++block)
28  data.WriteBits(updateMask[block], 32);
29  else
30  for (std::size_t block = 0; block < size / 32; ++block)
31  data << uint32(updateMask[block]);
32  }
33  else if (size == 32)
34  {
35  data.WriteBits(updateMask.back(), 32);
36  return;
37  }
38 
39  if (size % 32)
40  data.WriteBits(updateMask.back(), size % 32);
41 }
void WriteBits(std::size_t value, int32 bits)
Definition: ByteBuffer.h:203
uint32_t uint32
Definition: Define.h:152
bool HasUnfinishedBitPack() const
Definition: ByteBuffer.h:150
+ Here is the call graph for this function:
+ Here is the caller graph for this function: