![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
00001 /* 00002 * CreateCharacterPacket - The packet that is sent when a client 00003 * want's to create a new character. 00004 * The initial character properties are curently 00005 * only a name and a race, later we will add (and check) 00006 * the base attributes. 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 "SraServerInfo.h" 00030 #include "BasicCharacterInfo.h" 00031 00032 #include <string> 00033 00034 namespace SraNetwork 00035 { 00036 class CreateCharacterPacket : 00037 public SraPacket 00038 { 00039 public: 00040 CreateCharacterPacket(void); 00041 ~CreateCharacterPacket(void); 00042 00043 virtual void Serialize(RakNet::BitStream* target); 00044 virtual void Deserialize(RakNet::BitStream* source); 00045 00046 // The character info for the character 00047 // to create 00048 BasicCharacterInfo characterInfo; 00049 }; 00050 } 00051
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.