mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(net): finish message read logic for character enumeration
This commit is contained in:
parent
c39342906c
commit
9cac949796
@ -257,11 +257,17 @@ int32_t RealmConnection::HandleCharEnum(uint32_t msgId, uint32_t time, CDataStor
|
||||
|
||||
if (!characterLimitExceeded) {
|
||||
if (!msg->IsRead()) {
|
||||
// TODO what are these fields?
|
||||
uint32_t unknown;
|
||||
for (uint32_t i = 0; i < 10; i++) {
|
||||
msg->Get(unknown);
|
||||
}
|
||||
// Race restrictions
|
||||
msg->Get(this->m_restrictHuman);
|
||||
msg->Get(this->m_restrictDwarf);
|
||||
msg->Get(this->m_restrictGnome);
|
||||
msg->Get(this->m_restrictNightElf);
|
||||
msg->Get(this->m_restrictDraenei);
|
||||
msg->Get(this->m_restrictOrc);
|
||||
msg->Get(this->m_restrictTroll);
|
||||
msg->Get(this->m_restrictTauren);
|
||||
msg->Get(this->m_restrictUndead);
|
||||
msg->Get(this->m_restrictBloodElf);
|
||||
}
|
||||
|
||||
if (msg->IsRead()) {
|
||||
|
||||
@ -25,6 +25,16 @@ class RealmConnection : public NetClient {
|
||||
|
||||
// Member variables
|
||||
RealmResponse* m_realmResponse;
|
||||
uint32_t m_restrictHuman;
|
||||
uint32_t m_restrictDwarf;
|
||||
uint32_t m_restrictGnome;
|
||||
uint32_t m_restrictNightElf;
|
||||
uint32_t m_restrictDraenei;
|
||||
uint32_t m_restrictOrc;
|
||||
uint32_t m_restrictTroll;
|
||||
uint32_t m_restrictTauren;
|
||||
uint32_t m_restrictUndead;
|
||||
uint32_t m_restrictBloodElf;
|
||||
TSFixedArray<CHARACTER_INFO> m_characterList;
|
||||
uint8_t m_authenticated = 0;
|
||||
uint32_t m_queuePosition = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user