gearslotinfo.cpp
来自「天之炼狱1服务器端源文件游戏服务端不完整」· C++ 代码 · 共 60 行
CPP
60 行
//////////////////////////////////////////////////////////////////////////////// Filename : GearSlotInfo.cpp// Written By : elca// Description ://////////////////////////////////////////////////////////////////////////////#include "GearSlotInfo.h"//////////////////////////////////////////////////////////////////////////////// read data from socket input stream//////////////////////////////////////////////////////////////////////////////void GearSlotInfo::read ( SocketInputStream & iStream ) throw ( ProtocolException , Error ){ __BEGIN_TRY // 刚历 窍困 努贰胶俊辑 佬绢甸捞绊... PCItemInfo::read(iStream); // 捞 努贰胶狼 单捞磐甫 佬绢甸牢促. iStream.read(m_SlotID); __END_CATCH}//////////////////////////////////////////////////////////////////////////////// write data to socket output stream//////////////////////////////////////////////////////////////////////////////void GearSlotInfo::write ( SocketOutputStream & oStream ) const throw ( ProtocolException , Error ){ __BEGIN_TRY // 刚历 窍困 努贰胶俊辑 佬绢甸捞绊... PCItemInfo::write(oStream); // 捞 努贰胶狼 单捞磐甫 佬绢甸牢促. oStream.write(m_SlotID); __END_CATCH}//////////////////////////////////////////////////////////////////////////////// get debug string//////////////////////////////////////////////////////////////////////////////string GearSlotInfo::toString () const throw (){ __BEGIN_TRY StringStream msg; msg << "GearSlotInfo(" << PCItemInfo::toString() << "SlotID:" << (int)m_SlotID << ")"; return msg.toString(); __END_CATCH}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?