本文整理汇总了C#中WowPacketParser.Misc.Packet.ReadPackedGuid128方法的典型用法代码示例。如果您正苦于以下问题:C# Packet.ReadPackedGuid128方法的具体用法?C# Packet.ReadPackedGuid128怎么用?C# Packet.ReadPackedGuid128使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WowPacketParser.Misc.Packet
的用法示例。
在下文中一共展示了Packet.ReadPackedGuid128方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleAttackStartStop
public static void HandleAttackStartStop(Packet packet)
{
packet.ReadPackedGuid128("Attacker Guid");
packet.ReadPackedGuid128("Victim Guid");
packet.ReadBit("NowDead");
}
示例2: HandleAuctionListItems
public static void HandleAuctionListItems(Packet packet)
{
packet.ReadInt32("Offset");
packet.ReadPackedGuid128("Auctioneer");
packet.ReadByte("MinLevel");
packet.ReadByte("MaxLevel");
packet.ReadInt32("InvType");
packet.ReadInt32("ItemClass");
packet.ReadInt32("ItemSubclass");
packet.ReadInt32("Quality");
var sort = packet.ReadByte("SortCount");
packet.ResetBitReader();
var len = packet.ReadBits(8);
packet.ReadWoWString("Name", len);
packet.ReadBit("OnlyUsable");
packet.ReadBit("ExactMatch");
var size = packet.ReadInt32("DataSize");
var data = packet.ReadBytes(size);
var sorts = new Packet(data, packet.Opcode, packet.Time, packet.Direction, packet.Number, packet.Writer, packet.FileName);
for (var i = 0; i < sort; ++i)
{
sorts.ReadByte("UnkByte1", i);
sorts.ReadByte("UnkByte2", i);
}
}
示例3: HandleGuildBankActivate
public static void HandleGuildBankActivate(Packet packet)
{
packet.ReadPackedGuid128("Banker");
packet.ResetBitReader();
packet.ReadBit("FullUpdate");
}
示例4: HandleBattlePayDistributionAssignToTarget
public static void HandleBattlePayDistributionAssignToTarget(Packet packet)
{
packet.ReadInt32("ClientToken");
packet.ReadInt64("DistributionID");
packet.ReadPackedGuid128("TargetCharacter");
packet.ReadInt32("ProductChoice");
}
示例5: HandleLootResponse
public static void HandleLootResponse(Packet packet)
{
packet.ReadPackedGuid128("Owner");
packet.ReadPackedGuid128("LootObj");
packet.ReadByteE<LootError>("FailureReason");
packet.ReadByteE<LootType>("AcquireReason");
packet.ReadByteE<LootMethod>("LootMethod");
packet.ReadByteE<ItemQuality>("Threshold");
packet.ReadUInt32("Coins");
var itemCount = packet.ReadUInt32("ItemCount");
var currencyCount = packet.ReadUInt32("CurrencyCount");
packet.ResetBitReader();
packet.ReadBit("Acquired");
packet.ReadBit("AELooting");
packet.ReadBit("PersonalLooting");
for (var i = 0; i < itemCount; ++i)
ReadLootItem(packet, i, "LootItem");
for (var i = 0; i < currencyCount; ++i)
V6_0_2_19033.Parsers.LootHandler.ReadCurrenciesData(packet, i, "Currencies");
}
示例6: HandleVoidItemSwapResponse
public static void HandleVoidItemSwapResponse(Packet packet)
{
packet.ReadPackedGuid128("VoidItemA");
packet.ReadInt32("VoidItemSlotA");
packet.ReadPackedGuid128("VoidItemB");
packet.ReadInt32("VoidItemSlotB");
}
示例7: HandleCalendarEventInviteAlert
public static void HandleCalendarEventInviteAlert(Packet packet)
{
// TODO: find unks
packet.ReadUInt64("EventID");
packet.ReadPackedTime("Date");
packet.ReadInt32E<CalendarFlag>("Flags");
packet.ReadByteE<CalendarEventType>("EventType");
packet.ReadInt32("TextureID");
packet.ReadPackedGuid128("EventGuildID");
packet.ReadUInt64("InviteID");
packet.ReadByteE<CalendarEventStatus>("Status");
packet.ReadByteE<CalendarModerationRank>("ModeratorStatus");
packet.ReadPackedGuid128("OwnerGUID | InvitedByGUID");
packet.ReadPackedGuid128("OwnerGUID | InvitedByGUID");
var eventNameLength = packet.ReadBits("EventNameLength", 8);
packet.ResetBitReader();
packet.ReadWoWString("EventName", eventNameLength);
}
示例8: HandleAreaTriggerReShape
public static void HandleAreaTriggerReShape(Packet packet)
{
packet.ReadPackedGuid128("TriggerGUID");
packet.ResetBitReader();
var hasAreaTriggerSpline = packet.ReadBit("HasAreaTriggerSpline");
var hasAreaTriggerUnkType = packet.ReadBit("HasAreaTriggerUnkType");
if (hasAreaTriggerSpline)
ReadAreaTriggerSpline(packet);
if (hasAreaTriggerUnkType)
{
packet.ResetBitReader();
var unk1 = packet.ReadBit("AreaTriggerUnk1");
var hasCenter = packet.ReadBit("HasCenter");
packet.ReadBit("Unk bit 703 1");
packet.ReadBit("Unk bit 703 2");
packet.ReadUInt32("Unk UInt 1");
packet.ReadInt32("Unk Int 1");
packet.ReadUInt32("Unk UInt 2");
packet.ReadSingle("Radius");
packet.ReadSingle("BlendFromRadius");
packet.ReadSingle("InitialAngel");
packet.ReadSingle("ZOffset");
if (unk1)
packet.ReadPackedGuid128("AreaTriggerUnkGUID");
if (hasCenter)
packet.ReadVector3("Center");
}
}
示例9: HandleContactList
public static void HandleContactList(Packet packet)
{
packet.ReadInt32E<ContactListFlag>("List Flags");
var bits6 = packet.ReadBits("ContactInfoCount", 8);
for (var i = 0; i < bits6; i++)
{
packet.ReadPackedGuid128("Guid", i);
packet.ReadPackedGuid128("WowAccount", i);
packet.ReadInt32("VirtualRealmAddr", i);
packet.ReadInt32("NativeRealmAddr", i);
packet.ReadInt32("TypeFlags", i);
packet.ReadByte("Status", i);
packet.ReadInt32("AreaID", i);
packet.ReadInt32("Level", i);
packet.ReadInt32("ClassID", i);
packet.ResetBitReader();
var bits44 = packet.ReadBits(10);
packet.ReadWoWString("Notes", bits44, i);
}
}
示例10: HandleCalendarSendEvent
public static void HandleCalendarSendEvent(Packet packet)
{
packet.ReadByte("EventType");
packet.ReadPackedGuid128("OwnerGUID");
packet.ReadInt64("EventID");
packet.ReadByte("GetEventType");
packet.ReadInt32("TextureID");
packet.ReadUInt32("Flags");
packet.ReadUInt32("Date");
packet.ReadUInt32("LockDate");
packet.ReadPackedGuid128("EventGuildID");
var inviteCount = packet.ReadInt32("InviteCount");
packet.ResetBitReader();
var lenEventName = packet.ReadBits(8);
var lenDescription = packet.ReadBits(11);
packet.ResetBitReader();
for (int i = 0; i < inviteCount; i++)
V6_0_2_19033.Parsers.CalendarHandler.ReadCalendarEventInviteInfo(packet, "Invites", i);
packet.ReadWoWString("EventName", lenEventName);
packet.ReadWoWString("Description", lenDescription);
}
示例11: HandleSpellHealLog
public static void HandleSpellHealLog(Packet packet)
{
packet.ReadPackedGuid128("TargetGUID");
packet.ReadPackedGuid128("CasterGUID");
packet.ReadInt32<SpellId>("SpellID");
packet.ReadInt32("Health");
packet.ReadInt32("OverHeal");
packet.ReadInt32("Absorbed");
packet.ResetBitReader();
packet.ReadBit("Crit");
var hasCritRollMade = packet.ReadBit("HasCritRollMade");
var hasCritRollNeeded = packet.ReadBit("HasCritRollNeeded");
var hasLogData = packet.ReadBit("HasLogData");
var hasSandboxScaling = packet.ReadBit("HasLogData");
if (hasCritRollMade)
packet.ReadSingle("CritRollMade");
if (hasCritRollNeeded)
packet.ReadSingle("CritRollNeeded");
if (hasLogData)
SpellHandler.ReadSpellCastLogData(packet);
if (hasSandboxScaling)
ReadSandboxScalingData(packet, "SandboxScalingData");
}
示例12: HandleItemPushResult
public static void HandleItemPushResult(Packet packet)
{
packet.ReadPackedGuid128("PlayerGUID");
packet.ReadByte("Slot");
packet.ReadInt32("SlotInBag");
packet.ReadUInt32("QuestLogItemID");
packet.ReadUInt32("Quantity");
packet.ReadUInt32("QuantityInInventory");
packet.ReadInt32("DungeonEncounterID");
packet.ReadUInt32("BattlePetBreedID");
packet.ReadUInt32("BattlePetBreedQuality");
packet.ReadUInt32("BattlePetSpeciesID");
packet.ReadUInt32("BattlePetLevel");
packet.ReadPackedGuid128("ItemGUID");
packet.ResetBitReader();
packet.ReadBit("Pushed");
packet.ReadBit("Created");
packet.ReadBits("DisplayText", 3);
packet.ReadBit("IsBonusRoll");
packet.ReadBit("IsEncounterLoot");
V6_0_2_19033.Parsers.ItemHandler.ReadItemInstance(packet, "ItemInstance");
}
示例13: HandleTradeStatus
public static void HandleTradeStatus(Packet packet)
{
packet.ReadBit("FailureForYou");
var status = packet.ReadBits("Status", 5);
if (status == 13)
packet.ReadBit("PartnerIsSameBnetAccount");
if (status == 13)
{
packet.ReadInt32("CurrencyType");
packet.ReadInt32("CurrencyQuantity");
}
if (status == 31)
packet.ReadInt32("ID");
if (status == 4)
{
packet.ReadPackedGuid128("PartnerGuid");
packet.ReadPackedGuid128("PartnerWowAccount");
}
if (status == 1 || status == 0)
packet.ReadByte("TradeSlot");
if (status == 8 || status == 21)
{
packet.ReadInt32("BagResult");
packet.ReadInt32("ItemID");
}
}
示例14: HandleGuildQueryResponse
public static void HandleGuildQueryResponse(Packet packet)
{
packet.ReadPackedGuid128("Guild Guid");
var hasData = packet.ReadBit();
if (hasData)
{
packet.ReadPackedGuid128("GuildGUID");
packet.ReadInt32("VirtualRealmAddress");
var rankCount = packet.ReadInt32("RankCount");
packet.ReadInt32("EmblemColor");
packet.ReadInt32("EmblemStyle");
packet.ReadInt32("BorderColor");
packet.ReadInt32("BorderStyle");
packet.ReadInt32("BackgroundColor");
packet.ResetBitReader();
var nameLen = packet.ReadBits(7);
for (var i = 0; i < rankCount; i++)
{
packet.ReadInt32("RankID", i);
packet.ReadInt32("RankOrder", i);
packet.ResetBitReader();
var rankNameLen = packet.ReadBits(7);
packet.ReadWoWString("Rank Name", rankNameLen, i);
}
packet.ReadWoWString("Guild Name", nameLen);
}
}
示例15: HandleDestructibleBuildingDamage
public static void HandleDestructibleBuildingDamage(Packet packet)
{
packet.ReadPackedGuid128("Target");
packet.ReadPackedGuid128("Caster");
packet.ReadPackedGuid128("Owner");
packet.ReadInt32("Damage");
packet.ReadInt32<SpellId>("SpellID");
}