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