Danbias/Code/Network/NetworkDependencies/Messages/MessageTest.cpp

27 lines
527 B
C++
Raw Normal View History

#include "MessageTest.h"
using namespace Oyster::Network::Messages;
2013-11-21 14:49:30 +01:00
using namespace Oyster::Network::Protocols;
MessageTest::MessageTest()
{
}
MessageTest::~MessageTest()
{
}
2013-11-21 14:49:30 +01:00
void MessageTest::Translate(ProtocolHeader& header)
{
2013-11-21 14:49:30 +01:00
MessageHeader::Translate(header);
2013-11-21 14:49:30 +01:00
AddStr(static_cast<ProtocolTest*>(&header)->textMessage);
}
2013-11-21 14:49:30 +01:00
void MessageTest::Translate(unsigned char message[], ProtocolHeader& header)
{
2013-11-21 14:49:30 +01:00
MessageHeader::Translate(message, header);
2013-11-21 14:49:30 +01:00
static_cast<ProtocolTest*>(&header)->textMessage = GetStr(message);
}