当前位置: 首页>>代码示例>>C#>>正文


C# Packet.ReadInt64方法代码示例

本文整理汇总了C#中WowPacketParser.Misc.Packet.ReadInt64方法的典型用法代码示例。如果您正苦于以下问题:C# Packet.ReadInt64方法的具体用法?C# Packet.ReadInt64怎么用?C# Packet.ReadInt64使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WowPacketParser.Misc.Packet的用法示例。


在下文中一共展示了Packet.ReadInt64方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: HandleBlackMarketItemResult

        public static void HandleBlackMarketItemResult(Packet packet)
        {
            var bit34 = false;

            var bits10 = 0;

            packet.ReadInt32("Int20");
            bits10 = (int)packet.ReadBits(18);

            for (var i = 0; i < bits10; ++i)
            {
                bit34 = packet.ReadBit();
            }

            for (var i = 0; i < bits10; ++i)
            {
                packet.ReadInt32("Item Entry", i);
                packet.ReadInt64("Current Bid", i);
                packet.ReadInt64("Start Price", i);
                packet.ReadInt32("Amount of price raise", i);
                packet.ReadInt32("Auction Id", i);
                packet.ReadInt32("Seller", i);
                packet.ReadInt64("Difference in price", i);
                packet.ReadInt32("Time Left", i);
                packet.ReadInt32("Int9", i);
                packet.ReadInt32("Amount", i);
            }
        }
开发者ID:DDuarte,项目名称:WowPacketParser,代码行数:28,代码来源:BlackMarketHandler.cs

示例2: HandleAvailableVoiceChannel

 public static void HandleAvailableVoiceChannel(Packet packet)
 {
     packet.ReadInt64("Unk Int64 1");
     packet.ReadByte("Channel Type");
     packet.ReadCString("Channel Name");
     packet.ReadInt64("Unk Int64 2");
 }
开发者ID:Asdcrew,项目名称:WowPacketParser,代码行数:7,代码来源:VoiceChatHandler.cs

示例3: HandleBattlePayDistributionAssignToTarget

 public static void HandleBattlePayDistributionAssignToTarget(Packet packet)
 {
     packet.ReadInt32("ClientToken");
     packet.ReadInt64("DistributionID");
     packet.ReadPackedGuid128("TargetCharacter");
     packet.ReadInt32("ProductChoice");
 }
开发者ID:ChipLeo,项目名称:WowPacketParser,代码行数:7,代码来源:BattlePayHandler.cs

示例4: 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());
        }
开发者ID:hodobaj,项目名称:StrawberryTools,代码行数:33,代码来源:TestHandler.cs

示例5: HandleDFProposalResponse

 public static void HandleDFProposalResponse(Packet packet)
 {
     ReadCliRideTicket(packet);
     packet.ReadInt64("InstanceID");
     packet.ReadInt32("ProposalID");
     packet.ReadBit("Accepted");
 }
开发者ID:killradio,项目名称:WowPacketParser,代码行数:7,代码来源:LfgHandler.cs

示例6: HandleBlackMarketRequestItemsResult

        public static void HandleBlackMarketRequestItemsResult(Packet packet)
        {
            var bit34 = false;
            var bits10 = 0;

            packet.ReadInt32("Unk");
            bits10 = (int)packet.ReadBits(18); // item count

            for (var i = 0; i < bits10; ++i)
            {
                bit34 = packet.ReadBit();
            }

            for (var i = 0; i < bits10; ++i)
            {
                packet.ReadInt32("unk1", i);
                packet.ReadInt32("Amount", i); // ?
                packet.ReadInt32("Time Left", i); // ?
                packet.ReadInt32("unk2", i); // Amount of price raise ???
                packet.ReadInt32("Item Entry", i);
                packet.ReadInt64("Start Price", i);
                packet.ReadInt64("Current Bid", i);
                packet.ReadInt64("Difference in price", i); // ?
                packet.ReadInt32("Seller (npc entry)", i);
                packet.ReadInt32("Auction Id", i); // ?
            }
        }
开发者ID:ChipLeo,项目名称:WowPacketParser,代码行数:27,代码来源:BlackMarketHandler.cs

示例7: HandleAddCalendarEventInvite

 public static void HandleAddCalendarEventInvite(Packet packet)
 {
     packet.ReadInt64("Event ID");
     packet.ReadInt64("Invite ID");
     packet.ReadCString("Name");
     packet.ReadEnum<CalendarEventStatus>("Status", TypeCode.Byte);
     packet.ReadEnum<CalendarModerationRank>("Moderation Rank", TypeCode.Byte);
 }
开发者ID:Nihilianth,项目名称:WowPacketParser,代码行数:8,代码来源:CalendarHandler.cs

示例8: Handle13438

 public static void Handle13438(Packet packet)
 {
     packet.ReadInt64("Unk");
     packet.ReadInt64("Unk");
     packet.ReadInt64("Unk");
     packet.ReadInt64("Unk");
     packet.ReadInt64("Unk");
 }
开发者ID:hodobaj,项目名称:StrawberryTools,代码行数:8,代码来源:TestHandler.cs

示例9: HandleTokenUnk1

        public static void HandleTokenUnk1(Packet packet)
        {
            var count1 = packet.ReadInt32("UnkCount1");
            var count2 = packet.ReadInt32("UnkCount2");

            for (int i = 0; i < count1; i++)
                packet.ReadInt64("UnkInt64_1", i);

            for (int i = 0; i < count2; i++)
                packet.ReadInt64("UnkInt64_2", i);
        }
开发者ID:Oboltys,项目名称:WowPacketParser,代码行数:11,代码来源:TokenHandler.cs

示例10: HandleCalendarEventInviteAlert

 public static void HandleCalendarEventInviteAlert(Packet packet)
 {
     packet.ReadInt64("Event ID");
     packet.ReadCString("Title");
     packet.ReadPackedTime("Time");
     packet.ReadEnum<CalendarFlag>("Event Flags", TypeCode.Int32);
     packet.ReadEnum<CalendarEventType>("Type", TypeCode.Int32);
     packet.ReadEntryWithName<Int32>(StoreNameType.LFGDungeon, "Dungeon ID");
     packet.ReadInt64("Invite ID");
     packet.ReadEnum<CalendarEventStatus>("Status", TypeCode.Byte);
     packet.ReadEnum<CalendarModerationRank>("Moderation Rank", TypeCode.Byte);
     packet.ReadPackedGuid("Creator GUID");
     packet.ReadPackedGuid("Sender GUID");
 }
开发者ID:skypeak,项目名称:WowPacketParser_SkyFire,代码行数:14,代码来源:CalendarHandler.cs

示例11: HandleGMTicketCaseStatus

        public static void HandleGMTicketCaseStatus(Packet packet)
        {
            if (ClientVersion.RemovedInVersion(ClientVersionBuild.V6_2_2_20444))
            {
                packet.ReadTime("OldestTicketTime");
                packet.ReadTime("UpdateTime");
            }

            var int24 = packet.ReadInt32("CasesCount");
            for (int i = 0; i < int24; i++)
            {
                packet.ReadInt32("CaseID", i);
                packet.ReadInt32("CaseOpened", i);
                packet.ReadInt32("CaseStatus", i);
                packet.ReadInt16("CfgRealmID", i);
                packet.ReadInt64("CharacterID", i);
                packet.ReadInt32("WaitTimeOverrideMinutes", i);

                packet.ResetBitReader();
                var bits12 = packet.ReadBits(11);
                var bits262 = packet.ReadBits(10);

                packet.ReadWoWString("Url", bits12, i);
                packet.ReadWoWString("WaitTimeOverrideMessage", bits262, i);
            }
        }
开发者ID:Gooyeth,项目名称:WowPacketParser,代码行数:26,代码来源:TicketHandler.cs

示例12: HandleVendorInventory

        public static void HandleVendorInventory(Packet packet)
        {
            uint entry = packet.ReadPackedGuid128("VendorGUID").GetEntry();
            packet.ReadByte("Reason");
            int count = packet.ReadInt32("VendorItems");

            for (int i = 0; i < count; ++i)
            {
                NpcVendor vendor = new NpcVendor
                {
                    Entry = entry,
                    Slot = packet.ReadInt32("Muid", i),
                    Type = (uint)packet.ReadInt32("Type", i)
                };

                int maxCount = packet.ReadInt32("Quantity", i);
                packet.ReadInt64("Price", i);
                packet.ReadInt32("Durability", i);
                int buyCount = packet.ReadInt32("StackCount", i);
                vendor.ExtendedCost = packet.ReadUInt32("ExtendedCostID", i);
                vendor.PlayerConditionID = packet.ReadUInt32("PlayerConditionFailed", i);

                vendor.Item = V6_0_2_19033.Parsers.ItemHandler.ReadItemInstance(packet, i);
                vendor.IgnoreFiltering = packet.ReadBit("DoNotFilterOnVendor", i);

                vendor.MaxCount = maxCount == -1 ? 0 : (uint)maxCount; // TDB
                if (vendor.Type == 2)
                    vendor.MaxCount = (uint)buyCount;

                Storage.NpcVendors.Add(vendor, packet.TimeSpan);
            }
        }
开发者ID:TrinityCore,项目名称:WowPacketParser,代码行数:32,代码来源:NpcHandler.cs

示例13: 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);
        }
开发者ID:TrinityCore,项目名称:WowPacketParser,代码行数:27,代码来源:CalendarHandler.cs

示例14: HandleGetMailList

 public static void HandleGetMailList(Packet packet)
 {
     packet.ReadPackedGuid128("Mailbox");
     var int32 = packet.ReadInt32("Count");
     for (int i = 0; i < int32; i++)
         packet.ReadInt64("LowGuid?");
 }
开发者ID:Oboltys,项目名称:WowPacketParser,代码行数:7,代码来源:MailHandler.cs

示例15: HandleBattlePayDeliveryEnded

        public static void HandleBattlePayDeliveryEnded(Packet packet)
        {
            packet.ReadInt64("DistributionID");

            var itemCount = packet.ReadInt32("ItemCount");
            for (int i = 0; i < itemCount; i++)
                ItemHandler.ReadItemInstance(packet, i);
        }
开发者ID:Oboltys,项目名称:WowPacketParser,代码行数:8,代码来源:BattlePayHandler.cs


注:本文中的WowPacketParser.Misc.Packet.ReadInt64方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。