當前位置: 首頁>>代碼示例>>C#>>正文


C# Packet.ReadUInt64方法代碼示例

本文整理匯總了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;
        }
開發者ID:samaelsacred,項目名稱:WowPacketParser,代碼行數:30,代碼來源:PetHandler.cs

示例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");
 }
開發者ID:Huri,項目名稱:WowPacketParser,代碼行數:7,代碼來源:TradeHandler.cs

示例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);
        }
開發者ID:TrinityCore,項目名稱:WowPacketParser,代碼行數:27,代碼來源:CalendarHandler.cs

示例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");
 }
開發者ID:TrinityCore,項目名稱:WowPacketParser,代碼行數:11,代碼來源:CalendarHandler.cs

示例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");
        }
開發者ID:TrinityCore,項目名稱:WowPacketParser,代碼行數:12,代碼來源:AuctionHandler.cs

示例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();
 }
開發者ID:TrinityCore,項目名稱:WowPacketParser,代碼行數:14,代碼來源:BlackMarketHandler.cs

示例7: HandleTokenConfirmBuyToken

 public static void HandleTokenConfirmBuyToken(Packet packet)
 {
     packet.ReadUInt32("UnkInt32");
     packet.ReadUInt32("PendingBuyConfirmations");
     packet.ReadUInt64("GuaranteedPrice");
     packet.ReadBit("Confirmed");
 }
開發者ID:ChipLeo,項目名稱:WowPacketParser,代碼行數:7,代碼來源:TokenHandler.cs

示例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);
        }
開發者ID:hodobaj,項目名稱:StrawberryTools,代碼行數:31,代碼來源:AchievementHandler.cs

示例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");
 }
開發者ID:TrinityCore,項目名稱:WowPacketParser,代碼行數:7,代碼來源:BlackMarketHandler.cs

示例10: HandleBlackMarketBidOnItem

 public static void HandleBlackMarketBidOnItem(Packet packet)
 {
     packet.ReadPackedGuid128("NpcGUID");
     packet.ReadInt32("MarketID");
     ItemHandler.ReadItemInstance(packet);
     packet.ReadUInt64("BidAmount");
 }
開發者ID:cyberbrest,項目名稱:WowPacketParser,代碼行數:7,代碼來源:BlackMarketHandler.cs

示例11: HandleCalendarEventInviteModeratorStatus

 public static void HandleCalendarEventInviteModeratorStatus(Packet packet)
 {
     packet.ReadPackedGuid128("InviteGUID");
     packet.ReadUInt64("EventID");
     packet.ReadByteE<CalendarModerationRank>("Status"); // enum NC
     packet.ReadBit("ClearPending");
 }
開發者ID:TrinityCore,項目名稱:WowPacketParser,代碼行數:7,代碼來源:CalendarHandler.cs

示例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);
        }
開發者ID:samaelsacred,項目名稱:WowPacketParser,代碼行數:32,代碼來源:AchievementHandler.cs

示例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);
            }
        }
開發者ID:TrinityCore,項目名稱:WowPacketParser,代碼行數:29,代碼來源:EquipmentSetHandler.cs

示例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");
 }
開發者ID:ChipLeo,項目名稱:WowPacketParser,代碼行數:8,代碼來源:GuildHandler.cs

示例15: HandleConirmRedeemToken

 public static void HandleConirmRedeemToken(Packet packet)
 {
     packet.ReadUInt32("UnkInt32");
     packet.ReadUInt64("Count");
     packet.ReadPackedGuid128("TokenGuid");
     packet.ReadUInt32("UnkInt32");
     packet.ReadBit("Confirm");
 }
開發者ID:ChipLeo,項目名稱:WowPacketParser,代碼行數:8,代碼來源:TokenHandler.cs


注:本文中的WowPacketParser.Misc.Packet.ReadUInt64方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。