本文整理汇总了C#中WowPacketParser.Misc.Packet.ReadUInt64方法的典型用法代码示例。如果您正苦于以下问题:C# Packet.ReadUInt64方法的具体用法?C# Packet.ReadUInt64怎么用?C# Packet.ReadUInt64使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WowPacketParser.Misc.Packet
的用法示例。
在下文中一共展示了Packet.ReadUInt64方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandlePetNameQueryResponse
public static void HandlePetNameQueryResponse(Packet packet)
{
var hasData = packet.ReadBit();
if (!hasData)
{
packet.ReadUInt64("Pet number");
return;
}
packet.ReadBit("Declined");
const int maxDeclinedNameCases = 5;
var declinedNameLen = new int[maxDeclinedNameCases];
for (var i = 0; i < maxDeclinedNameCases; ++i)
declinedNameLen[i] = (int)packet.ReadBits(7);
var len = packet.ReadBits(8);
for (var i = 0; i < maxDeclinedNameCases; ++i)
if (declinedNameLen[i] != 0)
packet.ReadWoWString("Declined name", declinedNameLen[i], i);
var petName = packet.ReadWoWString("Pet name", len);
packet.ReadTime("Time");
var number = packet.ReadUInt64("Pet number");
var guidArray = (from pair in StoreGetters.NameDict where Equals(pair.Value, number) select pair.Key).ToList();
foreach (var guid in guidArray)
StoreGetters.NameDict[guid] = petName;
}
示例2: HandleTradeGold
public static void HandleTradeGold(Packet packet)
{
if (ClientVersion.AddedInVersion(ClientVersionBuild.V4_0_6_13596)) // Need correct version
packet.ReadUInt64("Gold");
else
packet.ReadUInt32("Gold");
}
示例3: 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);
}
示例4: HandleCalendarEventInvite
public static void HandleCalendarEventInvite(Packet packet)
{
packet.ReadPackedGuid128("InviteGUID");
packet.ReadUInt64("EventID");
packet.ReadUInt64("InviteID");
packet.ReadByte("Level");
packet.ReadByteE<CalendarEventStatus>("Status");
packet.ReadByteE<CalendarEventType>("Type");
packet.ReadPackedTime("ResponseTime");
packet.ReadBit("ClearPending");
}
示例5: HandleAuctionCommandResult
public static void HandleAuctionCommandResult(Packet packet)
{
packet.ReadUInt32("AuctionItemID");
packet.ReadUInt32E<AuctionHouseAction>("Command");
packet.ReadUInt32E<AuctionHouseError>("ErrorCode");
packet.ReadUInt32("BagResult");
packet.ReadPackedGuid128("Guid");
// One of the following is MinIncrement and the other is Money, order still unknown
packet.ReadUInt64("MinIncrement");
packet.ReadUInt64("Money");
}
示例6: ReadBlackMarketItem
public static void ReadBlackMarketItem(Packet packet, params object[] idx)
{
packet.ReadInt32("MarketID", idx);
packet.ReadInt32<UnitId>("SellerNPC", idx);
ItemHandler.ReadItemInstance(packet, "Item", idx);
packet.ReadInt32("Quantity", idx);
packet.ReadUInt64("MinBid", idx);
packet.ReadUInt64("MinIncrement", idx);
packet.ReadUInt64("CurrentBid", idx);
packet.ReadInt32("SecondsRemaining", idx);
packet.ReadInt32("NumBids", idx);
packet.ReadBit("HighBid", idx);
packet.ResetBitReader();
}
示例7: HandleTokenConfirmBuyToken
public static void HandleTokenConfirmBuyToken(Packet packet)
{
packet.ReadUInt32("UnkInt32");
packet.ReadUInt32("PendingBuyConfirmations");
packet.ReadUInt64("GuaranteedPrice");
packet.ReadBit("Confirmed");
}
示例8: HandleAllAchievementData422
public static void HandleAllAchievementData422(Packet packet)
{
var count1 = packet.ReadUInt32("Count1");
for (var i = 0; i < count1; ++i)
packet.ReadBits("Flag", 2, 0, i);
for (var i = 0; i < count1; ++i)
packet.ReadUInt64("Counter", 0, i);
var count2 = packet.ReadUInt32("Count2");
for (var i = 0; i < count2; ++i)
packet.ReadPackedTime("Achievement Time", 1, i);
for (var i = 0; i < count1; ++i)
packet.ReadGuid("Player GUID", 0, i);
for (var i = 0; i < count1; ++i)
packet.ReadPackedTime("Criteria Time", 0, i);
for (var i = 0; i < count1; ++i)
packet.ReadUInt32("Timer 1", 0, i);
for (var i = 0; i < count2; ++i)
packet.ReadUInt32("Achievement Id", 1, i);
for (var i = 0; i < count1; ++i)
packet.ReadUInt32("Criteria Id", 0, i);
for (var i = 0; i < count1; ++i)
packet.ReadUInt32("Timer 2", 0, i);
}
示例9: HandleBlackMarketBidOnItem
public static void HandleBlackMarketBidOnItem(Packet packet)
{
packet.ReadPackedGuid128("NpcGUID");
packet.ReadInt32("MarketID");
packet.ReadUInt64("BidAmount");
V6_0_2_19033.Parsers.ItemHandler.ReadItemInstance(packet, "Item");
}
示例10: HandleBlackMarketBidOnItem
public static void HandleBlackMarketBidOnItem(Packet packet)
{
packet.ReadPackedGuid128("NpcGUID");
packet.ReadInt32("MarketID");
ItemHandler.ReadItemInstance(packet);
packet.ReadUInt64("BidAmount");
}
示例11: HandleCalendarEventInviteModeratorStatus
public static void HandleCalendarEventInviteModeratorStatus(Packet packet)
{
packet.ReadPackedGuid128("InviteGUID");
packet.ReadUInt64("EventID");
packet.ReadByteE<CalendarModerationRank>("Status"); // enum NC
packet.ReadBit("ClearPending");
}
示例12: HandleAllAchievementData406
public static void HandleAllAchievementData406(Packet packet)
{
var achievements = packet.ReadUInt32("Achievement count");
var criterias = packet.ReadUInt32("Criterias count");
for (var i = 0; i < achievements; ++i)
packet.ReadUInt32("Achievement Id", i);
for (var i = 0; i < achievements; ++i)
packet.ReadPackedTime("Achievement Time", i);
for (var i = 0; i < criterias; ++i)
packet.ReadUInt64("Counter", i);
for (var i = 0; i < criterias; ++i)
packet.ReadUInt32("Criteria Timer 1", i);
for (var i = 0; i < criterias; ++i)
packet.ReadPackedTime("Criteria Time", i);
for (var i = 0; i < criterias; ++i)
packet.ReadGuid("Player GUID", i);
for (var i = 0; i < criterias; ++i)
packet.ReadUInt32("Criteria Timer 2", i);
for (var i = 0; i < criterias; ++i)
packet.ReadBits("Flag", 2, i);
for (var i = 0; i < criterias; ++i)
packet.ReadUInt32("Criteria Id", i);
}
示例13: HandleEquipmentSetList
public static void HandleEquipmentSetList(Packet packet)
{
var count = packet.ReadInt32("Count");
for (var i = 0; i < count; i++)
{
packet.ReadInt32("Type", i);
packet.ReadUInt64("Guid", i);
packet.ReadUInt32("SetID", i);
uint ignoreMask = packet.ReadUInt32("IgnoreMask");
for (var j = 0; j < NumSlots; j++)
{
bool ignore = (ignoreMask & (1 << j)) != 0;
packet.ReadPackedGuid128("Pieces" + (ignore ? " (Ignored)" : ""), i, j);
packet.ReadInt32("Appearances", i);
}
for (var j = 0; j < 2; j++)
packet.ReadInt32("Enchants", i);
packet.ResetBitReader();
var setNameLen = packet.ReadBits(8);
var setIconLen = packet.ReadBits(9);
packet.ReadWoWString("SetName", setNameLen, i);
packet.ReadWoWString("SetIcon", setIconLen, i);
}
}
示例14: HandleGuildBankDepositMoney
public static void HandleGuildBankDepositMoney(Packet packet)
{
packet.ReadGuid("GUID");
if (ClientVersion.AddedInVersion(ClientVersionBuild.V4_0_6a_13623))
packet.ReadUInt64("Money");
else
packet.ReadUInt32("Money");
}
示例15: HandleConirmRedeemToken
public static void HandleConirmRedeemToken(Packet packet)
{
packet.ReadUInt32("UnkInt32");
packet.ReadUInt64("Count");
packet.ReadPackedGuid128("TokenGuid");
packet.ReadUInt32("UnkInt32");
packet.ReadBit("Confirm");
}