gcaddgeartozone.h

来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 65 行

H
65
字号
//////////////////////////////////////////////////////////////////////////////// Filename    : GCAddGearToZone.h // Written By  : crazydog// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __GC_ADD_GEAR_TO_ZONE_H__#define __GC_ADD_GEAR_TO_ZONE_H__#include "Packet.h"#include "PacketFactory.h"//////////////////////////////////////////////////////////////////////////////// class GCAddGearToZone;//////////////////////////////////////////////////////////////////////////////class GCAddGearToZone : public Packet {public:	GCAddGearToZone() throw();	~GCAddGearToZone() throw();public :    void read(SocketInputStream & iStream) throw(ProtocolException, Error);    void write(SocketOutputStream & oStream) const throw(ProtocolException, Error);	void execute(Player* pPlayer) throw(ProtocolException, Error);	PacketID_t getPacketID() const throw() { return PACKET_GC_ADD_GEAR_TO_ZONE; }	PacketSize_t getPacketSize() const throw() { return szSlotID; }	string getPacketName() const throw() { return "GCAddGearToZone"; }	string toString() const throw();	public:	SlotID_t getSlotID() throw() { return m_SlotID; }	void setSlotID(SlotID_t SlotID) throw() { m_SlotID = SlotID; }private:	SlotID_t m_SlotID; // SlotID};//////////////////////////////////////////////////////////////////////////////// class GCAddGearToZoneFactory;//////////////////////////////////////////////////////////////////////////////class GCAddGearToZoneFactory : public PacketFactory {public:	Packet* createPacket() throw() { return new GCAddGearToZone(); }	string getPacketName() const throw() { return "GCAddGearToZone"; }	PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_ADD_GEAR_TO_ZONE; }	PacketSize_t getPacketMaxSize() const throw() { return szSlotID; }};//////////////////////////////////////////////////////////////////////////////// class GCAddGearToZoneHandler;//////////////////////////////////////////////////////////////////////////////class GCAddGearToZoneHandler {public:	static void execute(GCAddGearToZone* pPacket, Player* player) throw(ProtocolException, Error);};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?