private void MsgBoxChangeGuildMemberJobOK() { //被修改者GUID判断 for (int i = 0; i < m_approverGuid.Count; i++) { if (m_approverGuid[i] == GlobeVar.INVALID_GUID) { return; } } //职位判断 if (m_jobID < 0 || m_jobID >= (int)Games.GlobeDefine.GameDefine_Globe.GUILD_JOB.MAX) { return; } CG_GUILD_JOB_CHANGE msg = (CG_GUILD_JOB_CHANGE)PacketDistributed.CreatePacket(MessageID.PACKET_CG_GUILD_JOB_CHANGE); for (int i = 0; i < m_approverGuid.Count; i++) { msg.AddApprover(m_approverGuid[i]); } msg.JobID = m_jobID; msg.SendPacket(); m_approverGuid.Clear(); m_jobID = GlobeVar.INVALID_ID; if (GuildAuthorityWindowLogic.Instance() != null) { GuildAuthorityWindowLogic.Instance().OnSelectMemberCloseClick(); } }
//帮会禅让MessageBox确认函数 private void MsgBoxChangeGuildMasterOK() { CG_GUILD_JOB_CHANGE msg = (CG_GUILD_JOB_CHANGE)PacketDistributed.CreatePacket(MessageID.PACKET_CG_GUILD_JOB_CHANGE); msg.AddApprover(m_CacheChangeMasterGuid); msg.JobID = (int)Games.GlobeDefine.GameDefine_Globe.GUILD_JOB.CHIEF; msg.SendPacket(); m_CacheChangeMasterGuid = GlobeVar.INVALID_GUID; }
public uint Execute(PacketDistributed ipacket) { CG_GUILD_JOB_CHANGE packet = (CG_GUILD_JOB_CHANGE )ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }