private void PartyUserBuff( byte[] _packet) { // #if _PARTY_LOG_ Debug.Log( "PartyUserBuff"); // #endif AS_SC_PARTY_USER_BUFF userBuff = new AS_SC_PARTY_USER_BUFF(); userBuff.PacketBytesToClass( _packet); AsPartyManager.Instance.PartyUserBuff(userBuff); }
public void PartyUserBuff( AS_SC_PARTY_USER_BUFF data) { if( null == data.body) return; body1_SC_CHAR_BUFF userBuff = new body1_SC_CHAR_BUFF(); // userBuff.nCharUniqKey = data.nCharUniqKey. userBuff.bEffect = data.bEffect; userBuff.nBuffCnt = data.nBuffCnt; // userBuff.body = data.body; userBuff.body = new body2_SC_CHAR_BUFF[data.body.Length]; for(int i=0; i<data.body.Length; ++i) { userBuff.body[i] = new body2_SC_CHAR_BUFF(data.body[i]); } // Debug.Log( "RecivePartyUserBuff" + userBuff.nBuffCnt.ToString() + ":" + data.nCharUniqKey.ToString()); AsPartyMemberDlg memberDlg = m_PartyUI.PartyMemberUI.GetPartyMemberDlgByUniqueId( data.nCharUniqKey); if( null != memberDlg) { memberDlg.PartyUserBuff( userBuff); AS_PARTY_USER member = GetPartyMember( data.nCharUniqKey); member.m_BuffDataList = null; member.m_BuffDataList = new PlayerBuffData[memberDlg.m_PartyBuffUI.BuffDataList.Count]; memberDlg.m_PartyBuffUI.BuffDataList.CopyTo( member.m_BuffDataList); } }