public uint Execute(PacketDistributed ipacket) { GC_CHANGENAME packet = (GC_CHANGENAME)ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } ChangeNameLogic.ShowChangeName((ChangeNameLogic.ChangeNameType)packet.Nametype); //enter your logic return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }
//改名对话相关 void OnChangeNameForCombineServer() { if (!Singleton <ObjManager> .GetInstance().MainPlayer) { return; } if (Singleton <ObjManager> .GetInstance().MainPlayer.IsNameWithCombineServerSign()) { ChangeNameLogic.ShowChangeName(ChangeNameLogic.ChangeNameType.ChangeNameType_PlayerName_CombineServer); } else { Singleton <ObjManager> .GetInstance().MainPlayer.SendNoticMsg(false, "#{3341}"); } }