コード例 #1
0
 /* 角色PVP信息  */
 private static void msg_SC_SELF_PVP_PRO_ACK(int iMsgID, ref CMessage msg)
 {
     CliProto.SC_SELF_PVP_PRO_ACK refMsg = (CliProto.SC_SELF_PVP_PRO_ACK)msg;
     MilitaryLevelUp(sdPVPManager.Instance.nMilitaryLevel, refMsg.m_MilitaryLevel);
     sdPVPManager.Instance.nMilitaryLevel     = refMsg.m_MilitaryLevel;
     sdPVPManager.Instance.nReputation        = refMsg.m_Repute;
     sdPVPManager.Instance.nScore             = refMsg.m_Points;
     sdPVPManager.Instance.nChallenge         = refMsg.m_Times;
     sdPVPManager.Instance.nWin               = refMsg.m_Wins;
     sdPVPManager.Instance.nLose              = refMsg.m_Loses;
     sdPVPManager.Instance.nRank              = refMsg.m_Ranks;
     sdPVPManager.Instance.mRewardFlag        = (uint)refMsg.m_DayReFlag;
     sdPVPManager.Instance.nDayReputation     = refMsg.m_DayRepute;
     sdPVPManager.Instance.mMilitaryRewards   = (refMsg.m_MiFlag == 1);
     sdPVPManager.Instance.m_ChallengeBuyLeft = refMsg.m_BuyTimesLeft;
     sdPVPManager.Instance.RefreshPK();
 }
コード例 #2
0
 /* PVP结算反馈  */
 private static void msg_SC_PVP_RESULT_ACK(int iMsgID, ref CMessage msg)
 {
     CliProto.SC_PVP_RETULT_ACK   refMsg  = (CliProto.SC_PVP_RETULT_ACK)msg;
     CliProto.SC_SELF_PVP_PRO_ACK refMsg2 = (CliProto.SC_SELF_PVP_PRO_ACK)refMsg.m_Pro;
     sdPVPManager.Instance.mbWin = (refMsg.m_Result == 0);
     MilitaryLevelUp(sdPVPManager.Instance.nMilitaryLevel, refMsg2.m_MilitaryLevel);
     sdPVPManager.Instance.nMilitaryLevel      = refMsg2.m_MilitaryLevel;
     sdPVPManager.Instance.nReputation         = refMsg2.m_Repute;
     sdPVPManager.Instance.nScore              = refMsg2.m_Points;
     sdPVPManager.Instance.nChallenge          = refMsg2.m_Times;
     sdPVPManager.Instance.nWin                = refMsg2.m_Wins;
     sdPVPManager.Instance.nLose               = refMsg2.m_Loses;
     sdPVPManager.Instance.nRank               = refMsg2.m_Ranks;
     sdPVPManager.Instance.m_ChallengeBuyLeft  = refMsg2.m_BuyTimesLeft;
     sdPVPManager.Instance.nJiesuan_reputation = (uint)refMsg.m_Repute;
     sdPVPManager.Instance.nJiesuan_score      = refMsg.m_Points;
     sdPVPManager.Instance.mbWin               = refMsg.m_Points < 0 ? false : true;
     sdUICharacter.Instance.ShowPVPJiesuanWnd();
 }