![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
00001 /* 00002 * SendMessageToPlayer - This packet is used to send a message to a player, 00003 * this message is not sent to the ChatServer but 00004 * to the WorldServer. 00005 * 00006 * @Author Michael <Tharbas> Matzen 00007 * 00008 * This program is free software; you can redistribute it and/or modify it 00009 * under the terms of the GNU General Public License as published by the Free 00010 * Software Foundation; either version 2 of the License, or (at your option) 00011 * any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, but WITHOUT 00014 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00015 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00016 * more details. 00017 * 00018 * You should have received a copy of the GNU General Public License along with 00019 * this program; if not, write to the Free Software Foundation, Inc., 51 00020 * Franklin St, Fifth Floor, Boston, MA 02110, USA 00021 * 00022 */ 00023 #pragma once 00024 #include "SraPacket.h" 00025 #include "NetworkHelper.h" 00026 #include "SraNetworkShared.h" 00027 00028 #include <memory> 00029 #include <string> 00030 00031 namespace SraNetwork 00032 { 00033 class SendMessageToPlayerPacket : 00034 public SraPacket 00035 { 00036 public: 00037 SendMessageToPlayerPacket(void); 00038 ~SendMessageToPlayerPacket(void); 00039 00040 virtual void Serialize(RakNet::BitStream* target); 00041 virtual void Deserialize(RakNet::BitStream* source); 00042 00043 int targetPlayerId; 00044 RakNet::RakString chatMessage; 00045 }; 00046 } 00047 00048
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.