![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
00001 /* 00002 * ConnectToServerPacket - The packet that is sent when a client 00003 * want's to connect to a new server/zone. 00004 * This class is used for both sides, the client will send a 00005 * packet with a zoneID and no address and the server will fill 00006 * the address. 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 00031 #include <string> 00032 00033 namespace SraNetwork 00034 { 00035 class ConnectToServerPacket : 00036 public SraPacket 00037 { 00038 public: 00039 ConnectToServerPacket(void); 00040 ~ConnectToServerPacket(void); 00041 00042 virtual void Serialize(RakNet::BitStream* target); 00043 virtual void Deserialize(RakNet::BitStream* source); 00044 00045 public: 00046 // The zone ID to enter 00047 int zoneID; 00048 // The serverInfo that is used by the client to connect 00049 // to a server. 00050 SraServerInfo info; 00051 }; 00052 }
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.