2013-11-21 13:40:52 +01:00
|
|
|
#ifndef NETWORK_DEPENDENCIES_I_TRANSLATE
|
|
|
|
#define NETWORK_DEPENDENCIES_I_TRANSLATE
|
|
|
|
|
2013-11-25 11:39:38 +01:00
|
|
|
//////////////////////////////////
|
|
|
|
// Created by Sam Svensson 2013 //
|
|
|
|
//////////////////////////////////
|
|
|
|
|
2013-12-04 12:40:49 +01:00
|
|
|
#include "../../Misc/Utilities.h"
|
|
|
|
|
2013-11-21 13:40:52 +01:00
|
|
|
namespace Oyster
|
|
|
|
{
|
|
|
|
namespace Network
|
|
|
|
{
|
2013-12-11 21:45:43 +01:00
|
|
|
class CustomNetProtocol;
|
2013-11-27 11:01:22 +01:00
|
|
|
class OysterByte;
|
2013-11-21 13:40:52 +01:00
|
|
|
class ITranslate
|
|
|
|
{
|
|
|
|
public:
|
2013-11-29 09:18:58 +01:00
|
|
|
//packs and unpacks packages for sending or recieving over the connection
|
2013-12-11 21:45:43 +01:00
|
|
|
virtual void Pack (Utility::DynamicMemory::SmartPointer<OysterByte> &bytes, Oyster::Network::CustomNetProtocol* protocol);
|
|
|
|
virtual void Unpack (Oyster::Network::CustomNetProtocol* protocol, Utility::DynamicMemory::SmartPointer<OysterByte> &bytes);
|
2013-11-21 13:40:52 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|