public uint Execute(PacketDistributed ipacket) { CG_DELETE_TITLE packet = (CG_DELETE_TITLE )ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }
void DeleteTitleInvestitiveOK() { if (TableManager.GetTitleDataByID(m_PlayerChooseID, 0).CanDeleteByPlayer == 0) { if (Singleton <ObjManager> .GetInstance().MainPlayer != null) { Singleton <ObjManager> .GetInstance().MainPlayer.SendNoticMsg(false, "#{1598}"); return; } } // 发包给服务器 CG_DELETE_TITLE packet = (CG_DELETE_TITLE)PacketDistributed.CreatePacket(MessageID.PACKET_CG_DELETE_TITLE); packet.TitleIndex = m_PlayerChooseIndex; packet.SendPacket(); }