mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-05 15:42:17 +03:00
feat(object): add CGPlayer::GetXP
This commit is contained in:
parent
aac8cf0855
commit
f567a3a7c8
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user