cgmodifyguildmemberintro.cpp

来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C++ 代码 · 共 74 行

CPP
74
字号
//////////////////////////////////////////////////////////////////////////////// Filename    : CGModifyGuildMemberIntro.cpp // Written By  : // Description : //////////////////////////////////////////////////////////////////////////////#include "CGModifyGuildMemberIntro.h"void CGModifyGuildMemberIntro::read (SocketInputStream & iStream) 	 throw (ProtocolException , Error){	__BEGIN_TRY	BYTE szGuildMemberIntro;	iStream.read( m_GuildID );	iStream.read( szGuildMemberIntro );	if ( szGuildMemberIntro > 255 )		throw InvalidProtocolException( "too long szGuildMemberIntro length" );	if ( szGuildMemberIntro > 0 )		iStream.read( m_GuildMemberIntro, szGuildMemberIntro );	else		m_GuildMemberIntro = "";	__END_CATCH}void CGModifyGuildMemberIntro::write (SocketOutputStream & oStream) const      throw (ProtocolException , Error){	__BEGIN_TRY	BYTE szGuildMemberIntro = m_GuildMemberIntro.size();	if ( szGuildMemberIntro > 255 )		throw InvalidProtocolException( "too long szGuildMemberIntro length" );	oStream.write( m_GuildID );	oStream.write( szGuildMemberIntro );	if ( szGuildMemberIntro > 0 )		oStream.write( m_GuildMemberIntro );	__END_CATCH}void CGModifyGuildMemberIntro::execute (Player* pPlayer) 	 throw (ProtocolException , Error){	__BEGIN_TRY			CGModifyGuildMemberIntroHandler::execute(this , pPlayer);	__END_CATCH}string CGModifyGuildMemberIntro::toString () const       throw (){	__BEGIN_TRY			StringStream msg;    msg << "CGModifyGuildMemberIntro("		<< "GuildID:" << (int)m_GuildID		<< "GuildMemberIntro:" << m_GuildMemberIntro		<< ")";	return msg.toString();	__END_CATCH}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?