From 3eacf10755786eebdfcae8d418f5486d37785260 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sat, 1 Jun 2024 20:09:10 +0800 Subject: [PATCH] [bot] Implement `CNetGame::Packet_ConnectionRequestAccepted(...)` --- bot/net/netgame.cpp | 7 +++++++ bot/net/netgame.h | 1 + 2 files changed, 8 insertions(+) diff --git a/bot/net/netgame.cpp b/bot/net/netgame.cpp index 6f99951..c8916cb 100644 --- a/bot/net/netgame.cpp +++ b/bot/net/netgame.cpp @@ -399,6 +399,13 @@ void CNetGame::Packet_ConnectionBanned(Packet* packet) //---------------------------------------------------- +void CNetGame::Packet_ConnectionRequestAccepted(Packet* packet) +{ + //logprintf("NPC: Server has accepted the connection."); +} + +//---------------------------------------------------- + void CNetGame::Packet_DisconnectionNotification(Packet* packet) { //OutputDebugString("BOT: Disconnected."); diff --git a/bot/net/netgame.h b/bot/net/netgame.h index d418934..59c25ba 100644 --- a/bot/net/netgame.h +++ b/bot/net/netgame.h @@ -27,6 +27,7 @@ private: void Packet_ConnectionSucceeded(Packet *p); void Packet_RSAPublicKeyMismatch(Packet* packet); void Packet_ConnectionBanned(Packet* packet); + void Packet_ConnectionRequestAccepted(Packet* packet); void Packet_DisconnectionNotification(Packet* packet); void Packet_ModifiedPacket(Packet* packet); void Packet_ConnectAttemptFailed(Packet* packet);