mirror of
https://github.com/HikikoMarmy/Champions-Reborn-Server.git
synced 2026-04-05 08:59:54 -03:00
Reorganized and cleaned up the solution.
This commit is contained in:
16
Source/Network/Event/NotifyFriendStatus.cpp
Normal file
16
Source/Network/Event/NotifyFriendStatus.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#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 );
|
||||
}
|
||||
Reference in New Issue
Block a user