AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
BuildValuesCachePosPointers Struct Reference

#include "UnitUtils.h"

Public Member Functions

 BuildValuesCachePosPointers ()
 
void ApplyOffset (uint32 offset)
 

Public Attributes

int32 UnitNPCFlagsPos
 
int32 UnitFieldAuraStatePos
 
int32 UnitFieldFlagsPos
 
int32 UnitFieldDisplayPos
 
int32 UnitDynamicFlagsPos
 
int32 UnitFieldBytes2Pos
 
int32 UnitFieldFactionTemplatePos
 
std::unordered_map< uint16, uint32other
 

Detailed Description

Constructor & Destructor Documentation

◆ BuildValuesCachePosPointers()

BuildValuesCachePosPointers::BuildValuesCachePosPointers ( )
inline
66 :
int32 UnitFieldFlagsPos
Definition: UnitUtils.h:99
int32 UnitFieldDisplayPos
Definition: UnitUtils.h:100
int32 UnitDynamicFlagsPos
Definition: UnitUtils.h:101
int32 UnitFieldAuraStatePos
Definition: UnitUtils.h:98
int32 UnitFieldFactionTemplatePos
Definition: UnitUtils.h:103
int32 UnitFieldBytes2Pos
Definition: UnitUtils.h:102
int32 UnitNPCFlagsPos
Definition: UnitUtils.h:97

Member Function Documentation

◆ ApplyOffset()

void BuildValuesCachePosPointers::ApplyOffset ( uint32  offset)
inline
71 {
72 if (UnitNPCFlagsPos >= 0)
73 UnitNPCFlagsPos += offset;
74
75 if (UnitFieldAuraStatePos >= 0)
76 UnitFieldAuraStatePos += offset;
77
78 if (UnitFieldFlagsPos >= 0)
79 UnitFieldFlagsPos += offset;
80
81 if (UnitFieldDisplayPos >= 0)
82 UnitFieldDisplayPos += offset;
83
84 if (UnitDynamicFlagsPos >= 0)
85 UnitDynamicFlagsPos += offset;
86
87 if (UnitFieldBytes2Pos >= 0)
88 UnitFieldBytes2Pos += offset;
89
92
93 for (auto it = other.begin(); it != other.end(); ++it)
94 it->second += offset;
95 }
std::unordered_map< uint16, uint32 > other
Definition: UnitUtils.h:105

References other, UnitDynamicFlagsPos, UnitFieldAuraStatePos, UnitFieldBytes2Pos, UnitFieldDisplayPos, UnitFieldFactionTemplatePos, UnitFieldFlagsPos, and UnitNPCFlagsPos.

Referenced by Unit::BuildValuesUpdate().

Member Data Documentation

◆ other

std::unordered_map<uint16 , uint32 > BuildValuesCachePosPointers::other

◆ UnitDynamicFlagsPos

int32 BuildValuesCachePosPointers::UnitDynamicFlagsPos

◆ UnitFieldAuraStatePos

int32 BuildValuesCachePosPointers::UnitFieldAuraStatePos

◆ UnitFieldBytes2Pos

int32 BuildValuesCachePosPointers::UnitFieldBytes2Pos

◆ UnitFieldDisplayPos

int32 BuildValuesCachePosPointers::UnitFieldDisplayPos

◆ UnitFieldFactionTemplatePos

int32 BuildValuesCachePosPointers::UnitFieldFactionTemplatePos

◆ UnitFieldFlagsPos

int32 BuildValuesCachePosPointers::UnitFieldFlagsPos

◆ UnitNPCFlagsPos

int32 BuildValuesCachePosPointers::UnitNPCFlagsPos