本文整理汇总了C#中WowPacketParser.Misc.Packet.ReadGuid方法的典型用法代码示例。如果您正苦于以下问题:C# Packet.ReadGuid方法的具体用法?C# Packet.ReadGuid怎么用?C# Packet.ReadGuid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WowPacketParser.Misc.Packet
的用法示例。
在下文中一共展示了Packet.ReadGuid方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleDestroyObject
public static void HandleDestroyObject(Packet packet)
{
packet.ReadGuid("GUID");
if (ClientVersion.AddedInVersion(ClientVersionBuild.V3_0_2_9056))
packet.ReadBoolean("Despawn Animation");
}
示例2: Handle41694
public static void Handle41694(Packet packet)
{
var count = packet.ReadInt32("Count");
for (var i = 0; i < count; i++)
packet.ReadInt32("Unk");
for (var i = 0; i < count; i++)
packet.ReadGuid("Unk");
for (var i = 0; i < count; i++)
{
var count2 = packet.ReadInt32("Unk");
for (var j = 0; j < count2; j++)
packet.ReadInt64("Unk");
}
for (var i = 0; i < count; i++)
packet.ReadInt32("Unk");
for (var i = 0; i < count; i++)
{
packet.ReadInt32("Unk");
packet.ReadInt32("Unk");
}
for (var i = 0; i < count; i++)
packet.ReadInt32("Unk");
for (var i = 0; i < count; i++)
packet.WriteLine(packet.ReadPackedTime());
}
示例3: HandleActivateTaxiExpress
public static void HandleActivateTaxiExpress(Packet packet)
{
packet.ReadGuid("GUID");
var count = packet.ReadUInt32("Node Count");
for (var i = 0; i < count; ++i)
packet.ReadUInt32("Node ID", i);
}
示例4: HandleVoiceRosterUpdate
public static void HandleVoiceRosterUpdate(Packet packet)
{
packet.ReadGuid("Group GUID");
packet.ReadInt16("Channel ID");
packet.ReadByte("Channel Type"); // 0: channel, 2: party
packet.ReadCString("Channel Name");
packet.ReadBytes("Encryption Key", 16);
packet.ReadIPAddress("IP");
packet.ReadInt16("Voice Server Port");
var count = packet.ReadByte("Player Count");
packet.ReadGuid("Leader GUID");
var leaderFlags1 = packet.ReadByte();
packet.AddValue("Leader Flags 1", "0x" + leaderFlags1.ToString("X2"));
var leaderFlags2 = packet.ReadByte();
packet.AddValue("Leader Flags 2", "0x" + leaderFlags2.ToString("X2"));
for (var i = 0; i < count - 1; i++)
{
packet.ReadGuid("Player GUID");
packet.ReadByte("Index");
var flags1 = packet.ReadByte();
packet.AddValue("Flags 1", "0x" + flags1.ToString("X2"));
var flags2 = packet.ReadByte();
packet.AddValue("Flags 2", "0x" + flags2.ToString("X2"));
}
}
示例5: HandleVoiceRosterUpdate
public static void HandleVoiceRosterUpdate(Packet packet)
{
packet.ReadGuid("Group GUID");
packet.ReadInt16("Channel ID");
packet.ReadByte("Channel Type"); // 0: channel, 2: party
packet.ReadCString("Channel Name");
packet.WriteLine("Encryption Key: " + Utilities.ByteArrayToHexString(packet.ReadBytes(16)));
packet.WriteLine("IP: " + packet.ReadIPAddress());
packet.ReadInt16("Voice Server Port");
var count = packet.ReadByte("Player Count");
packet.ReadGuid("Leader GUID");
var leaderFlags1 = packet.ReadByte();
packet.WriteLine("Leader Flags 1: 0x" + leaderFlags1.ToString("X2"));
var leaderFlags2 = packet.ReadByte();
packet.WriteLine("Leader Flags 2: 0x" + leaderFlags2.ToString("X2"));
for (var i = 0; i < count - 1; i++)
{
packet.ReadGuid("Player GUID");
packet.ReadByte("Index");
var flags1 = packet.ReadByte();
packet.WriteLine("Flags 1: 0x" + flags1.ToString("X2"));
var flags2 = packet.ReadByte();
packet.WriteLine("Flags 2: 0x" + flags2.ToString("X2"));
}
}
示例6: HandleAvailableVoiceChannel
public static void HandleAvailableVoiceChannel(Packet packet)
{
packet.ReadGuid("Group GUID");
packet.ReadByte("Channel Type");
packet.ReadCString("Channel Name");
packet.ReadGuid("Player GUID");
}
示例7: HandlePetAction
public static void HandlePetAction(Packet packet)
{
packet.ReadGuid("GUID");
var action = (uint)packet.ReadUInt16() + (packet.ReadByte() << 16);
packet.Writer.WriteLine("Action: {0}", action);
packet.ReadEnum<ActionButtonType>("Type", TypeCode.Byte);
packet.ReadGuid("GUID");
}
示例8: HandleAuraCastLog
public static void HandleAuraCastLog(Packet packet)
{
packet.ReadGuid("Caster GUID");
packet.ReadGuid("Target GUID");
packet.ReadEntryWithName<UInt32>(StoreNameType.Spell, "Spell ID");
packet.ReadSingle("Unk 1");
packet.ReadSingle("Unk 2");
}
示例9: HandleAuraCastLog
public static void HandleAuraCastLog(Packet packet)
{
packet.ReadGuid("Caster GUID");
packet.ReadGuid("Target GUID");
packet.ReadUInt32<SpellId>("Spell ID");
packet.ReadSingle("Unk 1");
packet.ReadSingle("Unk 2");
}
示例10: HandlePetAction
public static void HandlePetAction(Packet packet)
{
packet.ReadGuid("GUID");
var action = (uint)packet.ReadUInt16() + (packet.ReadByte() << 16);
packet.AddValue("Action", action);
packet.ReadByteE<ActionButtonType>("Type");
packet.ReadGuid("GUID");
if (ClientVersion.AddedInVersion(ClientVersionBuild.V4_0_6_13596))
packet.ReadVector3("Position");
}
示例11: HandlePetAction
public static void HandlePetAction(Packet packet)
{
packet.ReadGuid("GUID");
var action = (uint)packet.ReadUInt16() + (packet.ReadByte() << 16);
packet.WriteLine("Action: {0}", action);
packet.ReadEnum<ActionButtonType>("Type", TypeCode.Byte);
packet.ReadGuid("GUID");
if (ClientVersion.AddedInVersion(ClientVersionBuild.V4_2_2_14545))
packet.ReadVector3("Position");
}
示例12: HandleBuyItemInSlot
public static void HandleBuyItemInSlot(Packet packet)
{
packet.ReadGuid("Vendor GUID");
packet.ReadUInt32("Item ID");
packet.ReadUInt32("Slot");
packet.ReadUInt32("Count");
packet.ReadGuid("Bag GUID");
packet.ReadByte("Bag Slot");
packet.ReadByte("Count");
}
示例13: HandleBuyItemInSlot
public static void HandleBuyItemInSlot(Packet packet)
{
packet.ReadGuid("Vendor GUID");
packet.ReadEntryWithName<UInt32>(StoreNameType.Item, "Entry");
packet.ReadUInt32("Slot");
packet.ReadUInt32("Count");
packet.ReadGuid("Bag GUID");
packet.ReadByte("Bag Slot");
packet.ReadByte("Count");
}
示例14: HandleInspectTalent
public static void HandleInspectTalent(Packet packet)
{
if (ClientVersion.AddedInVersion(ClientVersionBuild.V4_0_6a_13623))
packet.ReadGuid("GUID");
else
packet.ReadPackedGuid("GUID");
if (packet.Opcode == Opcodes.GetOpcode(Opcode.SMSG_INSPECT_TALENT))
ReadTalentInfo(ref packet);
var slotMask = packet.ReadUInt32("Slot Mask");
var slot = 0;
while (slotMask > 0)
{
if ((slotMask & 0x1) > 0)
{
var name = "[" + (EquipmentSlotType)slot + "] ";
packet.ReadEntryWithName<UInt32>(StoreNameType.Item, name + "Item Entry");
var enchantMask = packet.ReadUInt16();
if (enchantMask > 0)
{
var enchantName = name + "Item Enchantments: ";
while (enchantMask > 0)
{
if ((enchantMask & 0x1) > 0)
{
enchantName += packet.ReadUInt16();
if (enchantMask > 1)
enchantName += ", ";
}
enchantMask >>= 1;
}
packet.WriteLine(enchantName);
}
packet.ReadUInt16(name + "Unk Uint16");
packet.ReadPackedGuid(name + "Creator GUID");
packet.ReadUInt32(name + "Unk Uint32");
}
++slot;
slotMask >>= 1;
}
if (packet.Opcode == Opcodes.GetOpcode(Opcode.SMSG_INSPECT_TALENT)
&& packet.CanRead()) // otherwise it would fail for players without a guild
{
packet.ReadGuid("Guild GUID");
packet.ReadUInt32("Guild Level");
packet.ReadUInt64("Guild Xp");
packet.ReadUInt32("Guild Members");
}
}
示例15: HandleGroupList
public static void HandleGroupList(Packet packet)
{
var grouptype = packet.ReadEnum<GroupTypeFlag>("Group Type", TypeCode.Byte);
packet.ReadByte("Sub Group");
packet.ReadEnum<GroupUpdateFlag>("Flags", TypeCode.Byte);
packet.ReadByte("Player's Role");
if (grouptype.HasAnyFlag(GroupTypeFlag.LookingForDungeon))
{
packet.ReadEnum<InstanceStatus>("Group Type Status", TypeCode.Byte);
packet.ReadLfgEntry("LFG Entry");
if (ClientVersion.AddedInVersion(ClientVersionBuild.V4_2_2_14545))
packet.ReadBoolean("Unk bool");
}
packet.ReadGuid("Group GUID");
if (ClientVersion.AddedInVersion(ClientVersionBuild.V3_3_0_10958))
packet.ReadInt32("Counter");
var numFields = packet.ReadInt32("Member Count");
for (var i = 0; i < numFields; i++)
{
packet.ReadCString("[" + i + "] Name");
packet.ReadGuid("[" + i + "] GUID");
packet.ReadEnum<GroupMemberStatusFlag>("[" + i + "] Status", TypeCode.Byte);
packet.ReadByte("[" + i + "] Sub Group");
packet.ReadEnum<GroupUpdateFlag>("[" + i + "] Update Flags", TypeCode.Byte);
if (ClientVersion.AddedInVersion(ClientVersionBuild.V3_3_0_10958))
packet.ReadEnum<LfgRoleFlag>("[" + i + "] Role", TypeCode.Byte);
}
packet.ReadGuid("Leader GUID");
if (numFields <= 0)
return;
packet.ReadEnum<LootMethod>("Loot Method", TypeCode.Byte);
packet.ReadGuid("Looter GUID");
packet.ReadEnum<ItemQuality>("Loot Threshold", TypeCode.Byte);
if (ClientVersion.AddedInVersion(ClientVersionBuild.V3_2_0_10192))
packet.ReadEnum<MapDifficulty>("Dungeon Difficulty", TypeCode.Byte);
packet.ReadEnum<MapDifficulty>("Raid Difficulty", TypeCode.Byte);
if (ClientVersion.AddedInVersion(ClientVersionBuild.V3_3_0_10958) &&
ClientVersion.RemovedInVersion(ClientVersionBuild.V4_2_2_14545)) // Removed somewhere between wotlk and cataclysm
packet.ReadByte("Unk Byte"); // Has something to do with difficulty too
}