📄 cgusemessageitemfrominventory.h
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : CGUseMessageItemFromInventory.h // Written By : excel96// Description : // 牢亥配府 救狼 酒捞袍阑 荤侩且 锭, 努扼捞攫飘啊 X, Y 棺 ObjectID甫// 焊郴搁 酒捞袍 努贰胶俊 蝶扼辑, 辑滚啊 捞俊 嘎绰 内靛甫 贸府茄促.//////////////////////////////////////////////////////////////////////////////#ifndef __CG_USE_MESSAGE_ITEM_FROM_INVENTORY_H__#define __CG_USE_MESSAGE_ITEM_FROM_INVENTORY_H__#include "Packet.h"#include "PacketFactory.h"#include "CGUseItemFromInventory.h"//////////////////////////////////////////////////////////////////////////////// class CGUseMessageItemFromInventory;//////////////////////////////////////////////////////////////////////////////class CGUseMessageItemFromInventory : public CGUseItemFromInventory {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_CG_USE_MESSAGE_ITEM_FROM_INVENTORY; } PacketSize_t getPacketSize() const throw() { return CGUseItemFromInventory::getPacketSize() + szBYTE + m_Message.size(); } string getPacketName() const throw() { return "CGUseMessageItemFromInventory"; } string toString() const throw(); public: const string& getMessage() const throw() { return m_Message; } void setMessage(const string& msg) throw() { m_Message = msg; }private: string m_Message;};//////////////////////////////////////////////////////////////////////////////// class CGUseMessageItemFromInventoryFactory;//////////////////////////////////////////////////////////////////////////////class CGUseMessageItemFromInventoryFactory : public CGUseItemFromInventoryFactory {public: Packet* createPacket() throw() { return new CGUseMessageItemFromInventory(); } string getPacketName() const throw() { return "CGUseMessageItemFromInventory"; } PacketID_t getPacketID() const throw() { return Packet::PACKET_CG_USE_MESSAGE_ITEM_FROM_INVENTORY; } PacketSize_t getPacketMaxSize() const throw() { return CGUseItemFromInventoryFactory::getPacketMaxSize() + szBYTE + 128; }};//////////////////////////////////////////////////////////////////////////////// class CGUseMessageItemFromInventoryHandler;//////////////////////////////////////////////////////////////////////////////class CGUseMessageItemFromInventoryHandler {public: static void execute(CGUseMessageItemFromInventory* pPacket, Player* player) throw(ProtocolException, Error);protected: static void executeEventTree(CGUseMessageItemFromInventory* pPacket, Player* player) throw(ProtocolException, Error);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -