diff --git a/src/GameServer.cpp b/src/GameServer.cpp index cc52487..54133d4 100644 --- a/src/GameServer.cpp +++ b/src/GameServer.cpp @@ -136,21 +136,3 @@ void GameServer::ProcessMessages() } } } - -ServerAdapter::ServerAdapter(GameServer *server) : m_server(server) {} - -void ServerAdapter::OnServerClientConnected(int clientIndex) -{ - if (m_server != NULL) - { - m_server->ClientConnected(clientIndex); - } -} - -void ServerAdapter::OnServerClientDisconnected(int clientIndex) -{ - if (m_server != NULL) - { - m_server->ClientDisconnected(clientIndex); - } -} \ No newline at end of file diff --git a/src/ServerAdapter.cpp b/src/ServerAdapter.cpp new file mode 100644 index 0000000..32bc84a --- /dev/null +++ b/src/ServerAdapter.cpp @@ -0,0 +1,20 @@ +#include "GameServer.h" + + +ServerAdapter::ServerAdapter(GameServer *server) : m_server(server) {} + +void ServerAdapter::OnServerClientConnected(int clientIndex) +{ + if (m_server != NULL) + { + m_server->ClientConnected(clientIndex); + } +} + +void ServerAdapter::OnServerClientDisconnected(int clientIndex) +{ + if (m_server != NULL) + { + m_server->ClientDisconnected(clientIndex); + } +} \ No newline at end of file