public uint Execute(PacketDistributed ipacket) { CG_GUILD_KICK packet = (CG_GUILD_KICK )ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }
//帮会踢人MessageBox确认函数 private void MsgBoxKickGuildMmeberOK() { if (m_CacheKickMemberGuid == GlobeVar.INVALID_GUID) { return; } //无帮会无法申请 if (GameManager.gameManager.PlayerDataPool.GuildInfo.GuildGuid == GlobeVar.INVALID_GUID) { return; } CG_GUILD_KICK msg = (CG_GUILD_KICK)PacketDistributed.CreatePacket(MessageID.PACKET_CG_GUILD_KICK); msg.Kicked = m_CacheKickMemberGuid; msg.SendPacket(); m_CacheKickMemberGuid = GlobeVar.INVALID_GUID; }