mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +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;
|
return CGPlayer::GetBaseOffsetSaved() + 173;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t CGPlayer::GetXP() const {
|
||||||
|
return this->Player()->xp;
|
||||||
|
}
|
||||||
|
|
||||||
CGPlayerData* CGPlayer::Player() const {
|
CGPlayerData* CGPlayer::Player() const {
|
||||||
return this->m_player;
|
return this->m_player;
|
||||||
}
|
}
|
||||||
@@ -148,6 +148,9 @@ class CGPlayer {
|
|||||||
static uint32_t TotalFieldsSaved();
|
static uint32_t TotalFieldsSaved();
|
||||||
static uint32_t TotalRemoteFieldsSaved();
|
static uint32_t TotalRemoteFieldsSaved();
|
||||||
|
|
||||||
|
// Public member functions
|
||||||
|
uint32_t GetXP() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Protected member variables
|
// Protected member variables
|
||||||
CGPlayerData* m_player;
|
CGPlayerData* m_player;
|
||||||
|
|||||||
Reference in new issue
Block a user