cgstashdeposit.h
来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 71 行
H
71 行
////////////////////////////////////////////////////////////////////////////////// Filename : CGStashDeposit.h // Written By : 辫己刮// Description : ////////////////////////////////////////////////////////////////////////////////#ifndef __CG_STASH_DEPOSIT_H__#define __CG_STASH_DEPOSIT_H__#include "Packet.h"#include "PacketFactory.h"//////////////////////////////////////////////////////////////////////////////////// class CGStashDeposit;//////////////////////////////////////////////////////////////////////////////////class CGStashDeposit : 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_CG_STASH_DEPOSIT; } PacketSize_t getPacketSize() const throw() { return szGold; } string getPacketName() const throw() { return "CGStashDeposit"; } string toString() const throw(); public: Gold_t getAmount(void) const throw() { return m_Amount;} void setAmount(Gold_t amount) throw() { m_Amount = amount;}private : Gold_t m_Amount;};//////////////////////////////////////////////////////////////////////////////////// class CGStashDepositFactory;//////////////////////////////////////////////////////////////////////////////////class CGStashDepositFactory : public PacketFactory {public: Packet* createPacket() throw() { return new CGStashDeposit(); } string getPacketName() const throw() { return "CGStashDeposit"; } PacketID_t getPacketID() const throw() { return Packet::PACKET_CG_STASH_DEPOSIT; } PacketSize_t getPacketMaxSize() const throw() { return szGold; }};//////////////////////////////////////////////////////////////////////////////////// class CGStashDepositHandler;//////////////////////////////////////////////////////////////////////////////////class CGStashDepositHandler { public: // execute packet's handler static void execute(CGStashDeposit* pPacket, Player* player) throw(ProtocolException, Error);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?