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(); } }
public uint Execute(PacketDistributed ipacket) { GC_GUILD_CHANGE_JOBNAME packet = (GC_GUILD_CHANGE_JOBNAME)ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic if (false == GameManager.gameManager.PlayerDataPool.IsHaveGuild()) { return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); } if (packet.GuildJobId >= (int)GameDefine_Globe.GUILD_JOB.CHIEF && packet.GuildJobId < (int)GameDefine_Globe.GUILD_JOB.MAX) { GameManager.gameManager.PlayerDataPool.GuildInfo.GuildJobName[packet.GuildJobId] = packet.GuildJobName; } if (GuildAuthorityWindowLogic.Instance() != null) { GuildAuthorityWindowLogic.Instance().HandleChangeJobName(); } if (null != GUIData.delGuildDataUpdate) { GUIData.delGuildDataUpdate(); } return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }
void OnChooseClick() { if (GuildAuthorityWindowLogic.Instance() != null) { GuildAuthorityWindowLogic.Instance().HandleSelecMemberChoose(this); } }
public uint Execute(PacketDistributed ipacket) { GC_GUILD_SET_AUTHORITY packet = (GC_GUILD_SET_AUTHORITY)ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic if (false == GameManager.gameManager.PlayerDataPool.IsHaveGuild()) { return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); } if (packet.SetGuildJobId == (int)GameDefine_Globe.GUILD_JOB.VICE_CHIEF) { GameManager.gameManager.PlayerDataPool.GuildInfo.ViceChiefRoutine[(int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_JOIN] = packet.GuildJoin == 1; GameManager.gameManager.PlayerDataPool.GuildInfo.ViceChiefRoutine[(int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_DECLARATION] = packet.Declaration == 1; GameManager.gameManager.PlayerDataPool.GuildInfo.ViceChiefRoutine[(int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_CHANGE_NOTICE] = packet.ChangeNotice == 1; GameManager.gameManager.PlayerDataPool.GuildInfo.ViceChiefRoutine[(int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_CHANGE_JOINREQ] = packet.ChangeJoinReq == 1; GameManager.gameManager.PlayerDataPool.GuildInfo.ViceChiefRoutine[(int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_KICK] = packet.GuildKick == 1; GameManager.gameManager.PlayerDataPool.GuildInfo.ViceChiefRoutine[(int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_SHOP_LEVELUP] = packet.ShopLevelUp == 1; GameManager.gameManager.PlayerDataPool.GuildInfo.ViceChiefRoutine[(int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_OPEN_ACTIVITY] = packet.OpenActivity == 1; } else if (packet.SetGuildJobId == (int)GameDefine_Globe.GUILD_JOB.ELDER) { GameManager.gameManager.PlayerDataPool.GuildInfo.ElderRoutine[(int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_JOIN] = packet.GuildJoin == 1; GameManager.gameManager.PlayerDataPool.GuildInfo.ElderRoutine[(int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_DECLARATION] = packet.Declaration == 1; GameManager.gameManager.PlayerDataPool.GuildInfo.ElderRoutine[(int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_CHANGE_NOTICE] = packet.ChangeNotice == 1; GameManager.gameManager.PlayerDataPool.GuildInfo.ElderRoutine[(int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_CHANGE_JOINREQ] = packet.ChangeJoinReq == 1; GameManager.gameManager.PlayerDataPool.GuildInfo.ElderRoutine[(int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_KICK] = packet.GuildKick == 1; GameManager.gameManager.PlayerDataPool.GuildInfo.ElderRoutine[(int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_SHOP_LEVELUP] = packet.ShopLevelUp == 1; GameManager.gameManager.PlayerDataPool.GuildInfo.ElderRoutine[(int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_OPEN_ACTIVITY] = packet.OpenActivity == 1; } if (GuildAuthorityWindowLogic.Instance() != null) { GuildAuthorityWindowLogic.Instance().HandleSetAuthority(); } return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }