mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-10 16:33:39 +03:00
feat(object): add CGPlayer::GetXP
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user