mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-07 23:29:54 +03:00
feat(object): add CGPlayer_C::GetActiveNextLevelXP
This commit is contained in:
2 files changed
+9
No files matched your search
@@ -12,6 +12,14 @@ CGPlayer_C::~CGPlayer_C() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
uint32_t CGPlayer_C::GetActiveNextLevelXP() const {
|
||||
if (this->GetGUID() != ClntObjMgrGetActivePlayer()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return this->GetNextLevelXP();
|
||||
}
|
||||
|
||||
uint32_t CGPlayer_C::GetActiveXP() const {
|
||||
if (this->GetGUID() != ClntObjMgrGetActivePlayer()) {
|
||||
return 0;
|
||||
|
||||
@@ -15,6 +15,7 @@ class CGPlayer_C : public CGUnit_C, public CGPlayer {
|
||||
|
||||
// Public member functions
|
||||
CGPlayer_C(uint32_t time, CClientObjCreate& objCreate);
|
||||
uint32_t GetActiveNextLevelXP() const;
|
||||
uint32_t GetActiveXP() const;
|
||||
void PostInit(uint32_t time, const CClientObjCreate& init, bool a4);
|
||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||
|
||||
Reference in new issue
Block a user