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


C# GameObjectIssueOrderEventArgs类代码示例

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


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

示例1: Obj_AI_Base_OnIssueOrder

        private static void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
        {
            if (sender == null || !sender.IsValid || !sender.IsMe)
            {
                return;
            }
            else
            {
                if (cancelMovt)
                {
                    blockCount++;

                    if (blockCount == 3)
                    {
                        cancelMovt = false;
                        blockCount = 0;
                    }
                    else
                        args.Process = false;
                }

            }

            //blockCount++;

            //if (blockCount == 100)
            //{
            //    cancelMovt = false;
            //    blockCount = 0;
            //}
            //else
            //    packet.Block = true;
        }
开发者ID:floreaiulian,项目名称:Leaguesharp,代码行数:33,代码来源:Program.cs

示例2: OnIssueOrder

 internal static void OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
 {
     if (sender.IsMe && args.Order == GameObjectOrder.MoveTo)
     {
         //Console.WriteLine(@"Movement Order issued!");
     }
 }
开发者ID:Backup521,项目名称:Vayne,代码行数:7,代码来源:KalistaHooks.cs

示例3: Obj_AI_Base_OnIssueOrder

 private static void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
 {
     if (_clone != null && !_override && _menu.Item("CloneOverride").IsActive() &&
         sender.NetworkId == _clone.NetworkId)
     {
         _override = true;
     }
 }
开发者ID:StopMotionCuber,项目名称:LeagueSharp-1,代码行数:8,代码来源:PassiveManager.cs

示例4: OnIssueOrder

 private static void OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
 {
     //Accidental Cancel
     if (sender.IsMe && Logic.Player.HasBuff("katarinarsound") && Utils.TickCount <= whenToCancelR && Config.GetBoolValue("misc.noRCancel"))
     {
         args.Process = false;
     }
 }
开发者ID:StopMotionCuber,项目名称:MotionSharp,代码行数:8,代码来源:BlockIssueOrder.cs

示例5: Obj_AI_Hero_OnIssueOrder

 static void Obj_AI_Hero_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
 {
     if (sender.IsMe && args.Order == GameObjectOrder.MoveTo)
     {
         if (Config.Item("blockmove").GetValue<bool>())
         {
             args.Process = !Casted;
         }
     }
 }
开发者ID:nethd1988,项目名称:KurisuSolutions,代码行数:10,代码来源:Program.cs

示例6: OnIssueOrder

        private static void OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
        {
            if (!sender.IsMe)
                return;

            if (_blockAttack && args.IsAttackMove)
            {
                args.Process = false;
            }
        }
开发者ID:strcow,项目名称:LeagueSharp,代码行数:10,代码来源:Program.cs

示例7: OnIssueOrder

 public static void OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
 {
     if (sender == Heroes.Player && args.Order == GameObjectOrder.MoveTo)
     {
         var nearbyEnemyTurret = args.TargetPosition.GetClosestEnemyTurret();
         if (nearbyEnemyTurret != null && nearbyEnemyTurret.Position.CountNearbyAllyMinions(700) <= 2 && nearbyEnemyTurret.Distance(args.TargetPosition) < 800)
         {
             args.Process = false;
         }
     }
 }
开发者ID:nongnoobjung,项目名称:Experimental,代码行数:11,代码来源:HAManager.cs

示例8: Obj_AI_Base_OnIssueOrder

 private static void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
 {
     if (!OrbwalkLastClickActive)
         return;
     if (!sender.IsMe)
         return;
     if (args.Order != GameObjectOrder.MoveTo)
         return;
     if (!Orbwalking.CanMove(90) || Player.IsCastingInterruptableSpell())
         args.Process = false;
 }
开发者ID:badao,项目名称:ProjectFiora,代码行数:11,代码来源:OrbwalkLastClick.cs

示例9: Obj_AI_Base_OnIssueOrder

 public override void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
 {
     if (sender.IsMe)
     {
         if (E.IsCharging)
         {
             args.Process = false;
             orb.SetMovement(false);
         }
     }
 }
开发者ID:floreaiulian,项目名称:Leaguesharp,代码行数:11,代码来源:zac.cs

示例10: OnOrder

        private static void OnOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
        {
            if (!sender.IsMe) return;

            if (MenuManager.Get<KeyBind>("global.cancelkey").Active)
            {
                args.Process = true;
            }
            else if (Player.HasBuff("KatarinaR") || Player.IsCastingInterruptableSpell())
            {
                args.Process = false;
            }
        }
开发者ID:JouzaLoL,项目名称:ECS,代码行数:13,代码来源:LogicManager.cs

示例11: OnObjAiBaseIssueOrder

 private static void OnObjAiBaseIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
 {
     try
     {
         if (Enabled && Orders && sender.IsMe)
         {
             args.Process = false;
         }
     }
     catch (Exception ex)
     {
         Global.Logger.AddItem(new LogItem(ex));
     }
 }
开发者ID:Lizzaran,项目名称:LeagueSharp-Standalones,代码行数:14,代码来源:BlockOrdersManager.cs

示例12: Obj_AI_Base_OnIssueOrder

        private static void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
        {
            if (sender == null || !sender.IsValid || !sender.IsMe || args.Order != GameObjectOrder.MoveTo ||
                !Menu.Item("MovementEnabled").GetValue<bool>())
            {
                return;
            }

            if (Environment.TickCount - LastMove < Menu.Item("MovementDelay").GetValue<Slider>().Value)
            {
                args.Process = false;
                return;
            }

            LastMove = Environment.TickCount;
        }
开发者ID:ChewyMoon,项目名称:Experimental,代码行数:16,代码来源:Humanizer.cs

示例13: Obj_AI_Base_OnIssueOrder

        private static void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
        {
            var senderValid = sender != null && sender.IsValid && sender.IsMe;

            if (!senderValid || args.Order != GameObjectOrder.MoveTo || !Menu.Item("MovementEnabled").IsActive())
            {
                return;
            }

            if (Utils.TickCount - LastMove < Menu.Item("MovementDelay").GetValue<Slider>().Value)
            {
                args.Process = false;
                return;
            }

            LastMove = Utils.TickCount;
        }
开发者ID:47110572,项目名称:LeagueSharp-5,代码行数:17,代码来源:Program.cs

示例14: Obj_AI_Base_OnIssueOrder

        //Will work when Jodus implemented it
        void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
        {
            if (!IsActive() || HeroJungler == null)
                return;

            if (sender.NetworkId == HeroJungler.NetworkId)
            {
                if (args.Target.NetworkId == ObjectManager.Player.NetworkId)
                {
                    targeting = true;
                }
                else
                {
                    targeting = false;
                }
            }
        }
开发者ID:kampfi,项目名称:SAwarenessBeta,代码行数:18,代码来源:Jungler.cs

示例15: Obj_AI_Base_OnIssueOrder

        private static void Obj_AI_Base_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
        {
            var senderValid = sender.IsValid() && sender.IsMe;

            if (!senderValid || !args.Order.Equals(GameObjectOrder.MoveTo) ||
                !Menu.GetValue<MenuBool>("MovementEnabled").Value)
            {
                return;
            }

            if (Variables.TickCount - LastMove < Menu.GetValue<MenuSlider>("MovementDelay").Value)
            {
                args.Process = false;
                return;
            }

            LastMove = Variables.TickCount;
        }
开发者ID:tr33s,项目名称:LeagueSharp2,代码行数:18,代码来源:Program.cs


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