2023-11-17 23:54:20 +08:00
|
|
|
|
|
|
|
#include "RakNetworkFactory.h"
|
|
|
|
#include "RakServerInterface.h"
|
2023-12-16 23:25:47 +08:00
|
|
|
#include "RakClientInterface.h"
|
2023-11-17 23:54:20 +08:00
|
|
|
#include "RakServer.h"
|
2023-12-16 23:25:47 +08:00
|
|
|
#include "RakClient.h"
|
2023-11-18 00:00:52 +08:00
|
|
|
#include "RakPeerInterface.h"
|
|
|
|
#include "RakPeer.h"
|
|
|
|
|
2023-12-16 23:25:47 +08:00
|
|
|
RakClientInterface* RakNetworkFactory::GetRakClientInterface( void )
|
|
|
|
{
|
|
|
|
return new RakClient;
|
|
|
|
}
|
2023-11-17 23:54:20 +08:00
|
|
|
RakServerInterface* RakNetworkFactory::GetRakServerInterface( void )
|
|
|
|
{
|
|
|
|
return new RakServer;
|
2023-11-18 00:00:52 +08:00
|
|
|
}
|
|
|
|
RakPeerInterface* RakNetworkFactory::GetRakPeerInterface( void )
|
|
|
|
{
|
|
|
|
return new RakPeer;
|
2023-12-16 23:25:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void RakNetworkFactory::DestroyRakClientInterface( RakClientInterface* i )
|
|
|
|
{
|
|
|
|
delete ( RakClient* ) i;
|
|
|
|
}
|
|
|
|
void RakNetworkFactory::DestroyRakServerInterface( RakServerInterface* i )
|
|
|
|
{
|
|
|
|
delete ( RakServer* ) i;
|
|
|
|
}
|
|
|
|
void RakNetworkFactory::DestroyRakPeerInterface( RakPeerInterface* i )
|
|
|
|
{
|
|
|
|
delete ( RakPeer* ) i;
|
|
|
|
}
|