sgmodifyguildintrook.cpp
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C++ 代码 · 共 90 行
CPP
90 行
//////////////////////////////////////////////////////////////////////// // Filename : SGModifyGuildIntroOK.cpp // Written By :// Description : // //////////////////////////////////////////////////////////////////////// include files#include "SGModifyGuildIntroOK.h"//////////////////////////////////////////////////////////////////////// Datagram 按眉肺何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促.//////////////////////////////////////////////////////////////////////void SGModifyGuildIntroOK::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} //////////////////////////////////////////////////////////////////////// Datagram 按眉肺 菩哦狼 官捞呈府 捞固瘤甫 焊辰促.//////////////////////////////////////////////////////////////////////void SGModifyGuildIntroOK::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}//////////////////////////////////////////////////////////////////////// execute packet's handler//////////////////////////////////////////////////////////////////////void SGModifyGuildIntroOK::execute ( Player * pPlayer ) throw ( ProtocolException , Error ){ __BEGIN_TRY SGModifyGuildIntroOKHandler::execute(this); __END_CATCH}////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////string SGModifyGuildIntroOK::toString () const throw (){ StringStream msg; msg << "SGModifyGuildIntroOK(" << "GuildID:" << (int)m_GuildID << "GuildIntro:" << m_GuildIntro << ")"; return msg.toString();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?