mirror of
https://github.com/HikikoMarmy/Champions-Reborn-Server.git
synced 2026-04-05 08:59:54 -03:00
17 lines
375 B
C++
17 lines
375 B
C++
#include "Network\Event\NotifyFriendStatus.hpp"
|
|
|
|
NotifyFriendStatus::NotifyFriendStatus( std::wstring handle, bool status ) : GenericMessage( 0x2F )
|
|
{
|
|
m_handle = handle;
|
|
m_status = status;
|
|
}
|
|
|
|
void NotifyFriendStatus::Serialize( ByteBuffer &out ) const
|
|
{
|
|
out.write_u16( m_packetId );
|
|
out.write_u32( 0 );
|
|
|
|
out.write_utf16( m_handle );
|
|
out.write_u8( m_status ? 1 : 0 );
|
|
}
|