Changeset 3214 for code/trunk/src/network/packet/Chat.cc
- Timestamp:
- Jun 23, 2009, 6:02:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/network/packet/Chat.cc
r2773 r3214 29 29 #include "Chat.h" 30 30 31 #include < enet/enet.h>32 #include < cassert>31 #include <cstring> 32 #include <string> 33 33 #include "network/Host.h" 34 34 … … 36 36 namespace packet { 37 37 38 #define PACKET_FLAGS_CHAT ENET_PACKET_FLAG_RELIABLE38 #define PACKET_FLAGS_CHAT PacketFlag::Reliable 39 39 #define _PACKETID 0 40 40 const int _PLAYERID = _PACKETID + sizeof(ENUM::Type); … … 42 42 #define _MESSAGE _MESSAGELENGTH + sizeof(uint32_t) 43 43 44 Chat::Chat( std::stringmessage, unsigned int playerID )44 Chat::Chat( const std::string& message, unsigned int playerID ) 45 45 : Packet() 46 46 {
Note: See TracChangeset
for help on using the changeset viewer.