00001 #pragma once
00002
00003 #include "Packet.h"
00004
00005 #pragma warning(disable : 4996)
00006
00007 class CPacketDummy : public CPacket
00008 {
00009 private:
00010 __uint32 sizeDummy;
00011 __uint32 index;
00012 char str[10];
00013
00014 public:
00015 CPacketDummy(__uint32 sizeDummy, __uint32 index) : CPacket(sizeDummy, NULL) { this->sizeDummy = sizeDummy; this->index = index; }
00016 virtual ~CPacketDummy() { }
00017
00018 virtual inline EPacketType Type() { return PACKET_TYPE_DUMMY; }
00019 virtual CPacket* Copy();
00020
00021 virtual inline char* ToString() { sprintf(this->str, "%u", this->index); return this->str; }
00022 };