mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 08:42:45 +03:00
30 lines
588 B
C++
30 lines
588 B
C++
#include "object/client/CGObject.hpp"
|
|
|
|
uint32_t CGObject::GetBaseOffset() {
|
|
return 0;
|
|
}
|
|
|
|
uint32_t CGObject::GetBaseOffsetSaved() {
|
|
return 0;
|
|
}
|
|
|
|
uint32_t CGObject::GetDataSize() {
|
|
return CGObject::TotalFields() * sizeof(uint32_t);
|
|
}
|
|
|
|
uint32_t CGObject::GetDataSizeSaved() {
|
|
return CGObject::TotalFieldsSaved() * sizeof(uint32_t);
|
|
}
|
|
|
|
uint32_t CGObject::TotalFields() {
|
|
return CGObject::GetBaseOffset() + 6;
|
|
}
|
|
|
|
uint32_t CGObject::TotalFieldsSaved() {
|
|
return CGObject::GetBaseOffsetSaved() + 3;
|
|
}
|
|
|
|
WOWGUID CGObject::GetGUID() const {
|
|
return this->m_obj->m_guid;
|
|
}
|