Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Public Attributes | Static Public Attributes
SraNetwork::ChatMessage Struct Reference

#include <ChatMessage.h>

List of all members.

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

Detailed Description

Definition at line 30 of file ChatMessage.h.


Member Function Documentation

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

Member Data Documentation

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().


The documentation for this struct was generated from the following file:

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net