mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-05 15:42:17 +03:00
feat(object): stub CGPlayer_C::PostInitActivePlayer
This commit is contained in:
parent
c7179026fc
commit
61303b51a2
@ -34,6 +34,18 @@ void CGPlayer_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4)
|
|||||||
this->CGUnit_C::PostInit(time, init, a4);
|
this->CGUnit_C::PostInit(time, init, a4);
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
if (this->GetGUID() == ClntObjMgrGetActivePlayer()) {
|
||||||
|
this->PostInitActivePlayer();
|
||||||
|
} else {
|
||||||
|
this->UpdatePartyMemberState();
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
void CGPlayer_C::PostInitActivePlayer() {
|
||||||
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGPlayer_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
void CGPlayer_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||||
@ -43,6 +55,10 @@ void CGPlayer_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
|||||||
this->m_playerSaved = &saved[CGPlayer::GetBaseOffsetSaved()];
|
this->m_playerSaved = &saved[CGPlayer::GetBaseOffsetSaved()];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CGPlayer_C::UpdatePartyMemberState() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t Player_C_GetDisplayId(uint32_t race, uint32_t sex) {
|
uint32_t Player_C_GetDisplayId(uint32_t race, uint32_t sex) {
|
||||||
STORM_ASSERT(sex < UNITSEX_LAST);
|
STORM_ASSERT(sex < UNITSEX_LAST);
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,9 @@ class CGPlayer_C : public CGUnit_C, public CGPlayer {
|
|||||||
uint32_t GetActiveNextLevelXP() const;
|
uint32_t GetActiveNextLevelXP() const;
|
||||||
uint32_t GetActiveXP() const;
|
uint32_t GetActiveXP() const;
|
||||||
void PostInit(uint32_t time, const CClientObjCreate& init, bool a4);
|
void PostInit(uint32_t time, const CClientObjCreate& init, bool a4);
|
||||||
|
void PostInitActivePlayer();
|
||||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||||
|
void UpdatePartyMemberState();
|
||||||
};
|
};
|
||||||
|
|
||||||
uint32_t Player_C_GetDisplayId(uint32_t race, uint32_t sex);
|
uint32_t Player_C_GetDisplayId(uint32_t race, uint32_t sex);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user