feat(object): add CGPlayer::GetXP

This commit is contained in:
fallenoak committed 2026-02-05 14:51:17 -06:00
1 parent aac8cf0855
commit f567a3a7c8
2 files changed
+7

No files matched your search

+4
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;
}
+3
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;