Move serveradapter in seperate cpp files
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
20
src/ServerAdapter.cpp
Normal file
20
src/ServerAdapter.cpp
Normal file
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user