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
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
#include "object/client/CGPlayer.hpp"
|
|
#include "object/client/CGUnit.hpp"
|
|
|
|
uint32_t CGPlayer::GetBaseOffset() {
|
|
return CGUnit::TotalFields();
|
|
}
|
|
|
|
uint32_t CGPlayer::GetBaseOffsetSaved() {
|
|
return CGUnit::TotalFieldsSaved();
|
|
}
|
|
|
|
uint32_t CGPlayer::GetDataSize() {
|
|
return CGPlayer::TotalFields() * sizeof(uint32_t);
|
|
}
|
|
|
|
uint32_t CGPlayer::GetDataSizeSaved() {
|
|
return CGPlayer::TotalFieldsSaved() * sizeof(uint32_t);
|
|
}
|
|
|
|
uint32_t CGPlayer::GetRemoteDataSize() {
|
|
return CGPlayer::TotalRemoteFields() * sizeof(uint32_t);
|
|
}
|
|
|
|
uint32_t CGPlayer::GetRemoteDataSizeSaved() {
|
|
return CGPlayer::TotalRemoteFieldsSaved() * sizeof(uint32_t);
|
|
}
|
|
|
|
uint32_t CGPlayer::TotalFields() {
|
|
return CGPlayer::GetBaseOffset() + 1178;
|
|
}
|
|
|
|
uint32_t CGPlayer::TotalRemoteFields() {
|
|
return CGPlayer::GetBaseOffset() + 176;
|
|
}
|
|
|
|
uint32_t CGPlayer::TotalFieldsSaved() {
|
|
return CGPlayer::GetBaseOffsetSaved() + 1043;
|
|
}
|
|
|
|
uint32_t CGPlayer::TotalRemoteFieldsSaved() {
|
|
return CGPlayer::GetBaseOffsetSaved() + 173;
|
|
}
|
|
|
|
CGPlayerData* CGPlayer::Player() const {
|
|
return this->m_player;
|
|
}
|