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

#include <BasicCharacterInfo.h>

List of all members.

Public Member Functions

void Deserialize (RakNet::BitStream *source)
void Serialize (RakNet::BitStream *target)

Public Attributes

int charId
int charLevel
RakNet::RakString charName
int raceId

Static Public Attributes

static const int PACKAGE_SIZE = 3 * sizeof(int) + MAX_STRLEN

Detailed Description

Definition at line 30 of file BasicCharacterInfo.h.


Member Function Documentation

void SraNetwork::BasicCharacterInfo::Deserialize ( RakNet::BitStream source) [inline]
void SraNetwork::BasicCharacterInfo::Serialize ( RakNet::BitStream target) [inline]

Definition at line 39 of file BasicCharacterInfo.h.

References charId, charLevel, charName, raceId, and RakNet::BitStream::Write().

Referenced by SraNetwork::CreateCharacterPacket::Serialize().

        {
            target->Write<int>(charId);
            target->Write<int>(raceId);
            target->Write<int>(charLevel);
            target->Write<RakNet::RakString>(charName);
        }

Member Data Documentation

Definition at line 34 of file BasicCharacterInfo.h.

Referenced by Deserialize(), and Serialize().

Definition at line 37 of file BasicCharacterInfo.h.

Referenced by Deserialize(), and Serialize().

const int SraNetwork::BasicCharacterInfo::PACKAGE_SIZE = 3 * sizeof(int) + MAX_STRLEN [static]

Definition at line 32 of file BasicCharacterInfo.h.


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