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/NotifyInstantMessage.cpp
Normal file
16
Source/Network/Event/NotifyInstantMessage.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "Network\Event\NotifyInstantMessage.hpp"
|
||||
|
||||
NotifyInstantMessage::NotifyInstantMessage( std::wstring chatHandle, std::wstring message ) : GenericMessage( 0x30 )
|
||||
{
|
||||
m_chatHandle = chatHandle;
|
||||
m_message = message;
|
||||
}
|
||||
|
||||
void NotifyInstantMessage::Serialize( ByteBuffer &out ) const
|
||||
{
|
||||
out.write_u16( m_packetId );
|
||||
out.write_u32( 0 );
|
||||
|
||||
out.write_utf16( m_chatHandle );
|
||||
out.write_utf16( m_message );
|
||||
}
|
||||
Reference in New Issue
Block a user