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


C# GamePacketEventArgs.GetPacketId方法代码示例

本文整理汇总了C#中GamePacketEventArgs.GetPacketId方法的典型用法代码示例。如果您正苦于以下问题:C# GamePacketEventArgs.GetPacketId方法的具体用法?C# GamePacketEventArgs.GetPacketId怎么用?C# GamePacketEventArgs.GetPacketId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GamePacketEventArgs的用法示例。


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

示例1: Game_OnSendPacket

        private void Game_OnSendPacket(GamePacketEventArgs args)
        {
            return;
            if (args.GetPacketId() == 166)
            {
                //args.Process = false;
            }

            if (args.GetPacketId() != 102 && args.GetPacketId() != 215)
            {

                Program.debug(Game.Time + " PAck " + args.GetPacketId());
            }

        }
开发者ID:julianu37,项目名称:LeagueRepo,代码行数:15,代码来源:OKTWlab.cs

示例2: Game_onSendPacket

 private void Game_onSendPacket(GamePacketEventArgs args)
 {
     if (args.GetPacketId() == 160)
     {
         if (testMenu.Item("EvadeTesterPing").GetValue<bool>())
         {
             ConsolePrinter.Print("Send Path ClickTime: " + (EvadeUtils.TickCount - lastRightMouseClickTime));
         }
     }
 }
开发者ID:aikoy,项目名称:ezEvade,代码行数:10,代码来源:EvadeTester.cs

示例3: Game_onRecvPacket

        private void Game_onRecvPacket(GamePacketEventArgs args)
        {
            if (args.GetPacketId() == 178)
            {
                /*
                //ConsolePrinter.Print(args.GetPacketId());

                foreach (var data in args.PacketData)
                {
                    Console.Write(" " + data);
                }
                ConsolePrinter.Print("");*/

                lastProcessPacketTime = EvadeUtils.TickCount;
            }
        }
开发者ID:aikoy,项目名称:ezEvade,代码行数:16,代码来源:EvadeTester.cs

示例4: Game_OnSendPacket

        private void Game_OnSendPacket(GamePacketEventArgs args)
        {
            if (isChanneling || menu.SubMenu("Main").Item("DodgeSkillShots").GetValue<KeyBind>().Active == false)
                return;

            // Check if the packet sent is a spell cast

            if (args != null && args.GetPacketId() == 228) //if(args.PacketData[0] == 228)            
            {                
                //Game.PrintChat("" + args.GetPacketId());
                
                if (isDodging)
                {
                    foreach (KeyValuePair<String, SpellData> entry in SpellDetector.windupSpells)
                    {
                        SpellData spellData = entry.Value;

                        if (spellData.spellKey == lastSpellCast) //check if it's a spell that we should block
                        {
                            args.Process = false;
                            return;
                        }
                    }
                }
            }
        }
开发者ID:qktlfflzk,项目名称:Backup5.4,代码行数:26,代码来源:Evade.cs

示例5: Game_onSendPacket

 private void Game_onSendPacket(GamePacketEventArgs args)
 {
     if (args.GetPacketId() == 160)
     {
         if (testMenu["EvadeTesterPing"].Cast<CheckBox>().CurrentValue)
         {
             ConsolePrinter.Print("Send Path ClickTime: " + (EvadeUtils.TickCount - lastRightMouseClickTime));
         }
     }
 }
开发者ID:CainWolf,项目名称:PortAIO,代码行数:10,代码来源:EvadeTester.cs

示例6: Game_OnSendPacket

 private static void Game_OnSendPacket(GamePacketEventArgs args)
 {
     if(args.GetPacketId() == 270)
     {
         PathPerSecCounter++;
     }
 }
开发者ID:ReNoGameNoLife,项目名称:LeagueRepo,代码行数:7,代码来源:Program.cs


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