📄 gcothermodifyinfo.h
字号:
//////////////////////////////////////////////////////////////////////////////// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -