public uint Execute(PacketDistributed ipacket) { CG_GUILD_REQ_LEVELUP packet = (CG_GUILD_REQ_LEVELUP )ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }
//帮会升级 public void ReqGuildLevelUp(int nLevel) { //无帮会无法申请 if (GameManager.gameManager.PlayerDataPool.GuildInfo.GuildGuid == GlobeVar.INVALID_GUID) { return; } //必须是帮主 if (GameManager.gameManager.PlayerDataPool.GuildInfo.GuildChiefGuid != GUID) { return; } CG_GUILD_REQ_LEVELUP msg = (CG_GUILD_REQ_LEVELUP)PacketDistributed.CreatePacket(MessageID.PACKET_CG_GUILD_REQ_LEVELUP); msg.Level = nLevel; msg.SendPacket(); }