whoa/src/object/client/CGContainer.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
711 B
C++

#include "object/client/CGContainer.hpp"
#include "object/client/CGItem.hpp"
uint32_t CGContainer::GetBaseOffset() {
return CGItem::TotalFields();
}
uint32_t CGContainer::GetBaseOffsetSaved() {
return CGItem::TotalFieldsSaved();
}
uint32_t CGContainer::GetDataSize() {
return CGContainer::TotalFields() * sizeof(uint32_t);
}
uint32_t CGContainer::GetDataSizeSaved() {
return CGContainer::TotalFieldsSaved() * sizeof(uint32_t);
}
uint32_t CGContainer::TotalFields() {
return CGContainer::GetBaseOffset() + 74;
}
uint32_t CGContainer::TotalFieldsSaved() {
return CGContainer::GetBaseOffsetSaved() + 72;
}
CGContainerData* CGContainer::Container() const {
return this->m_cont;
}