Shadowrun: Awakened 29 September 2011 - Build 871
GetClientCharactersPacket.h
Go to the documentation of this file.
00001 /*
00002  * GetClientCharactersPacket - This packet is sent by a client to
00003  *      receive all characters this player has. This list will
00004  *      only contain the minimal information to be shown in
00005  *      the character selection list, i.e.:
00006  *      [id], name, race, level
00007  *
00008  * @Author Michael <Tharbas> Matzen
00009  *
00010  * This program is free software; you can redistribute it and/or modify it
00011  * under the terms of the GNU General Public License as published by the Free
00012  * Software Foundation; either version 2 of the License, or (at your option)
00013  * any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful, but WITHOUT
00016  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00017  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
00018  * more details.
00019  *
00020  * You should have received a copy of the GNU General Public License along with
00021  * this program; if not, write to the Free Software Foundation, Inc., 51
00022  * Franklin St, Fifth Floor, Boston, MA 02110, USA
00023  * 
00024  */
00025 #pragma once
00026 #include "SraPacket.h"
00027 #include "NetworkHelper.h"
00028 #include "SraNetworkShared.h"
00029 #include "BasicCharacterInfo.h"
00030 
00031 #include <memory>
00032 #include <string>
00033 #include <vector>
00034 
00035 namespace SraNetwork
00036 {
00037     class GetClientCharactersPacket :
00038         public SraPacket
00039     {
00040     public:
00041         GetClientCharactersPacket(void);
00042         ~GetClientCharactersPacket(void);
00043 
00044         virtual void Serialize(RakNet::BitStream* target);
00045         virtual void Deserialize(RakNet::BitStream* source);
00046         
00048         static const int MAX_NUMBER_OF_CHARACTERS_PER_MESSAGE = 10;
00049         
00050         // The list of characters this player has.
00051         std::vector<BasicCharacterInfo> listOfCharacters;
00052     };
00053 }

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