GameFramework.SkillStateInfo.FindImpactInfoById C# (CSharp) Method

FindImpactInfoById() public method

public FindImpactInfoById ( int impactId ) : ImpactInfo
impactId int
return ImpactInfo
        public ImpactInfo FindImpactInfoById(int impactId)
        {
            return m_ImpactList.Find(
                delegate(ImpactInfo info) {
                    return info.ImpactId == impactId;
                }
                );
        }

Usage Example

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