GameFramework.SkillStateInfo.GetSkillInfoByIndex C# (CSharp) Method

GetSkillInfoByIndex() public method

public GetSkillInfoByIndex ( int skillIndex ) : SkillInfo
skillIndex int
return SkillInfo
        public SkillInfo GetSkillInfoByIndex(int skillIndex)
        {
            if (m_SkillList.Count > skillIndex) {
                return m_SkillList[skillIndex];
            }

            return null;
        }

Usage Example

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