コード例 #1
0
 /// <summary>
 ///     Executes the check function.
 /// </summary>
 /// <param name="entry">The entry.</param>
 /// <param name="hero">The target.</param>
 /// <param name="damageType">Type of the damage.</param>
 /// <returns></returns>
 private static bool ExecuteCheckFunction(InvulnerableEntry entry, AIHeroClient hero, DamageType damageType)
 {
     try
     {
         return(entry != null && entry.CheckFunction(hero, damageType));
     }
     catch (Exception ex)
     {
         //LogManager.GetCurrentClassLogger().Error(ex);
     }
     return(false);
 }
コード例 #2
0
 /// <summary>
 ///     Executes the check function.
 /// </summary>
 /// <param name="entry">The entry.</param>
 /// <param name="hero">The target.</param>
 /// <param name="damageType">Type of the damage.</param>
 /// <returns></returns>
 private static bool ExecuteCheckFunction(InvulnerableEntry entry, Obj_AI_Hero hero, DamageType damageType)
 {
     try
     {
         return(entry != null && entry.CheckFunction(hero, damageType));
     }
     catch (Exception ex)
     {
         Logging.Write()(LogLevel.Error, ex);
     }
     return(false);
 }
コード例 #3
0
 /// <summary>
 ///     Executes the check function.
 /// </summary>
 /// <param name="entry">The entry.</param>
 /// <param name="hero">The target.</param>
 /// <param name="damageType">Type of the damage.</param>
 /// <returns></returns>
 private static bool ExecuteCheckFunction(InvulnerableEntry entry, Obj_AI_Hero hero, DamageType damageType)
 {
     try
     {
         return entry != null && entry.CheckFunction(hero, damageType);
     }
     catch (Exception ex)
     {
         Logging.Write()(LogLevel.Error, ex);
     }
     return false;
 }
コード例 #4
0
ファイル: Invulnerable.cs プロジェクト: CONANLXF/Berb.Common
 /// <summary>
 ///     Executes the check function.
 /// </summary>
 /// <param name="entry">The entry.</param>
 /// <param name="hero">The target.</param>
 /// <param name="damageType">Type of the damage.</param>
 /// <returns></returns>
 private static bool ExecuteCheckFunction(InvulnerableEntry entry, AIHeroClient hero, DamageType damageType)
 {
     try
     {
         return entry != null && entry.CheckFunction(hero, damageType);
     }
     catch (Exception ex)
     {
         //LogManager.GetCurrentClassLogger().Error(ex);
     }
     return false;
 }