本文整理汇总了C#中WowPacketParser.Misc.Packet.ReadToEnd方法的典型用法代码示例。如果您正苦于以下问题:C# Packet.ReadToEnd方法的具体用法?C# Packet.ReadToEnd怎么用?C# Packet.ReadToEnd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WowPacketParser.Misc.Packet
的用法示例。
在下文中一共展示了Packet.ReadToEnd方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleGuildDemote
public static void HandleGuildDemote(Packet packet)
{
if (packet.Direction == Direction.ClientToServer)
{
packet.ReadToEnd();
}
else
{
packet.WriteLine(" : SMSG_???");
packet.ReadToEnd();
}
}
示例2: HandleAutoStoreLootItem
public static void HandleAutoStoreLootItem(Packet packet)
{
if (packet.Direction == Direction.ClientToServer)
{
packet.ReadToEnd();
}
else
{
packet.WriteLine(" : SMSG_???");
packet.ReadToEnd();
}
}
示例3: HandleAttackerStateUpdate
public static void HandleAttackerStateUpdate(Packet packet)
{
if (packet.Direction == Direction.ServerToClient)
{
packet.ReadToEnd();
}
else
{
packet.WriteLine(" : CMSG_???");
packet.ReadToEnd();
}
}
示例4: HandleSendUnlearnSpells
public static void HandleSendUnlearnSpells(Packet packet)
{
if (packet.Direction == Direction.ServerToClient)
{
packet.ReadToEnd();
}
else
{
packet.WriteLine(" : CMSG_GROUP_UNINVITE_GUID");
packet.ReadToEnd();
}
}
示例5: HandleClientChatMessageYell
public static void HandleClientChatMessageYell(Packet packet)
{
if (packet.Direction == Direction.ClientToServer)
{
packet.ReadToEnd();
}
else
{
packet.WriteLine(" : SMSG_???");
//packet.Opcode = (int)Opcode.CMSG_MOUNTSPECIAL_ANIM;
packet.ReadToEnd();
}
}
示例6: HandleAutoEquipItem
public static void HandleAutoEquipItem(Packet packet)
{
packet.ReadByte("Slot");
packet.ReadSByte("Bag");
packet.ReadToEnd();
}
示例7: HandleServerAddonInfo
public static void HandleServerAddonInfo(Packet packet)
{
var BannedAddonsCount = packet.ReadBits("Banned Addons Count", 18);
var AddonsCount = packet.ReadBits("Addons Count", 23);
uint[,] AddonsInfo = new uint[AddonsCount, 4];
packet.ReadToEnd();
}
示例8: HandleServerGameShopQueryresponse
public static void HandleServerGameShopQueryresponse(Packet packet)
{
/*var count36 = packet.ReadBits("count36", 19);
var count16 = packet.ReadBits("count16", 19);
var count44 = new uint[count16];
var unk5312 = new bool[count16];
for (var i = 0; i < count16; i++)
{
packet.ReadBits("unk60", 2);
count44[i] = packet.ReadBits("unk44", 20);
for (var j = 0; j < count44[i]; j++)
{
packet.ReadBits("unk276", 10, i, j); // 69*4
packet.ReadBits("unk4380", 13, i, j); // 1095*4
packet.ReadBit("unk156", i, j);
packet.ReadBit("unk148", i, j);
packet.ReadBit("unk164", i, j);
packet.ReadBit("unk5296", i, j);
packet.ReadBits("unk2328", 10, i, j);
}
unk5312[i] = packet.ReadBit("unk5312", i);
if (unk5312[i])
packet.ReadBits("unk5308", 4, i);
}*/
packet.ReadToEnd();
}
示例9: HandleQuestPoiQuery
public static void HandleQuestPoiQuery(Packet packet)
{
var count = packet.ReadUInt32("Count");
for (var i = 0; i < count; i++) //for (var i = 0; i < 50; i++)
packet.ReadInt32<QuestId>("Quest ID", i);
packet.ReadToEnd(); // Hack
}
示例10: HandleServerAddonsList
public static void HandleServerAddonsList(Packet packet)
{
// This packet requires _addonCount from CMSG_AUTH_SESSION to be parsed.
if (_addonCount == -1)
{
packet.WriteLine("CMSG_AUTH_SESSION was not received - cannot successfully parse this packet.");
packet.ReadToEnd();
return;
}
for (var i = 0; i < _addonCount; i++)
{
packet.ReadByte("Addon State", i);
var sendCrc = packet.ReadBoolean("Use CRC", i);
if (sendCrc)
{
var usePublicKey = packet.ReadBoolean("Use Public Key", i);
if (usePublicKey)
{
var pubKey = packet.ReadChars(256);
packet.Write("[{0}] Public Key: ", i);
foreach (var t in pubKey)
packet.Write(t.ToString(CultureInfo.InvariantCulture));
}
packet.ReadInt32("Unk Int32", i);
}
if (packet.ReadBoolean("Use URL File", i))
packet.ReadCString("Addon URL File", i);
}
if (ClientVersion.AddedInVersion(ClientVersionBuild.V3_0_8_9464))
{
var bannedCount = packet.ReadInt32("Banned Addons Count");
for (var i = 0; i < bannedCount; i++)
{
packet.ReadInt32("ID", i);
var unkStr2 = packet.ReadBytes(16);
packet.WriteLine("[{0}] Unk Hash 1: {1}", i, Utilities.ByteArrayToHexString(unkStr2));
var unkStr3 = packet.ReadBytes(16);
packet.WriteLine("[{0}] Unk Hash 2: {1}", i, Utilities.ByteArrayToHexString(unkStr3));
packet.ReadInt32("Unk Int32 3", i);
if (ClientVersion.AddedInVersion(ClientVersionBuild.V3_3_3a_11723))
packet.ReadInt32("Unk Int32 4", i);
}
}
}
示例11: HandleQuestPoiQuery
public static void HandleQuestPoiQuery(Packet packet)
{
var count = packet.ReadUInt32("Count");
for (var i = 0; i < count; i++) //for (var i = 0; i < 50; i++)
packet.ReadEntry<Int32>(StoreNameType.Quest, "Quest ID", i);
packet.ReadToEnd(); // Hack
}
示例12: HandleServerWardenData
public static void HandleServerWardenData(Packet packet)
{
/*var Size = packet.ReadInt32();
byte[] WardenDataBuffer = packet.ReadBytes(Size);
Packet WardenData = new Packet(WardenDataBuffer, packet.Opcode, packet.Time, packet.Direction, packet.Number, packet.Writer, packet.FileName);
CoreParsers.WardenHandler.HandleServerWardenData(WardenData);*/
packet.ReadToEnd();
}
示例13: HandleForcedReactions
public static void HandleForcedReactions(Packet packet)
{
var counter = packet.ReadBits("Factions", 6);
/*for (var i = 0; i < counter; i++)
{
packet.ReadUInt32("Faction Id");
packet.ReadUInt32("Reputation Rank");
}*/
packet.ReadToEnd();
}
示例14: HandleQuestQueryResp
public static void HandleQuestQueryResp(Packet packet)
{
if (packet.Direction == Direction.ServerToClient)
{
packet.ReadToEnd();
}
else
{
packet.WriteLine(" : CMSG_NULL_0276");
}
}
示例15: HandleChannelJoin434
public static void HandleChannelJoin434(Packet packet)
{
packet.ReadInt32("Channel Id");
packet.ReadBit("Has Voice");
packet.ReadBit("Joined by zone update");
var channelLength = packet.ReadBits(8);
var passwordLength = packet.ReadBits(8);
packet.ReadWoWString("Channel Name", channelLength);
packet.ReadWoWString("Channel Pass", passwordLength);
packet.ReadToEnd();
}