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