GameFramework.EntityController.CancelIfImpact C# (CSharp) Метод

CancelIfImpact() приватный Метод

private CancelIfImpact ( int actorId, TableConfig cfg, int seq ) : void
actorId int
cfg TableConfig
seq int
Результат void
        internal void CancelIfImpact(int actorId, TableConfig.Skill cfg, int seq)
        {
            EntityViewModel view = GetEntityViewById(actorId);
            if (null != view && null != view.Entity) {
                if (cfg.type != (int)SkillOrImpactType.Skill) {
                    view.Entity.GetSkillStateInfo().RemoveImpact(seq);
                }
            }
        }

Usage Example

Пример #1
0
 static public int CancelIfImpact(IntPtr l)
 {
     try {
         GameFramework.EntityController self = (GameFramework.EntityController)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         TableConfig.Skill a2;
         checkType(l, 3, out a2);
         System.Int32 a3;
         checkType(l, 4, out a3);
         self.CancelIfImpact(a1, a2, a3);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }