当前位置: 首页>>代码示例>>C#>>正文


C# Interrupter类代码示例

本文整理汇总了C#中Interrupter的典型用法代码示例。如果您正苦于以下问题:C# Interrupter类的具体用法?C# Interrupter怎么用?C# Interrupter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Interrupter类属于命名空间,在下文中一共展示了Interrupter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Interrupter_OnInterruptableSpell

 private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender,
     Interrupter.InterruptableSpellEventArgs e)
 {
     if (sender.IsValidTarget() && sender.IsEnemy)
     {
     }
 }
开发者ID:mezer123,项目名称:EloBuddy,代码行数:7,代码来源:Champion.cs

示例2: Interrupter_OnInterruptableSpell

 private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
 {
     if (Settings.interruptE && !sender.IsDead && !sender.IsInvulnerable && !sender.IsZombie && sender.IsEnemy && e.DangerLevel >= DangerLevel.Medium && sender.IsInRange(Player.Instance, SpellManager.E.Range) && SpellManager.E.IsReady())
     {
         SpellManager.E.Cast(sender);
     }
 }
开发者ID:TopGunner,项目名称:EloBuddy,代码行数:7,代码来源:Program.cs

示例3: Interrupter_OnInterruptableSpell

 public static void Interrupter_OnInterruptableSpell(Obj_AI_Base unit, Interrupter.InterruptableSpellEventArgs spell)
 {
     float getDist = EloBuddy.SDK.Extensions.Distance(_Player, unit) / 2.0f; // formula of swag
     if (Program.MiscMenu["interrupt"].Cast<CheckBox>().CurrentValue && Program.W.IsReady() && Program.Q.IsReady() && unit.IsValidTarget(Program.W.Range))
     {
         if (unit.IsValidTarget(220))
         {
             Program.W.Cast(unit);
             Program.Q.Cast();
         }
         else
         {
             Program.W.Cast(unit);
             EloBuddy.SDK.Core.DelayAction(() => { Program.Q.Cast(); }, (int)getDist);
         }
     }
     if (Program.MiscMenu["interrupt"].Cast<CheckBox>().CurrentValue && Program.Q.IsReady())
     {
         if (unit.Distance(_Player.ServerPosition, true) <= Program.Q.Range)
         {
             Program.Q.Cast(unit);
         }
     }
     if (Program.MiscMenu["interrupt"].Cast<CheckBox>().CurrentValue && Program.W.IsReady())
     {
         if (unit.Distance(_Player.ServerPosition, true) <= Program.W.Range)
         {
             Program.W.Cast(unit);
         }
     }
 }
开发者ID:Smilon,项目名称:AlistarCombo,代码行数:31,代码来源:StateHandler.cs

示例4: Interrupter_OnInterruptableSpell

 private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
 {
     if (UltimateMenu["ultimateinterruptt"].Cast<CheckBox>().CurrentValue)
     if (sender.IsValidTarget(Program.R.Range))
         if (Program.R.IsReady())
             Program.R.Cast(sender);
 }
开发者ID:voidbuddy,项目名称:EloBuddy-Addon,代码行数:7,代码来源:Program.cs

示例5: InterruptMode

 public static void InterruptMode(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs args)
 {
     if (!MenuManager.SettingMenu["Interruptmode"].Cast<CheckBox>().CurrentValue) return;
     if (sender != null && !sender.IsUnderEnemyturret())
     {
         if (MenuManager.SettingMenu["EQinterrupt"].Cast<CheckBox>().CurrentValue
             && args.DangerLevel < DangerLevel.High)
         {
             var target = TargetManager.GetChampionTarget(SpellManager.E.Range, DamageType.Magical);
             if (target != null)
             {
                 SpellManager.CastE(target);
                 if (Orbwalker.CanAutoAttack)
                     Orbwalker.ForcedTarget = target;
                 if (!target.HasBuff("leonazenithbladeroot")
                     && Champion.IsInAutoAttackRange(target))
                 {
                     SpellManager.CastQ(target);
                     Orbwalker.ResetAutoAttack();
                     if (Orbwalker.CanAutoAttack)
                         Player.IssueOrder(GameObjectOrder.AttackTo, target);
                 }
             }
         }
         if (MenuManager.SettingMenu["Rinterrupt"].Cast<CheckBox>().CurrentValue
             && args.DangerLevel >= DangerLevel.High)
         {
             var target = TargetManager.GetChampionTarget(SpellManager.E.Range, DamageType.Magical);
             if (target != null)
             {
                 SpellManager.CastR(target);
             }
         }
     }
 }
开发者ID:Sicryption,项目名称:EloBuddy-Addons,代码行数:35,代码来源:ModeManager.cs

示例6: OnInterruptableSpell

 private static void OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs args)
 {
     if (sender.IsValidTarget() && args.DangerLevel > DangerLevel.Medium && Settings.UseQOnInterruptable)
     {
         SpellManager.Q.Cast(sender);
     }
 }
开发者ID:Enochen,项目名称:EloBuddy,代码行数:7,代码来源:ModeManager.cs

示例7: Interrupter_OnInterruptableSpell

        private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender,
            Interrupter.InterruptableSpellEventArgs e)
        {
            if (!Menu.Misc.InterruptR || !Spells.R.IsReady() || !sender.IsEnemy || sender.HasBuff("xenzhaointimidate"))
            {
                return;
            }

            if (sender.IsValidTarget(Spells.R.Range))
            {
                Utility.Debug(string.Format("Used R on {0} (OnInterruptableSpell).",
                    ((AIHeroClient) sender).ChampionName));
                Spells.R.Cast(sender.Position);
            }
            else
            {
                var erManaCost = Spells.E.Handle.SData.Mana + Spells.R.Handle.SData.Mana;
                if (Spells.E.IsReady() && sender.IsValidTarget(Spells.E.Range) && Player.Instance.Mana >= erManaCost)
                {
                    Utility.Debug(string.Format("Used E on {0} (OnInterruptableSpell).",
                        ((AIHeroClient) sender).ChampionName));
                    Spells.E.Cast(sender);
                }
            }
        }
开发者ID:RoachxD,项目名称:EloBuddy,代码行数:25,代码来源:Program.cs

示例8: OnInterruptableSpell

 private static void OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs args)
 {
     if (sender.IsEnemy && args.DangerLevel == DangerLevel.High && Config.Modes.Misc.UseWint && SpellManager.W.IsReady() && SpellManager.W.IsInRange(sender))
     {
         SpellManager.W.Cast(Player.Instance);
     }
 }
开发者ID:chienhao10,项目名称:Buddy-dev-1,代码行数:7,代码来源:Program.cs

示例9: Interrupter_OnInterruptableSpell

 private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
 {
     if (sender.IsEnemy && SpellManager.E.IsReady() && e.DangerLevel >= DangerLevel.High && sender.HealthPercent > 0 && Config.ESettings.interruptE && sender.IsInRange(Player.Instance, SpellManager.E.Range))
     {
         SpellManager.E.Cast(sender);
     }
 }
开发者ID:denizereer3,项目名称:EloBuddy,代码行数:7,代码来源:Program.cs

示例10: OnInterruptableSpell

 public static void OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs args)
 {
     if (sender.IsEnemy && !sender.IsMinion && args.EndTime > Soraka.E.CastDelay)
     {
         Soraka.E.Cast(sender);
     }
 }
开发者ID:Enochen,项目名称:AIBot,代码行数:7,代码来源:Misc.cs

示例11: Interrupter_OnInterruptableSpell

 private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
 {
     if (MenuManager.MiscMenu.GetCheckBoxValue("Interrupter"))
     {
         SpellManager.CastE(sender);
     }
 }
开发者ID:Real263,项目名称:EloBuddy,代码行数:7,代码来源:Champion.cs

示例12: Interupt

 public static void Interupt(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
 {
     if (!sender.IsEnemy) return;
     if (e.DangerLevel == DangerLevel.High && FiddleTheTrollMeNu.InterupteQ())
     {
         Q.Cast(sender);
     }
 }
开发者ID:FireBuddy,项目名称:Elobuddy-1,代码行数:8,代码来源:Program.cs

示例13: OnInterruptableSpell

        private static void OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
        {
            if (!sender.IsEnemy || e.DangerLevel != DangerLevel.High ||
                !MenuDesigner.MiscUi.Get<CheckBox>("InterW").CurrentValue || !W.IsReady() || !E.IsInRange(sender))
                return;

            W.Cast(sender);
        }
开发者ID:Enelx,项目名称:EloBuddy,代码行数:8,代码来源:Pantheon.cs

示例14: Interrupt

 public static void Interrupt(Obj_AI_Base sender,
     Interrupter.InterruptableSpellEventArgs e)
 {
     if (e != null && Program.Q3.IsReady() && Variables.Q3READY(Variables._Player) && sender.IsValidTarget(Program.Q3.Range) && MenuManager.MiscMenu["InterruptQ"].Cast<CheckBox>().CurrentValue)
     {
         Program.Q3.Cast(sender);
     }
 }
开发者ID:TristeMyth,项目名称:Triste,代码行数:8,代码来源:_interrupter.cs

示例15: Interrupt

 public static void Interrupt(Obj_AI_Base sender,
     Interrupter.InterruptableSpellEventArgs e)
 {
     if (e != null && Program.Q2.IsReady() && Variables.HaveQ3 && sender.IsValidTarget(Program.Q2.Range) && MenuManager.MiscMenu["InterruptQ"].Cast<CheckBox>().CurrentValue)
     {
         Program.Q2.Cast(sender.ServerPosition);
     }
 }
开发者ID:Kysamaa,项目名称:Developing,代码行数:8,代码来源:_interrupter.cs


注:本文中的Interrupter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。