GameFramework.SkillStateInfo.GetTotalSkillLevel C# (CSharp) Method

GetTotalSkillLevel() public method

public GetTotalSkillLevel ( ) : int
return int
        public int GetTotalSkillLevel()
        {
            int totalLevel = 0;
            for (int i = 0; i < m_SkillList.Count; i++) {
                if (m_SkillList[i] != null)
                    totalLevel += m_SkillList[i].SkillLevel;
            }
            return totalLevel;
        }

Usage Example

 static public int GetTotalSkillLevel(IntPtr l)
 {
     try {
         GameFramework.SkillStateInfo self = (GameFramework.SkillStateInfo)checkSelf(l);
         var ret = self.GetTotalSkillLevel();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }