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


C# Spellbook类代码示例

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


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

示例1: Spellbook_OnCastSpell

 private void Spellbook_OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
 {
     if (args.Slot == SpellSlot.Q || args.Slot == SpellSlot.W || args.Slot == SpellSlot.E)
     {
         passRdy = true;
     }
 }
开发者ID:qq2128969,项目名称:LeagueRepo,代码行数:7,代码来源:Lucian.cs

示例2: Spellbook_OnCastSpell

        public static void Spellbook_OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
        {
            if (sender.Owner.IsMe)
            {
                lock (m_lock)
                {
                    if (SPredictioner.Config.Item("ENABLED").GetValue<bool>() && (SPredictioner.Config.Item("COMBOKEY").GetValue<KeyBind>().Active || SPredictioner.Config.Item("HARASSKEY").GetValue<KeyBind>().Active))
                    {
                        if (!ShineCommon.Utility.IsValidSlot(args.Slot))
                            return;

                        if (SPredictioner.Spells[(int)args.Slot] == null)
                            return;

                        if (handleEvent[(int)args.Slot])
                        {
                            args.Process = false;
                            handleEvent[(int)args.Slot] = false;
                            var enemy = args.EndPosition.GetEnemiesInRange(200f).OrderByDescending(p => ShineCommon.Utility.GetPriority(p.ChampionName)).FirstOrDefault();
                            if (enemy == null)
                                enemy = TargetSelector.GetTarget(SPredictioner.Spells[(int)args.Slot].Range, TargetSelector.DamageType.Physical);

                            if (enemy != null)
                                SPredictioner.Spells[(int)args.Slot].SPredictionCast(enemy, ShineCommon.Utility.HitchanceArray[SPredictioner.Config.Item("SPREDHITC").GetValue<StringList>().SelectedIndex]);
                        }
                    }
                }
            }
        }
开发者ID:47110572,项目名称:LeagueSharp,代码行数:29,代码来源:EventHandlers.cs

示例3: OnStopCast

 private static void OnStopCast(Spellbook sender, SpellbookStopCastEventArgs args)
 {
     if (sender?.Owner != null && sender.Owner.IsMe)
     {
         IsBusy = false;
     }
 }
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:7,代码来源:SpellQueue.cs

示例4: OnCastSpell

        static void OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
        {
            if (sender == null || !sender.Owner.IsMe) {
                return;
            }
            var antiswitch = Config.Item("antiswitchenabled").GetValue<bool>();
            var useforthis = Config.Item("Spells." + args.Slot).GetValue<bool>();
            var target = args.Target as Obj_AI_Hero;
            var mindelay = Config.Item("mindelay").GetValue<Slider>().Value;

            if (antiswitch && target != null)
            {
                if (target != Player.LastCastedSpellTarget() && Utils.TickCount - Player.LastCastedSpellT() <= mindelay)
                {
                    args.Process = false;
                    return;
                }
            }

            var humanizerenabled = Config.Item("humanizerenabled").GetValue<bool>();
            var delayforthis = Config.Item(args.Slot + "delay").GetValue<Slider>().Value;
            if (humanizerenabled && useforthis)
            {
                if (Utils.TickCount - Player.LastCastedSpellT() <= delayforthis)
                {
                    args.Process = false;
                }
            }
        }
开发者ID:ninja1234567,项目名称:LeagueSharp,代码行数:29,代码来源:Program.cs

示例5: PassiveControl

 private void PassiveControl(Spellbook sender, SpellbookCastSpellEventArgs args)
 {
     if (args.Slot == SpellSlot.Q || args.Slot == SpellSlot.W || args.Slot == SpellSlot.E)
     {
         ProcessSpell();
     }
 }
开发者ID:47110572,项目名称:LeagueSharp-9,代码行数:7,代码来源:Core.cs

示例6: SummonerItems

 public SummonerItems(Obj_AI_Hero myHero)
 {
     _player = myHero;
     _sumBook = _player.Spellbook;
     _ignite = _player.GetSpellSlot("summonerdot");
     _smite = _player.GetSpellSlot("SummonerSmite");
 }
开发者ID:ngothaison,项目名称:HuyNKSDK,代码行数:7,代码来源:SummonerItems.cs

示例7: Spellbook_OnCastSpell

 private void Spellbook_OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
 {
     if (args.Slot == SpellSlot.E)
     {
         NextCicleOn = Game.Time + 9.8f;
     }
 }
开发者ID:47110572,项目名称:LeagueSharp-9,代码行数:7,代码来源:KeepEAlive.cs

示例8: OnSpell

 public static void OnSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
 {
     if (args.Slot == SpellSlot.Q)
     {
         PortAIO.OrbwalkerManager.ResetAutoAttackTimer();
     }
 }
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:7,代码来源:QSpell.cs

示例9: SummonerItems

 public SummonerItems(Obj_AI_Hero myHero)
 {
     player = myHero;
     sumBook = player.Spellbook;
     ignite = player.GetSpellSlot("summonerdot");
     smite = player.GetSpellSlot("SummonerSmite");
 }
开发者ID:Merc491,项目名称:GoodGuyJodu,代码行数:7,代码来源:SummonerItems.cs

示例10: Spellbook_OnUpdateChargedSpell

 private void Spellbook_OnUpdateChargedSpell(Spellbook sender, SpellbookUpdateChargedSpellEventArgs args)
 {
     if (sender.Owner.IsMe)
     {
         args.Process = !Config.Item("autoR", true).GetValue<bool>();
     }
 }
开发者ID:pan981118pan,项目名称:LeagueRepo,代码行数:7,代码来源:Velkoz.cs

示例11: OnSpell

 public static void OnSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
 {
     if (args.Slot == SpellSlot.Q)
     {
         Orbwalker.ResetAutoAttack();
     }
 }
开发者ID:yashine59fr,项目名称:PortAIO,代码行数:7,代码来源:QSpell.cs

示例12: OnStopCast

 private static void OnStopCast(Spellbook sender, SpellbookStopCastEventArgs args)
 {
     if (sender.Owner.IsMe)
     {
         IsRunning = false;
     }
 }
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:7,代码来源:CommandQueue.cs

示例13: OnSpellbookCastSpell

 private static void OnSpellbookCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
 {
     if (!Enabled)
     {
         return;
     }
     try
     {
         if (sender.Owner.IsMe)
         {
             var target = args.Target as Obj_AI_Hero;
             if (target != null)
             {
                 switch (args.Slot)
                 {
                     case SpellSlot.Q:
                     case SpellSlot.W:
                     case SpellSlot.E:
                     case SpellSlot.R:
                         Damages.Clean();
                         if (Damages.IsDying(target))
                         {
                             args.Process = false;
                         }
                         break;
                 }
             }
         }
     }
     catch (Exception ex)
     {
         Global.Logger.AddItem(new LogItem(ex));
     }
 }
开发者ID:juan2202,项目名称:LeagueSharp-Standalones,代码行数:34,代码来源:OverkillManager.cs

示例14: OnCastSpell

 protected override void OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
 {
     if (sender.Owner.IsMe && args.Slot == SpellSlot.E && Player.IsDashing())
     {
         args.Process = false;
     }
 }
开发者ID:Shpaamyi,项目名称:LeagueSharp,代码行数:7,代码来源:Thresh.cs

示例15: OnCastSpell

 public static void OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
 {
     if (sender.Owner.IsMe && args.Slot == SpellSlot.Q && Program.Player.IsDashing())
     {
         args.Process = false;
     }
 }
开发者ID:Faqer,项目名称:Leaguesharp-2,代码行数:7,代码来源:Helper.cs


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