gcothermodifyinfo.h

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

H
62
字号
//////////////////////////////////////////////////////////////////////////////// Filename    : GCOtherModifyInfo.h // Written By  : excel96// Description ://////////////////////////////////////////////////////////////////////////////#ifndef __GC_OTHER_MODIFY_INFO_H__#define __GC_OTHER_MODIFY_INFO_H__#include "ModifyInfo.h"#include "PacketFactory.h"//////////////////////////////////////////////////////////////////////////////// class GCOtherModifyInfo;//////////////////////////////////////////////////////////////////////////////class GCOtherModifyInfo : public ModifyInfo {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_OTHER_MODIFY_INFO; }	PacketSize_t getPacketSize() const throw() { return szObjectID + ModifyInfo::getPacketSize(); }	string getPacketName() const throw() { return "GCOtherModifyInfo"; }	string toString() const throw();public:	ObjectID_t getObjectID() const throw() { return m_ObjectID; }	void setObjectID(ObjectID_t ObjectID) throw() { m_ObjectID = ObjectID; }private:	ObjectID_t m_ObjectID;};//////////////////////////////////////////////////////////////////////////////// class GCOtherModifyInfoFactory;//////////////////////////////////////////////////////////////////////////////class GCOtherModifyInfoFactory : public PacketFactory {public:	Packet* createPacket() throw() { return new GCOtherModifyInfo(); }	string getPacketName() const throw() { return "GCOtherModifyInfo"; }	PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_OTHER_MODIFY_INFO; }	PacketSize_t getPacketMaxSize() const throw() { return szObjectID + ModifyInfo::getPacketMaxSize(); }};//////////////////////////////////////////////////////////////////////////////// class GCOtherModifyInfoHandler;//////////////////////////////////////////////////////////////////////////////class GCOtherModifyInfoHandler {public:	static void execute(GCOtherModifyInfo* pGCOtherModifyInfo, Player* pPlayer) throw(Error);};#endif

⌨️ 快捷键说明

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