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-11-21 13:40:52 +01:00
|
|
|
namespace Oyster
|
|
|
|
{
|
|
|
|
namespace Network
|
|
|
|
{
|
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-11-27 11:01:22 +01:00
|
|
|
virtual void Pack (Protocols::ProtocolHeader &header, OysterByte& bytes) = 0;
|
2013-11-28 16:15:28 +01:00
|
|
|
virtual void Unpack (Protocols::ProtocolSet* set, OysterByte& bytes ) = 0;
|
2013-11-21 13:40:52 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|