public void SetBuff(Msg_CharBuff _head, Msg_CharBuff_Body _body) { m_Buff.AddBuff(_body, _head.effect_); }
public void StoreBuff( Msg_CharBuff _buff) { foreach( Msg_CharBuff_Body body in _buff.listBuff_) { #region - init dictionary - if( m_dicBuff.ContainsKey( body.skillTableIdx_) == false) m_dicBuff.Add( body.skillTableIdx_, new Dictionary<int, Msg_CharBuff_Body>()); if( m_dicBuff[body.skillTableIdx_].ContainsKey( body.potencyIdx_) == true) { m_dicBuff[body.skillTableIdx_].Remove( body.potencyIdx_); } #endregion m_dicBuff[body.skillTableIdx_].Add( body.potencyIdx_, body); } }
public Msg_CharBuff_Body(Msg_CharBuff _parent, body2_SC_CHAR_BUFF _buff) { parent_ = _parent; charUniqKey_ = _buff.nCharUniqKey; skillTableIdx_ = _buff.nSkillTableIdx; skillLevelTableIdx_ = _buff.nSkillLevelTableIdx; skillLevel_ = _buff.nSkillLevel; chargeStep_ = _buff.nChargeStep; potencyIdx_ = _buff.nPotencyIdx; type_ = _buff.eType; duration_ = _buff.nDuration; serverData = _buff; }