📄 gsmodifyguildintro.h
字号:
//----------------------------------------------------------------------// // Filename : GSModifyGuildIntro.h // Written By : // Description : // //----------------------------------------------------------------------#ifndef __GS_MODIFY_GUILD_INTRO_H__#define __GS_MODIFY_GUILD_INTRO_H__// include files#include "Packet.h"#include "PacketFactory.h"//----------------------------------------------------------------------//// class GSModifyGuildIntro;//// 评捞 眠啊甫 溅绢靛 辑滚俊 夸没茄促.//// *CAUTION*////----------------------------------------------------------------------class GSModifyGuildIntro : 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_GS_MODIFY_GUILD_INTRO; } // 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 "GSModifyGuildIntro"; } // get packet's debug string string toString() const throw();public: // get/set Guild ID 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 : // Guild ID GuildID_t m_GuildID; // Guild Intro string m_GuildIntro;};////////////////////////////////////////////////////////////////////////// class GSModifyGuildIntroFactory;//// Factory for GSModifyGuildIntro////////////////////////////////////////////////////////////////////////class GSModifyGuildIntroFactory : public PacketFactory {public: // create packet Packet* createPacket() throw() { return new GSModifyGuildIntro(); } // get packet name string getPacketName() const throw() { return "GSModifyGuildIntro"; } // get packet id PacketID_t getPacketID() const throw() { return Packet::PACKET_GS_MODIFY_GUILD_INTRO; } // 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 GSModifyGuildIntroHandler { public: // execute packet's handler static void execute(GSModifyGuildIntro* pPacket, Player* pPlayer) throw(ProtocolException, Error);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -