whoa/src/object/client/CGCorpse.cpp
fallenoak 87ae3b512b
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
feat(object): clean up data struct visibility
2026-02-02 08:47:50 -06:00

31 lines
676 B
C++

#include "object/client/CGCorpse.hpp"
#include "object/client/CGObject.hpp"
uint32_t CGCorpse::GetBaseOffset() {
return CGObject::TotalFields();
}
uint32_t CGCorpse::GetBaseOffsetSaved() {
return CGObject::TotalFieldsSaved();
}
uint32_t CGCorpse::GetDataSize() {
return CGCorpse::TotalFields() * sizeof(uint32_t);
}
uint32_t CGCorpse::GetDataSizeSaved() {
return CGCorpse::TotalFieldsSaved() * sizeof(uint32_t);
}
uint32_t CGCorpse::TotalFields() {
return CGCorpse::GetBaseOffset() + 30;
}
uint32_t CGCorpse::TotalFieldsSaved() {
return CGCorpse::GetBaseOffsetSaved() + 3;
}
CGCorpseData* CGCorpse::Corpse() const {
return this->m_corpse;
}