sgmodifyguildintrook.h

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

H
128
字号
//----------------------------------------------------------------------// // Filename    : SGModifyGuildIntroOK.h // Written By  : Reiot// Description : // //----------------------------------------------------------------------#ifndef __SG_MODIFY_GUILD_INTRO_OK_H__#define __SG_MODIFY_GUILD_INTRO_OK_H__// include files#include "Packet.h"#include "PacketFactory.h"//----------------------------------------------------------------------//// class SGModifyGuildIntroOK;//// 评捞 眠啊 登菌澜阑 霸烙辑滚俊 舅赴促.//// *CAUTION*////----------------------------------------------------------------------class SGModifyGuildIntroOK : public Packet {public:	    // Datagram 按眉俊辑何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促.    void read(SocketInputStream& iStream) throw(ProtocolException, Error);		        // Datagram 按眉肺 菩哦狼 官捞呈府 捞固瘤甫 焊辰促.    void write(SocketOutputStream& oStream) const throw(ProtocolException, Error);	// execute packet's handler	void execute(Player* pPlayer) throw(ProtocolException, Error);	// get packet id	PacketID_t getPacketID() const throw() { return PACKET_SG_MODIFY_GUILD_INTRO_OK; }		// get packet's body size	PacketSize_t getPacketSize() const throw() 	{ 		return szGuildID +			// guild ID			   szBYTE +				// Guild Intro length			   m_GuildIntro.size();	// Guild Intro	}	// get packet name	string getPacketName() const throw() { return "SGModifyGuildIntroOK"; }		// get packet's debug string	string toString() const throw();public:	// get/set guildID	GuildID_t getGuildID() const throw() { return m_GuildID; }	void setGuildID( GuildID_t guildID ) throw() { m_GuildID = guildID; }	// get/set guild intro	const string& getGuildIntro() const throw() { return m_GuildIntro; }	void setGuildIntro( const string& intro ) throw() { m_GuildIntro = intro; }private :	// GuildID	GuildID_t m_GuildID;	// Guild Intro	string m_GuildIntro;};////////////////////////////////////////////////////////////////////////// class SGModifyGuildIntroOKFactory;//// Factory for SGModifyGuildIntroOK////////////////////////////////////////////////////////////////////////class SGModifyGuildIntroOKFactory : public PacketFactory {public:		// create packet	Packet* createPacket() throw() { return new SGModifyGuildIntroOK(); }	// get packet name	string getPacketName() const throw() { return "SGModifyGuildIntroOK"; }		// get packet id	PacketID_t getPacketID() const throw() { return Packet::PACKET_SG_MODIFY_GUILD_INTRO_OK; }	// get packet's max body size	// *OPTIMIZATION HINT*	// const static LGIncomingConnectionPacketMaxSize 甫 沥狼, 府畔窍扼.	PacketSize_t getPacketMaxSize() const throw() 	{ 		return szGuildID +				// guild ID			   szBYTE +					// Guild Intro length			   255;  					// Guild Intro max length	}};////////////////////////////////////////////////////////////////////////// class LGIncomingConnectionHandler;////////////////////////////////////////////////////////////////////////class SGModifyGuildIntroOKHandler {	public:	// execute packet's handler	static void execute(SGModifyGuildIntroOK* pPacket) throw(ProtocolException, Error);};#endif

⌨️ 快捷键说明

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