fix(Core/Network): Rename AuthSession struct (#24428)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
blinkysc 2026-01-15 20:31:34 -06:00 committed by GitHub
parent e85c267c28
commit 7cc7cbd094
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -329,7 +329,7 @@ bool WorldSocket::ReadHeaderHandler()
return true;
}
struct AuthSession
struct ClientAuthSession
{
uint32 BattlegroupID = 0;
uint32 LoginServerType = 0;
@ -528,7 +528,7 @@ void WorldSocket::SendPacket(WorldPacket const& packet)
void WorldSocket::HandleAuthSession(WorldPacket & recvPacket)
{
std::shared_ptr<AuthSession> authSession = std::make_shared<AuthSession>();
std::shared_ptr<ClientAuthSession> authSession = std::make_shared<ClientAuthSession>();
// Read the content of the packet
recvPacket >> authSession->Build;
@ -552,7 +552,7 @@ void WorldSocket::HandleAuthSession(WorldPacket & recvPacket)
_queryProcessor.AddCallback(LoginDatabase.AsyncQuery(stmt).WithPreparedCallback(std::bind(&WorldSocket::HandleAuthSessionCallback, this, authSession, std::placeholders::_1)));
}
void WorldSocket::HandleAuthSessionCallback(std::shared_ptr<AuthSession> authSession, PreparedQueryResult result)
void WorldSocket::HandleAuthSessionCallback(std::shared_ptr<ClientAuthSession> authSession, PreparedQueryResult result)
{
// Stop if the account is not found
if (!result)

View file

@ -65,7 +65,7 @@ struct ClientPktHeader
};
#pragma pack(pop)
struct AuthSession;
struct ClientAuthSession;
class AC_GAME_API WorldSocket final : public Socket<WorldSocket>
{
@ -113,7 +113,7 @@ private:
void SendPacketAndLogOpcode(WorldPacket const& packet);
void HandleSendAuthSession();
void HandleAuthSession(WorldPacket& recvPacket);
void HandleAuthSessionCallback(std::shared_ptr<AuthSession> authSession, PreparedQueryResult result);
void HandleAuthSessionCallback(std::shared_ptr<ClientAuthSession> authSession, PreparedQueryResult result);
void LoadSessionPermissionsCallback(PreparedQueryResult result);
void SendAuthResponseError(uint8 code);