mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-19 14:11:06 +03:00
Some checks are pending
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Waiting to run
42 lines
803 B
C++
42 lines
803 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;
|
|
}
|
|
|
|
OBJECT_TYPE CGObject::GetType() const {
|
|
return this->m_obj->m_type;
|
|
}
|
|
|
|
OBJECT_TYPE_ID CGObject::GetTypeID() const {
|
|
return this->m_typeID;
|
|
}
|
|
|
|
CGObjectData* CGObject::Obj() const {
|
|
return this->m_obj;
|
|
}
|