当前位置: 首页>>代码示例>>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;未经允许,请勿转载。