Initial MSVC 2008 projects workspace
This commit is contained in:
52
l2packets/login/server/L2Login_GGAuthResponse.cpp
Normal file
52
l2packets/login/server/L2Login_GGAuthResponse.cpp
Normal file
@@ -0,0 +1,52 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user