⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subslayerskillinfo.cpp

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 CPP
字号:
//----------------------------------------------------------------------//// Filename    : SubSlayerSkillInfo.cpp// Written By  : elca// Description :////----------------------------------------------------------------------// include files#include "SubSlayerSkillInfo.h"//----------------------------------------------------------------------// read data from socket input stream//----------------------------------------------------------------------void SubSlayerSkillInfo::read ( SocketInputStream & iStream ) 	throw ( ProtocolException , Error ){	__BEGIN_TRY	try {	iStream.read( m_SkillType );	iStream.read( m_Exp );	iStream.read( m_ExpLevel );	iStream.read( m_Interval );	iStream.read( m_CastingTime );	iStream.read( m_Enable );	} catch( Throwable & t ) {		cout << t.toString() << endl;	}	__END_CATCH}//----------------------------------------------------------------------// write data to socket output stream//----------------------------------------------------------------------void SubSlayerSkillInfo::write ( SocketOutputStream & oStream ) const 	throw ( ProtocolException , Error ){	__BEGIN_TRY	try {	oStream.write( m_SkillType );	oStream.write( m_Exp );	oStream.write( m_ExpLevel );	oStream.write( m_Interval );	oStream.write( m_CastingTime );	oStream.write( m_Enable );	} catch (Throwable & t ) {		cout << t.toString() << endl;	}	__END_CATCH}//----------------------------------------------------------------------// get debug string//----------------------------------------------------------------------string SubSlayerSkillInfo::toString () const 	throw (){	StringStream msg;	msg << "SubSlayerSkillInfo("		<< ",SkillType:" << (int)m_SkillType		<< ",Exp:" << (int)m_Exp		<< ",ExpLevel:" << (int)m_ExpLevel		<< ",Interval:" << (int)m_Interval		<< ",CastingTime:" << (int)m_CastingTime		<< ",Enable:" << (int)m_Enable		<< ")";		return msg.toString();}

⌨️ 快捷键说明

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