mirror of
https://github.com/HikikoMarmy/Champions-Reborn-Server.git
synced 2026-04-05 00:49:48 -03:00
39 lines
829 B
C++
39 lines
829 B
C++
#include "RequestGetFriendList.h"
|
|
|
|
void RequestGetFriendList::Deserialize( sptr_byte_stream stream )
|
|
{
|
|
DeserializeHeader( stream );
|
|
}
|
|
|
|
sptr_generic_response RequestGetFriendList::ProcessRequest( sptr_socket socket, sptr_byte_stream stream )
|
|
{
|
|
Deserialize( stream );
|
|
|
|
auto publicKey = stream->read_utf8();
|
|
auto unknown = stream->read_u32();
|
|
|
|
return std::make_shared< ResultGetFriendList >( this );
|
|
}
|
|
|
|
ResultGetFriendList::ResultGetFriendList( GenericRequest *request ) : GenericResponse( *request )
|
|
{
|
|
}
|
|
|
|
void ResultGetFriendList::Serialize( ByteBuffer &out ) const
|
|
{
|
|
out.write_u16( m_packetId );
|
|
out.write_u32( m_trackId );
|
|
out.write_u32( 0 );
|
|
|
|
// Friends
|
|
out.write_u32(1);
|
|
out.write_utf16(L"String_1");
|
|
|
|
out.write_u32(1);
|
|
out.write_utf16(L"String_2");
|
|
|
|
// Ignore
|
|
out.write_u32(1);
|
|
out.write_utf16(L"String_3");
|
|
}
|