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


C# Packet.ReadValue方法代码示例

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


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

示例1: HandleAuctionBidderNotification

 public static void HandleAuctionBidderNotification(Packet packet)
 {
     packet.ReadUInt32("Auction House ID");
     packet.ReadUInt32("Auction ID");
     packet.ReadGuid("Bidder GUID");
     packet.ReadValue("Bid", _auctionSize);
     packet.ReadValue("Diff", _auctionSize);
     packet.ReadUInt32<ItemId>("Item Entry");
     packet.ReadUInt32("Unk UInt32 1");
 }
开发者ID:Oboltys,项目名称:WowPacketParser,代码行数:10,代码来源:AuctionHouseHandler.cs

示例2: HandleAuctionBidderNotification

 public static void HandleAuctionBidderNotification(Packet packet)
 {
     packet.ReadUInt32("Auction House ID");
     packet.ReadUInt32("Auction ID");
     packet.ReadGuid("Bidder GUID");
     packet.ReadValue("Bid", _auctionSize);
     packet.ReadValue("Diff", _auctionSize);
     packet.ReadEntryWithName<UInt32>(StoreNameType.Item, "Item Entry");
     packet.ReadUInt32("Unk UInt32 1");
 }
开发者ID:Nihilianth,项目名称:WowPacketParser,代码行数:10,代码来源:AuctionHouseHandler.cs

示例3: HandleAuctionCommandResult

        public static void HandleAuctionCommandResult(Packet packet)
        {
            packet.ReadUInt32("Auction ID");
            var action = packet.ReadUInt32E<AuctionHouseAction>("Action");
            var error = packet.ReadUInt32E<AuctionHouseError>("Error");

            if (error == AuctionHouseError.Inventory)
                packet.ReadUInt32E<InventoryResult>("Equip Error");

            switch (error)
            {
                case AuctionHouseError.Ok:
                    if (action == AuctionHouseAction.Bid)
                        packet.ReadValue("Diff", _auctionSize);
                    break;
                case AuctionHouseError.HigherBid:
                    packet.ReadGuid("Bidder");
                    packet.ReadValue("Bid", _auctionSize);
                    packet.ReadValue("Diff", _auctionSize);
                    break;
            }
        }
开发者ID:Oboltys,项目名称:WowPacketParser,代码行数:22,代码来源:AuctionHouseHandler.cs

示例4: HandleAuctionPlaceBid

        public static void HandleAuctionPlaceBid(Packet packet)
        {
            packet.ReadGuid("Auctioneer GUID");
            packet.ReadUInt32("Auction Id");

            // I think Blizz got this wrong. Auction Id should be 64 on 4.x, not price.
            packet.ReadValue("Price", _auctionSize);
        }
开发者ID:Oboltys,项目名称:WowPacketParser,代码行数:8,代码来源:AuctionHouseHandler.cs

示例5: HandleAuctionOwnerNotification

 public static void HandleAuctionOwnerNotification(Packet packet)
 {
     packet.ReadUInt32("Auction ID");
     packet.ReadValue("Bid", _auctionSize);
     packet.ReadValue("Diff", _auctionSize);
     packet.ReadGuid("Bidder GUID");
     packet.ReadUInt32<ItemId>("Item Entry");
     packet.ReadUInt32("Unk UInt32 4");
     packet.ReadSingle("Unk float 5");
 }
开发者ID:Oboltys,项目名称:WowPacketParser,代码行数:10,代码来源:AuctionHouseHandler.cs

示例6: HandleAuctionListItemsResult

        public static void HandleAuctionListItemsResult(Packet packet)
        {
            var count = packet.ReadUInt32("Count");
            for (var i = 0; i < count; ++i)
            {
                packet.ReadUInt32("Auction Id", i);
                packet.ReadUInt32<ItemId>("Item Entry", i);

                int enchantmentCount = ClientVersion.AddedInVersion(ClientVersionBuild.V4_3_0_15005) ? 10 : ClientVersion.AddedInVersion(ClientVersionBuild.V4_2_2_14545) ? 9 : ClientVersion.AddedInVersion(ClientType.WrathOfTheLichKing) ? 7 : 6;
                for (var j = 0; j < enchantmentCount; ++j)
                {
                    packet.ReadUInt32("Item Enchantment ID", i, j);
                    packet.ReadUInt32("Item Enchantment Duration", i, j);
                    packet.ReadUInt32("Item Enchantment Charges", i, j);
                }

                packet.ReadInt32("Item Random Property ID", i);
                packet.ReadUInt32("Item Suffix", i);
                packet.ReadUInt32("Item Count", i);
                packet.ReadInt32("Item Spell Charges", i);
                //packet.ReadUInt32E<ItemProtoFlags>("Item Flags", i);
                packet.ReadUInt32("Unk UInt32 1", i);
                packet.ReadGuid("Owner", i);
                packet.ReadValue("Start Bid", _auctionSize, i);
                packet.ReadValue("Out Bid", _auctionSize, i);
                packet.ReadValue("Buyout ", _auctionSize, i);
                packet.ReadUInt32("Time Left", i);
                packet.ReadGuid("Bidder", i);
                packet.ReadValue("Bid", _auctionSize, i);
            }

            packet.ReadUInt32("Total item count");
            packet.ReadUInt32("Desired delay time");
        }
开发者ID:Oboltys,项目名称:WowPacketParser,代码行数:34,代码来源:AuctionHouseHandler.cs

示例7: HandleAuctionListBidderResult

        public static void HandleAuctionListBidderResult(Packet packet)
        {
            var count = packet.ReadUInt32("Count");
            for (var i = 0; i < count; ++i)
            {
                packet.ReadUInt32("Auction Id", i);
                packet.ReadEntryWithName<UInt32>(StoreNameType.Item, "Item Entry", i);

                int enchantmentCount = ClientVersion.AddedInVersion(ClientVersionBuild.V4_3_0_15005) ? 10 : ClientVersion.AddedInVersion(ClientVersionBuild.V4_2_2_14545) ? 9 : ClientVersion.AddedInVersion(ClientType.WrathOfTheLichKing) ? 7 : 6;
                for (var j = 0; j < enchantmentCount; ++j)
                {
                    packet.ReadUInt32("Item Enchantment ID", i, j);
                    packet.ReadUInt32("Item Enchantment Duration", i, j);
                    packet.ReadUInt32("Item Enchantment Charges", i, j);
                }

                packet.ReadInt32("Item Random Property ID", i);
                packet.ReadUInt32("Item Suffix", i);
                packet.ReadUInt32("Item Count", i);
                packet.ReadInt32("Item Spell Charges", i);
                //packet.ReadEnum<ItemFlag>("Item Flags", TypeCode.UInt32, i);
                packet.ReadUInt32("Unk UInt32 1", i);
                packet.ReadGuid("Owner", i);
                packet.ReadValue("Start Bid", _auctionSize, i);
                packet.ReadValue("Out Bid", _auctionSize, i);
                packet.ReadValue("Buyout ", _auctionSize, i);
                packet.ReadUInt32("Time Left", i);
                packet.ReadGuid("Bidder", i);
                packet.ReadValue("Bid", _auctionSize, i);
            }

            packet.ReadUInt32("Own Count");
            packet.ReadUInt32("Unk UInt32 1");
        }
开发者ID:kandera,项目名称:WowPacketParser,代码行数:34,代码来源:AuctionHouseHandler.cs

示例8: HandleAuctionOwnerNotification

 public static void HandleAuctionOwnerNotification(Packet packet)
 {
     packet.ReadUInt32("Auction ID");
     packet.ReadValue("Bid", _auctionSize);
     packet.ReadValue("Unk 1", _auctionSize);
     packet.ReadUInt64("Unk UInt64 2");
     packet.ReadEntryWithName<UInt32>(StoreNameType.Item, "Item Entry");
     packet.ReadUInt32("Unk UInt32 4");
     packet.ReadSingle("Unk float 5");
 }
开发者ID:kandera,项目名称:WowPacketParser,代码行数:10,代码来源:AuctionHouseHandler.cs

示例9: HandleAuctionListBidderItemsResult

        public static void HandleAuctionListBidderItemsResult(Packet packet)
        {
            var count = packet.ReadUInt32("Count");
            for (var i = 0; i < count; ++i)
            {
                packet.ReadUInt32("Auction Id", i);
                packet.ReadUInt32<ItemId>("Item Entry", i);

                int enchantmentCount = 8;
                for (var j = 0; j < enchantmentCount; ++j)
                {
                    packet.ReadUInt32("Item Enchantment ID", i, j);
                    packet.ReadUInt32("Item Enchantment Duration", i, j);
                    packet.ReadUInt32("Item Enchantment Charges", i, j);
                }

                packet.ReadUInt32("Unk UInt32 1", i);
                packet.ReadInt32("Item Random Property ID", i);
                packet.ReadUInt32("Item Suffix", i);
                packet.ReadUInt32("Item Count", i);
                packet.ReadInt32("Item Spell Charges", i);
                packet.ReadUInt32E<ItemProtoFlags>("Item Flags", i);
                packet.ReadGuid("Owner", i);
                packet.ReadValue("Start Bid", TypeCode.UInt64, i);
                packet.ReadValue("Out Bid", TypeCode.UInt64, i);
                packet.ReadValue("Buyout ", TypeCode.UInt64, i);
                packet.ReadUInt32("Time Left", i);
                packet.ReadGuid("Bidder", i);
                packet.ReadValue("Bid", TypeCode.UInt64, i);
            }

            packet.ReadUInt32("Total item count");
            packet.ReadUInt32("Desired delay time");
        }
开发者ID:ChipLeo,项目名称:WowPacketParser,代码行数:34,代码来源:AuctionHouseHandler.cs


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