public void GuildJoinRequest(enSystemMessageFlag state) { m_GuildList.CloseGuildInfomation(); UIControlManager.instance.RemoveWindow(enUIType.GUILDMAIN); _stGuildRecommendListReq req = new _stGuildRecommendListReq(); CNetManager.Instance.SendPacket(CNetManager.Instance.GuildProxy.GuildRecommendList, req, typeof(_stGuildRecommendListAck)); }
/// <summary> /// 길드장 위임창 열기. /// </summary> /// <param name="state"></param> private void OpenGuildDelegationPopup(enSystemMessageFlag state) { if (state == enSystemMessageFlag.NO) { return; } m_GuildDelegationPopupWindow.SetDelegationMember(m_enGuildInfoWindowType, m_GuildDetailInfo); m_GuildDelegationPopupWindow.OpenUI(); }
private void DispatchMissionStart(enSystemMessageFlag state) { if (state != enSystemMessageFlag.YES) { return; } bool bUseCreature = false; _stDispatchStartReq stDispatchStartReq = new _stDispatchStartReq(); stDispatchStartReq.kTeamIndex = m_DispatchRecvData.kTeamIndex; stDispatchStartReq.kMissionCategory = m_DispatchTableData.DispatchCategory; stDispatchStartReq.kDispatchSubID = m_DispatchTableData.DispatchEnum; stDispatchStartReq.vUseCreatureKey = new _vCreatureKey(); for (int i = 0; i < m_DispatchTeamSlotList.Count - 1; ++i) { DispatchTeamSlot TeamSlot = m_DispatchTeamSlotList[i]; if (TeamSlot == null) { continue; } ulong kCreatureKey = 0; if (TeamSlot.CreatureIcon != null) { kCreatureKey = TeamSlot.CreatureIcon.CreatureKey; bUseCreature = true; } stDispatchStartReq.vUseCreatureKey.Add(kCreatureKey); } if (bUseCreature == false) // 보낼 크리쳐가 없을때. { StartCoroutine(DispatchMissionStartFail()); //SystemPopupWindow.Instance.SetSystemPopup(enSystemPopupType.Ok, StringTableManager.GetData(4300), "크리쳐를 선택해주세요."); return; } DispatchTeamSlot slot = m_DispatchTeamSlotList[m_DispatchTeamSlotList.Count - 1]; // 친구슬롯. if (slot.CreatureIcon != null) { stDispatchStartReq.kUseFriendCharKey = slot.CreatureIcon.CreatureKey; } else { stDispatchStartReq.kUseFriendCharKey = 0; } CNetManager.Instance.SendPacket(CNetManager.Instance.DispatchProxy.DispatchStart, stDispatchStartReq, typeof(_stDispatchStartAck)); }
/// <summary> /// 길드 탈퇴 패킷 보냄. /// </summary> /// <param name="state"></param> private void GuildLeaveReq(enSystemMessageFlag state) { if (state == enSystemMessageFlag.NO) { return; } _stGuildLeaveReq stGuildLeaveReq = new _stGuildLeaveReq(); stGuildLeaveReq.kGuildKey = m_GuildDetailInfo.kGuildKey; CNetManager.Instance.SendPacket(CNetManager.Instance.GuildProxy.GuildLeave, stGuildLeaveReq, typeof(_stGuildLeaveAck)); }
private void RquestReport(enSystemMessageFlag state) { if (state != enSystemMessageFlag.YES) { return; } _stPvPReportReq stPvPReportReq = new _stPvPReportReq(); stPvPReportReq.kCharName = _charName; CNetManager.Instance.SendPacket(CNetManager.Instance.MatchProxy.PvPReport, stPvPReportReq, typeof(_stPvPReportAck)); }
/// <summary> /// 길드장 위임 패킷보냄. /// </summary> /// <param name="state"></param> private void GuildOrderCaptainReq(enSystemMessageFlag state) { if (state == enSystemMessageFlag.NO) { return; } _stGuildOrderCaptainReq stGuildOrderCaptainReq = new _stGuildOrderCaptainReq(); stGuildOrderCaptainReq.kGuildKey = m_kGuildKey; stGuildOrderCaptainReq.kDestCharNo = m_MemberInfo.kCharNo; CNetManager.Instance.SendPacket(CNetManager.Instance.GuildProxy.GuildOrderCaptain, stGuildOrderCaptainReq, typeof(_stGuildOrderCaptainAck)); }
/// <summary> /// 길드가입 수락 패킷 보냄. /// </summary> /// <param name="state"></param> private void GuildApprovalReq(enSystemMessageFlag state) { if (state == enSystemMessageFlag.NO) { return; } _stGuildJoinRequestAnswerReq stGuildJoinRequestAnswerReq = new _stGuildJoinRequestAnswerReq(); stGuildJoinRequestAnswerReq.kGuildKey = m_kGuildKey; stGuildJoinRequestAnswerReq.kDestCharNo = m_MemberInfo.kCharNo; stGuildJoinRequestAnswerReq.kAnswer = _enGuildJoinRequestAnswer.eGuildJoinRequestAnswer_YES; // <<<< CNetManager.Instance.SendPacket(CNetManager.Instance.GuildProxy.GuildJoinRequestAnswer, stGuildJoinRequestAnswerReq, typeof(_stGuildJoinRequestAnswerAck)); }
private void OnAddFriendOK(enSystemMessageFlag enFlag) { if (enFlag == enSystemMessageFlag.NO) { return; } //m_AddFriendButton.state = ButtonState.Off; _stFriendRequestSendReq stFriendRequestSendReq = new _stFriendRequestSendReq(); stFriendRequestSendReq.kRequestCharNo = m_GuildUserTeamInfoAck.kDestCharNo; CNetManager.Instance.SendPacket(CNetManager.Instance.FriendProxy.FriendRequestSend, stFriendRequestSendReq, typeof(_stFriendRequestSendAck)); }
private void GuildJoinCancleRequest(enSystemMessageFlag state) { if (state == enSystemMessageFlag.NO) { return; } m_Parent.SetSelectGuildInfo(m_GuildInfo); _stGuildJoinRequestCancelReq stGuildJoinRequestCancelReq = new _stGuildJoinRequestCancelReq(); stGuildJoinRequestCancelReq.kGuildKey = m_kGuildKey; CNetManager.Instance.SendPacket(CNetManager.Instance.GuildProxy.GuildJoinRequestCancel, stGuildJoinRequestCancelReq, typeof(_stGuildJoinRequestCancelAck)); }
private void FastComplete(enSystemMessageFlag state) { if (state != enSystemMessageFlag.YES) { return; } CNetManager.Instance.DispatchStub.OnDispatchRewardReq = OnDispatchRewardReq; _stDispatchFastReq stDispatchFastReq = new _stDispatchFastReq(); stDispatchFastReq.kTeamIndex = m_DispatchRecvData.kTeamIndex; CNetManager.Instance.SendPacket(CNetManager.Instance.DispatchProxy.DispatchFast, stDispatchFastReq, typeof(_stDispatchFastAck)); }
private void MissionCancle(enSystemMessageFlag state) { if (state != enSystemMessageFlag.YES) { return; } _stDispatchCancelReq stDispatchCancelReq = new _stDispatchCancelReq(); stDispatchCancelReq.kTeamIndex = m_DispatchRecvData.kTeamIndex; stDispatchCancelReq.kMissionCategory = m_DispatchRecvData.kMissionCategory; stDispatchCancelReq.kDispatchSubID = m_DispatchRecvData.kDispatchSubID; CNetManager.Instance.SendPacket(CNetManager.Instance.DispatchProxy.DispatchCancel, stDispatchCancelReq, typeof(_stDispatchCancelAck)); }
private void ApprovalJoinReq(enSystemMessageFlag state) { if (state == enSystemMessageFlag.NO) { return; } _stGuildChangeDescReq stGuildChangeDescReq = new _stGuildChangeDescReq(); stGuildChangeDescReq.kGuildKey = m_GuildDetailInfo.kGuildKey; stGuildChangeDescReq.kGuildNotice = m_GuildDetailInfo.kGuildNotice; stGuildChangeDescReq.kGuildDesc = m_GuildDetailInfo.kGuildDesc; stGuildChangeDescReq.kJoinMethod = _enGuildJoinMethod.eGuildJoinMethod_Approval; CNetManager.Instance.SendPacket(CNetManager.Instance.GuildProxy.GuildChangeDesc, stGuildChangeDescReq, typeof(_stGuildChangeDescAck)); }
/// <summary> /// 길드가입 신청 패킷보냄. /// </summary> private void GuildJoinRequestReq(enSystemMessageFlag state) { if (state == enSystemMessageFlag.NO) { return; } if (m_GuildDetailInfo.kJoinMethod == _enGuildJoinMethod.eGuildJoinMethod_Approval && m_Parent.GuildJoinCheck(m_GuildDetailInfo) == false) { return; } _stGuildJoinRequestReq stGuildJoinRequestReq = new _stGuildJoinRequestReq(); stGuildJoinRequestReq.kGuildKey = m_GuildDetailInfo.kGuildKey; CNetManager.Instance.SendPacket(CNetManager.Instance.GuildProxy.GuildJoinRequest, stGuildJoinRequestReq, typeof(_stGuildJoinRequestAck)); }
/// <summary> /// 길드가입 신청 패킷보냄. /// </summary> private void GuildJoinRequest(enSystemMessageFlag state) { if (state == enSystemMessageFlag.NO) { return; } // 길드가입 형태가 승인 가입이면 가입조건을 체크한다. if (m_GuildInfo.kJoinMethod == _enGuildJoinMethod.eGuildJoinMethod_Approval && m_Parent.GuildJoinCheck(m_GuildInfo) == false) { return; } m_Parent.SetSelectGuildInfo(m_GuildInfo); _stGuildJoinRequestReq stGuildJoinRequestReq = new _stGuildJoinRequestReq(); stGuildJoinRequestReq.kGuildKey = m_GuildInfo.kGuildKey; CNetManager.Instance.SendPacket(CNetManager.Instance.GuildProxy.GuildJoinRequest, stGuildJoinRequestReq, typeof(_stGuildJoinRequestAck)); }
private void GuildDelete(enSystemMessageFlag state) { if (state == enSystemMessageFlag.NO) { return; } int iGuldMemberCount = 0; int iCount = m_GuildDetailInfo.vMembers.Count; for (int i = 0; i < iCount; ++i) { CGuildMember member = m_GuildDetailInfo.vMembers[i]; if (member == null) { continue; } if (member.kMemberState == _enGuildMemberState.eGuildMemberState_Member || member.kMemberState == _enGuildMemberState.eGuildMemberState_AbleMember || member.kMemberState == _enGuildMemberState.eGuildMemberState_SubCaptain || member.kMemberState == _enGuildMemberState.eGuildMemberState_AbleSubCaptain) { iGuldMemberCount++; } } if (iGuldMemberCount > 0) { StartCoroutine(IeGuildDeletePopup()); return; } _stGuildDeleteReq stGuildDeleteReq = new _stGuildDeleteReq(); stGuildDeleteReq.kGuildKey = m_GuildDetailInfo.kGuildKey; CNetManager.Instance.SendPacket(CNetManager.Instance.GuildProxy.GuildDelete, stGuildDeleteReq, typeof(_stGuildDeleteAck)); }