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