Shadowrun: Awakened 29 September 2011 - Build 871
SraPacket.h
Go to the documentation of this file.
00001 /*
00002  * SraBaseMessage - Base class for all network packages.
00003  *
00004 * @Author Michael <Tharbas> Matzen
00005  *
00006  * This program is free software; you can redistribute it and/or modify it
00007  * under the terms of the GNU General Public License as published by the Free
00008  * Software Foundation; either version 2 of the License, or (at your option)
00009  * any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful, but WITHOUT
00012  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00013  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
00014  * more details.
00015  *
00016  * You should have received a copy of the GNU General Public License along with
00017  * this program; if not, write to the Free Software Foundation, Inc., 51
00018  * Franklin St, Fifth Floor, Boston, MA 02110, USA
00019  * 
00020  */
00021 #pragma once
00022 
00023 
00024 #include "RakNetTypes.h"
00025 #include "BitStream.h"
00026 
00027 namespace SraNetwork
00028 {
00029     
00030     class SraPacket
00031     {
00032     public:
00033         virtual void Serialize( RakNet::BitStream* target );
00034         virtual void Deserialize( RakNet::BitStream* source);
00035 
00036         static SraPacket* GetPacketFromData(char* dataBuffer);
00037 
00038         // The SRA opcode
00039         unsigned char opCode;
00040     
00041     };
00042 }
00043 

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