![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include <ChatMessage.h>
Public Member Functions | |
| void | Deserialize (RakNet::BitStream *source) |
| void | Serialize (RakNet::BitStream *target) |
Public Attributes | |
| int | channelId |
| RakNet::RakString | chatMessage |
| int | playerId |
| RakNet::RakString | playerName |
| int | timestamp |
Static Public Attributes | |
| static const int | PACKAGE_SIZE = 3 * sizeof(int) + 2*MAX_STRLEN |
Definition at line 30 of file ChatMessage.h.
| void SraNetwork::ChatMessage::Deserialize | ( | RakNet::BitStream * | source | ) | [inline] |
Definition at line 49 of file ChatMessage.h.
References channelId, chatMessage, playerId, playerName, RakNet::BitStream::Read(), and timestamp.
{
source->Read<int>(channelId);
source->Read<int>(playerId);
source->Read<int>(timestamp);
source->Read<RakNet::RakString>(chatMessage);
source->Read<RakNet::RakString>(playerName);
}
| void SraNetwork::ChatMessage::Serialize | ( | RakNet::BitStream * | target | ) | [inline] |
Definition at line 40 of file ChatMessage.h.
References channelId, chatMessage, playerId, playerName, timestamp, and RakNet::BitStream::Write().
{
target->Write<int>(channelId);
target->Write<int>(playerId);
target->Write<int>(timestamp);
target->Write<RakNet::RakString>(chatMessage);
target->Write<RakNet::RakString>(playerName);
}
Definition at line 34 of file ChatMessage.h.
Referenced by Deserialize(), and Serialize().
Definition at line 35 of file ChatMessage.h.
Referenced by Deserialize(), and Serialize().
const int SraNetwork::ChatMessage::PACKAGE_SIZE = 3 * sizeof(int) + 2*MAX_STRLEN [static] |
Definition at line 32 of file ChatMessage.h.
Definition at line 37 of file ChatMessage.h.
Referenced by Deserialize(), and Serialize().
Definition at line 36 of file ChatMessage.h.
Referenced by Deserialize(), and Serialize().
Definition at line 38 of file ChatMessage.h.
Referenced by Deserialize(), and Serialize().
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.