Exemplo n.º 1
0
 public void SendPromotePrentice(int nMentorshipID, int nDesPDBID)
 {
     GameLogic.cmd_mentorship_request_promote cmdData = new GameLogic.cmd_mentorship_request_promote();
     cmdData.nMentorshipID = nMentorshipID;
     cmdData.nDesPDBID     = nDesPDBID;
     ViewEventHelper.Instance.SendCommand <GameLogic.cmd_mentorship_request_promote>(GameLogicDef.GVIEWCMD_MENTORSHIP_REQUESTPROMOTE, ref cmdData);
 }
Exemplo n.º 2
0
 private void OnPromotePrentice()
 {
     if (m_bSelfPrentice && m_MentorshipID > 0 && m_DesPDBID > 0)
     {
         GameLogic.cmd_mentorship_request_promote cmdData = new GameLogic.cmd_mentorship_request_promote();
         cmdData.nMentorshipID = m_MentorshipID;
         cmdData.nDesPDBID     = m_DesPDBID;
         ViewEventHelper.Instance.SendCommand <cmd_mentorship_request_promote>(GameLogicDef.GVIEWCMD_MENTORSHIP_REQUESTPROMOTE, ref cmdData);
     }
 }