Ejemplo n.º 1
0
    /// <summary>
    /// 设置技能轮流信息
    /// </summary>
    public static void SetSkillOrder(ref SoldierSkillInfo Info, int soldier_id)
    {
        if (Info == null)
        {
            return;
        }
        s_skill_orderInfo orderinfo = GetSkillOrder(soldier_id);

        if (orderinfo != null)
        {
            Info.attack1 = orderinfo.attack1;
            Info.attack2 = orderinfo.attack2;
        }
    }
Ejemplo n.º 2
0
 public void Copy(SoldierSkillInfo s)
 {
     this.m_gskilltype   = s.m_gskilltype;
     this.m_skill1_type  = s.m_skill1_type;
     this.m_skill2_type  = s.m_skill2_type;
     this.m_skill3_type  = s.m_skill3_type;
     this.m_skill4_type  = s.m_skill4_type;
     this.m_skill5_type  = s.m_skill5_type;
     this.m_lskilltype   = s.m_lskilltype;
     this.m_askilltype   = s.m_askilltype;
     this.m_skill1_level = s.m_skill1_level;
     this.m_skill2_level = s.m_skill2_level;
     this.m_skill3_level = s.m_skill3_level;
     this.m_skill4_level = s.m_skill4_level;
     this.m_skill5_level = s.m_skill5_level;
     this.m_askill_level = s.m_askill_level;
     this.attack1        = s.attack1;
     this.attack2        = s.attack2;
 }