gearslotinfo.h
来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 47 行
H
47 行
//////////////////////////////////////////////////////////////////////////////// Filename : GearSlotInfo.h// Written By : elca// Description ://////////////////////////////////////////////////////////////////////////////#ifndef __GEAR_SLOT_INFO_H__#define __GEAR_SLOT_INFO_H__#include "Types.h"#include "Exception.h"#include "SocketInputStream.h"#include "SocketOutputStream.h"#include "PCItemInfo.h"//////////////////////////////////////////////////////////////////////////////// Inventory 沥焊甫 淬绊 乐绰 按眉.//////////////////////////////////////////////////////////////////////////////class GearSlotInfo : public PCItemInfo {public: void read (SocketInputStream & iStream) throw (ProtocolException, Error); void write (SocketOutputStream & oStream) const throw (ProtocolException, Error); uint getSize () throw () { return PCItemInfo::getSize() + szSlotID; } static uint getMaxSize () throw () { return PCItemInfo::getMaxSize() + szSlotID; } string toString () const throw ();public: void setSlotID(SlotID_t SlotID) throw() { m_SlotID = SlotID; } SlotID_t getSlotID() const throw() { return m_SlotID; }private: SlotID_t m_SlotID;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?