本文整理汇总了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());
}
}
示例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));
}
}
}
示例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;
}
}
示例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;
}
}
}
}
}
示例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));
}
}
}
示例6: Game_OnSendPacket
private static void Game_OnSendPacket(GamePacketEventArgs args)
{
if(args.GetPacketId() == 270)
{
PathPerSecCounter++;
}
}