cgmodifyguildintro.cpp
来自「天之炼狱1服务器端源文件游戏服务端不完整」· C++ 代码 · 共 74 行
CPP
74 行
//////////////////////////////////////////////////////////////////////////////// Filename : CGModifyGuildIntro.cpp // Written By : // Description : //////////////////////////////////////////////////////////////////////////////#include "CGModifyGuildIntro.h"void CGModifyGuildIntro::read (SocketInputStream & iStream) throw (ProtocolException , Error){ __BEGIN_TRY BYTE szGuildIntro; iStream.read( m_GuildID ); iStream.read( szGuildIntro ); if ( szGuildIntro > 255 ) throw InvalidProtocolException( "too long szGuildIntro length" ); if ( szGuildIntro > 0 ) iStream.read( m_GuildIntro, szGuildIntro ); else m_GuildIntro = ""; __END_CATCH}void CGModifyGuildIntro::write (SocketOutputStream & oStream) const throw (ProtocolException , Error){ __BEGIN_TRY BYTE szGuildIntro = m_GuildIntro.size(); if ( szGuildIntro > 255 ) throw InvalidProtocolException( "too long szGuildIntro length" ); oStream.write( m_GuildID ); oStream.write( szGuildIntro ); if ( szGuildIntro > 0 ) oStream.write( m_GuildIntro ); __END_CATCH}void CGModifyGuildIntro::execute (Player* pPlayer) throw (ProtocolException , Error){ __BEGIN_TRY CGModifyGuildIntroHandler::execute(this , pPlayer); __END_CATCH}string CGModifyGuildIntro::toString () const throw (){ __BEGIN_TRY StringStream msg; msg << "CGModifyGuildIntro(" << "GuildID:" << (int)m_GuildID << "GuildIntro:" << m_GuildIntro << ")"; return msg.toString(); __END_CATCH}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?