feat(object): add CGPlayer::GetXP

This commit is contained in:
fallenoak 2026-02-05 14:51:17 -06:00
parent aac8cf0855
commit f567a3a7c8
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 7 additions and 0 deletions

View File

@ -41,6 +41,10 @@ uint32_t CGPlayer::TotalRemoteFieldsSaved() {
return CGPlayer::GetBaseOffsetSaved() + 173;
}
uint32_t CGPlayer::GetXP() const {
return this->Player()->xp;
}
CGPlayerData* CGPlayer::Player() const {
return this->m_player;
}

View File

@ -148,6 +148,9 @@ class CGPlayer {
static uint32_t TotalFieldsSaved();
static uint32_t TotalRemoteFieldsSaved();
// Public member functions
uint32_t GetXP() const;
protected:
// Protected member variables
CGPlayerData* m_player;