scriptparameter.h

来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 70 行

H
70
字号
//////////////////////////////////////////////////////////////////////// // Filename    : ScriptParameter.h // Written By  : // Description :// //////////////////////////////////////////////////////////////////////#ifndef __SCRIPT_PARAMETER_H__#define __SCRIPT_PARAMETER_H__// include files#include "Types.h"#include "Exception.h"#include "Packet.h"////////////////////////////////////////////////////////////////////////// class ScriptParameter;//// ////////////////////////////////////////////////////////////////////////class ScriptParameter {public :		// constructor	ScriptParameter () throw ();		// destructor	~ScriptParameter () throw ();public :		    // 涝仿胶飘覆(滚欺)栏肺何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促.    void read (SocketInputStream & iStream) throw (ProtocolException, Error);		        // 免仿胶飘覆(滚欺)栏肺 菩哦狼 官捞呈府 捞固瘤甫 焊辰促.    void write (SocketOutputStream & oStream) const throw (ProtocolException, Error);	// get packet's body size	// 弥利拳矫, 固府 拌魂等 沥荐甫 荤侩茄促.	PacketSize_t getSize () throw ();	static uint getMaxSize() throw() {		return szBYTE + 255 + szBYTE + 255;	}	// get packet's debug string	string toString () const throw ();	// get/set Name	string getName() const throw() { return m_Name; }	void setName( const string& name ) throw() { m_Name = name; }	// get/set Value	string getValue() const throw() { return m_Value; }	void setValue( const string& value ) throw() { m_Value = value; }private :	string m_Name;	string m_Value;};#endif

⌨️ 快捷键说明

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