Files
Champions-Reborn-Server-Mirror/Source/Network/Event/NotifyInstantMessage.cpp
2026-03-02 12:37:07 +00:00

17 lines
406 B
C++

#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 );
}