📄 gcstashsell.h
字号:
////////////////////////////////////////////////////////////////////////////////// // Filename : GCStashSell.h // Written By : 辫己刮// Description : // ////////////////////////////////////////////////////////////////////////////////#ifndef __GC_STASH_SELL_H__#define __GC_STASH_SELL_H__#include "Packet.h"#include "PacketFactory.h"//////////////////////////////////////////////////////////////////////////////////// class GCStashSell;//////////////////////////////////////////////////////////////////////////////////class GCStashSell : public Packet {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_STASH_SELL; } PacketSize_t getPacketSize() const throw() { return szGold; } string getPacketName() const throw() { return "GCStashSell"; } string toString() const throw();public: Gold_t getPrice(void) const throw() { return m_Price; } void setPrice(Gold_t price) throw() { m_Price = price; }private: Gold_t m_Price;};//////////////////////////////////////////////////////////////////////////////////// class GCStashSellFactory;//////////////////////////////////////////////////////////////////////////////////class GCStashSellFactory : public PacketFactory {public: Packet* createPacket() throw() { return new GCStashSell(); } string getPacketName() const throw() { return "GCStashSell"; } PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_STASH_SELL; } PacketSize_t getPacketMaxSize() const throw() { return szGold; }};//////////////////////////////////////////////////////////////////////////////////// class GCStashSellHandler;//////////////////////////////////////////////////////////////////////////////////class GCStashSellHandler {public: static void execute(GCStashSell* pPacket, Player* pPlayer) throw(ProtocolException, Error);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -