Files
l2-unlegits/l2packets/login/server/L2Login_GGAuthResponse.cpp
2012-02-01 05:25:08 +00:00

53 lines
1.1 KiB
C++

#include "stdafx.h"
#include "L2Login_GGAuthResponse.h"
/* // L2J
protected void write()
{
writeC(0x0b); // packet code
writeD(_response);
writeD(0x00);
writeD(0x00);
writeD(0x00);
writeD(0x00);
}*/
L2Login_GGAuthResponse::L2Login_GGAuthResponse()
{
this->_initNull();
}
L2Login_GGAuthResponse::L2Login_GGAuthResponse( const unsigned char *bytes, unsigned int length )
{
this->_initNull();
this->setBytes( bytes, length );
}
unsigned int L2Login_GGAuthResponse::read_Response()
{
if( !this->canReadBytes(21) ) return 0;
this->readReset();
this->getPacketType();
return this->readUInt();
}
bool L2Login_GGAuthResponse::parse( L2_VERSION ver )
{
UNREFERENCED_PARAMETER(ver);
p_ggAuthResponse = read_Response();
return true;
}
bool L2Login_GGAuthResponse::create( L2_VERSION ver )
{
UNREFERENCED_PARAMETER(ver);
this->writeReset();
writeC( 0x0b ); // packet code
writeD( p_ggAuthResponse );
writeD( 0x00 );
writeD( 0x00 );
writeD( 0x00 );
writeD( 0x00 );
return true;
}