本文整理汇总了C#中WowPacketParser.Misc.Packet.ReadUInt32E方法的典型用法代码示例。如果您正苦于以下问题:C# Packet.ReadUInt32E方法的具体用法?C# Packet.ReadUInt32E怎么用?C# Packet.ReadUInt32E使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WowPacketParser.Misc.Packet
的用法示例。
在下文中一共展示了Packet.ReadUInt32E方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleLFGuildAddRecruit
public static void HandleLFGuildAddRecruit(Packet packet)
{
var guid = new byte[8];
packet.ReadUInt32E<GuildFinderOptionsRoles>("Class Roles");
packet.ReadUInt32E<GuildFinderOptionsInterest>("Guild Interests");
packet.ReadUInt32E<GuildFinderOptionsAvailability>("Availability");
guid[3] = packet.ReadBit();
guid[0] = packet.ReadBit();
guid[6] = packet.ReadBit();
guid[1] = packet.ReadBit();
var comment = packet.ReadBits(11);
guid[5] = packet.ReadBit();
guid[4] = packet.ReadBit();
guid[7] = packet.ReadBit();
var player = packet.ReadBits(7);
guid[2] = packet.ReadBit();
packet.ReadXORByte(guid, 4);
packet.ReadXORByte(guid, 5);
packet.ReadWoWString("Comment", comment);
packet.ReadWoWString("Player name", player);
packet.ReadXORByte(guid, 7);
packet.ReadXORByte(guid, 2);
packet.ReadXORByte(guid, 0);
packet.ReadXORByte(guid, 6);
packet.ReadXORByte(guid, 1);
packet.ReadXORByte(guid, 3);
packet.WriteGuid("Guild GUID", guid);
}
示例2: HandleGuildFinderBrowse
public static void HandleGuildFinderBrowse(Packet packet)
{
packet.ReadUInt32E<GuildFinderOptionsRoles>("Class Roles");
packet.ReadUInt32E<GuildFinderOptionsAvailability>("Availability");
packet.ReadUInt32E<GuildFinderOptionsInterest>("Guild Interests");
packet.ReadUInt32("Player Level");
}
示例3: HandleGuildFinderSetGuildPost422
public static void HandleGuildFinderSetGuildPost422(Packet packet)
{
packet.ReadBit("Join");
packet.ReadUInt32E<GuildFinderOptionsAvailability>("Availability");
packet.ReadUInt32E<GuildFinderOptionsRoles>("Class Roles");
packet.ReadUInt32E<GuildFinderOptionsInterest>("Guild Interests");
packet.ReadUInt32E<GuildFinderOptionsLevel>("Level");
packet.ReadCString("Comment");
}
示例4: HandleMailCommandResult
public static void HandleMailCommandResult(Packet packet)
{
packet.ReadUInt32("MailID");
packet.ReadUInt32E<MailActionType>("Command");
packet.ReadUInt32E<MailErrorType>("ErrorCode");
packet.ReadUInt32("BagResult");
packet.ReadUInt32("AttachID");
packet.ReadUInt32("QtyInInventory");
}
示例5: HandleGuildFinderSetGuildPost434
public static void HandleGuildFinderSetGuildPost434(Packet packet)
{
packet.ReadUInt32E<GuildFinderOptionsLevel>("Level");
packet.ReadUInt32E<GuildFinderOptionsAvailability>("Availability");
packet.ReadUInt32E<GuildFinderOptionsInterest>("Guild Interests");
packet.ReadUInt32E<GuildFinderOptionsRoles>("Class Roles");
var length = packet.ReadBits(11);
packet.ReadBit("Listed");
packet.ReadWoWString("Comment", length);
}
示例6: 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");
}
示例7: HandleDBReply
public static void HandleDBReply(Packet packet)
{
var type = packet.ReadUInt32E<DB2Hash>("TableHash");
var entry = packet.ReadInt32("RecordID");
var timeStamp = packet.ReadUInt32();
packet.AddValue("Timestamp", Utilities.GetDateTimeFromUnixTime(timeStamp));
var allow = packet.ReadBit("Allow");
var size = packet.ReadInt32("Size");
var data = packet.ReadBytes(size);
var db2File = new Packet(data, packet.Opcode, packet.Time, packet.Direction, packet.Number, packet.Writer,
packet.FileName);
if (entry < 0 || !allow)
{
packet.WriteLine("Row {0} has been removed.", -entry);
HotfixStoreMgr.RemoveRecord(type, entry);
Storage.AddHotfixData(entry, type, true, timeStamp);
}
else
{
packet.AddSniffData(StoreNameType.None, entry, type.ToString());
HotfixStoreMgr.AddRecord(type, entry, db2File);
Storage.AddHotfixData(entry, type, false, timeStamp);
db2File.ClosePacket(false);
}
}
示例8: HandleGuildFinderPostUpdated
public static void HandleGuildFinderPostUpdated(Packet packet)
{
var b = packet.ReadBit("Unk Bit"); // Can set settings ?
if (b != 0)
{
var length = packet.ReadBits(11);
packet.ReadBit("Listed");
// Flush bits
packet.ReadUInt32E<GuildFinderOptionsLevel>("Level");
packet.ReadWoWString("Comment", length);
packet.ReadInt32("Unk Int32");
packet.ReadUInt32E<GuildFinderOptionsAvailability>("Availability");
packet.ReadUInt32E<GuildFinderOptionsRoles>("Class Roles");
packet.ReadUInt32E<GuildFinderOptionsInterest>("Guild Interests");
}
}
示例9: HandleHotfixNotify
public static void HandleHotfixNotify(Packet packet)
{
var tableHash = packet.ReadUInt32E<DB2Hash>("TableHash");
var recordID = packet.ReadInt32("RecordID");
var timeStamp = packet.ReadUInt32();
packet.AddValue("Timestamp", Utilities.GetDateTimeFromUnixTime(timeStamp));
Storage.AddHotfixData(recordID, tableHash, false, timeStamp);
}
示例10: HandleInitializeFactions
public static void HandleInitializeFactions(Packet packet)
{
var count = packet.ReadInt32("Count");
for (var i = 0; i < count; i++)
{
packet.ReadByteE<FactionFlag>("Faction Flags", i);
packet.ReadUInt32E<ReputationRank>("Faction Standing", i);
}
}
示例11: HandleAuctionCommandResult
public static void HandleAuctionCommandResult(Packet packet)
{
var unk32 = !packet.ReadBit("!unk32"); // 32
var unk16 = !packet.ReadBit("!unk16"); // 16
var unk24 = !packet.ReadBit("!unk24"); // 24
var guid = packet.StartBitStream(1, 4, 0, 6, 3, 5, 2, 7);
packet.ParseBitStream(guid, 3, 0, 7, 1, 4, 6, 5, 2);
if (unk16)
packet.ReadInt64("unk16"); // 16
var error = packet.ReadUInt32E<AuctionHouseError>("Error"); // 44
var action = packet.ReadUInt32E<AuctionHouseAction>("Action"); // 48
packet.ReadUInt32("Auction ID"); // 52
if (unk32)
packet.ReadInt64("unk32"); // 32
packet.ReadInt32("unk40"); // 40 =40 if bag
packet.WriteGuid("Guid", guid);
}
示例12: HandleGameObjectQueryResponse
public static void HandleGameObjectQueryResponse(Packet packet)
{
var entry = packet.ReadEntry("Entry");
if (entry.Value) // entry is masked
return;
GameObjectTemplate gameObject = new GameObjectTemplate
{
Entry = (uint)entry.Key
};
int unk1 = packet.ReadInt32("Unk1 UInt32");
if (unk1 == 0)
{
packet.ReadByte("Unk1 Byte");
return;
}
gameObject.Type = packet.ReadInt32E<GameObjectType>("Type");
gameObject.DisplayID = packet.ReadUInt32("Display ID");
var name = new string[4];
for (int i = 0; i < 4; i++)
name[i] = packet.ReadCString("Name", i);
gameObject.Name = name[0];
gameObject.IconName = packet.ReadCString("Icon Name");
gameObject.CastCaption = packet.ReadCString("Cast Caption");
gameObject.UnkString = packet.ReadCString("Unk String");
gameObject.Data = new int?[32];
for (int i = 0; i < gameObject.Data.Length; i++)
gameObject.Data[i] = packet.ReadInt32("Data", i);
gameObject.Size = packet.ReadSingle("Size");
gameObject.QuestItems = new uint?[packet.ReadByte("QuestItems Length")];
for (int i = 0; i < gameObject.QuestItems.Length; i++)
gameObject.QuestItems[i] = (uint)packet.ReadInt32<ItemId>("Quest Item", i);
packet.ReadUInt32E<ClientType>("Expansion");
packet.ReadByte("Unk1 Byte");
Storage.GameObjectTemplates.Add(gameObject, packet.TimeSpan);
ObjectName objectName = new ObjectName
{
ObjectType = ObjectType.GameObject,
ID = entry.Key,
Name = gameObject.Name
};
Storage.ObjectNames.Add(objectName, packet.TimeSpan);
}
示例13: HandleInitializeFactions
public static void HandleInitializeFactions(Packet packet)
{
for (var i = 0; i < 0x100; i++)
{
packet.ReadByteE<FactionFlag>("FactionFlags", i);
packet.ReadUInt32E<ReputationRank>("FactionStandings", i);
}
for (var i = 0; i < 0x100; i++)
packet.ReadBit("FactionHasBonus", i);
}
示例14: HandleHotfixNotifyBlob
public static void HandleHotfixNotifyBlob(Packet packet)
{
var count = packet.ReadUInt32("HotfixCount");
for (var i = 0; i < count; ++i)
{
var tableHash = packet.ReadUInt32E<DB2Hash>("TableHash", i);
var recordID = packet.ReadInt32("RecordID", i);
var timestamp = packet.ReadUInt32("Timestamp", i);
Storage.AddHotfixData(recordID, tableHash, false, timestamp);
}
}
示例15: HandleInitializeFactions
public static void HandleInitializeFactions(Packet packet)
{
for (var i = 0; i < 256; i++)
{
packet.ReadUInt32E<ReputationRank>("Faction Standing", i);
packet.ReadByteE<FactionFlag>("Faction Flags", i);
}
for (var i = 0; i < 256; i++)
{
var bit1296 = packet.ReadBit("Count");
}
}