本文整理汇总了C#中WowPacketParser.Misc.Packet.ReadInt32Visible方法的典型用法代码示例。如果您正苦于以下问题:C# Packet.ReadInt32Visible方法的具体用法?C# Packet.ReadInt32Visible怎么用?C# Packet.ReadInt32Visible使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WowPacketParser.Misc.Packet
的用法示例。
在下文中一共展示了Packet.ReadInt32Visible方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleSUnk0364
public static void HandleSUnk0364(Packet packet)
{
var count = packet.ReadBits("Count", 22);
for (var i = 0; i < count; i++)
packet.ReadInt32Visible("Unk20", i);
}
示例2: HandleSUnk0170
public static void HandleSUnk0170(Packet packet)
{
var count = packet.ReadBits("Count", 19);
for (var i = 0; i < count; i++)
packet.ReadBitVisible("unk20", i);
for (var i = 0; i < count; i++)
{
packet.ReadInt32Visible("unk28", i);
packet.ReadInt32Visible("unk36", i);
packet.ReadInt32Visible("unk24", i);
packet.ReadInt32Visible("unk20", i);
packet.ReadInt32Visible("unk32", i);
}
}
示例3: HandleAuraUpdate
public static void HandleAuraUpdate(Packet packet)
{
var guid = new byte[8];
guid[7] = packet.ReadBit();
var unk40 = packet.ReadBit("unk40");
var count = packet.ReadBits("count", 24);
guid[6] = packet.ReadBit();
guid[1] = packet.ReadBit();
guid[3] = packet.ReadBit();
guid[0] = packet.ReadBit();
guid[4] = packet.ReadBit();
guid[2] = packet.ReadBit();
guid[5] = packet.ReadBit();
var guid2 = new byte[count][];
var unk164 = new byte[count];
var unk156 = new byte[count];
var unk336 = new uint[count];
var unk144 = new byte[count];
var unk400 = new uint[count];
var unk200 = new byte[count];
for (var i = 0 ; i < count; i++)
{
unk200[i] = packet.ReadBitVisible("unk200", i);
if (unk200[i] > 0)
{
unk336[i] = packet.ReadBits("unk336", 22, i);
unk144[i] = packet.ReadBitVisible("unk144", i);
if (unk144[i] > 0)
guid2[i] = packet.StartBitStream(3, 4, 6, 1, 5, 2, 0, 7);
unk400[i] = packet.ReadBits("unk400", 22, i);
unk164[i] = packet.ReadBitVisible("unk164", i);
unk156[i] = packet.ReadBitVisible("unk156", i);
}
}
for (var i = 0; i < count; i++)
{
if (unk200[i] > 0)
{
if (unk144[i] > 0)
{
packet.ParseBitStream(guid2[i], 3, 2, 1, 6, 4, 0, 5, 7);
packet.WriteGuid("Guid2", guid2[i], i);
}
packet.ReadByteVisible("unk124", i);
packet.ReadInt16("unk152", i);
packet.ReadInt32Visible("unk144", i);
if (unk156[i] > 0)
packet.ReadInt32("unk272", i);
if (unk164[i] > 0)
packet.ReadInt32("unk304", i);
for (var j = 0; j < unk400[i]; j++)
packet.ReadSingle("unk416", i, j);
packet.ReadByteVisible("unk134", i);
packet.ReadInt32Visible("unk176", i);
for (var j = 0; j < unk336[i]; j++)
packet.ReadSingle("unk352", i, j);
}
packet.ReadByte("unk112", i);
}
packet.ParseBitStream(guid, 2, 6, 7, 1, 3, 4, 0, 5);
packet.WriteGuid("Guid", guid);
}
示例4: HandleUnk0A8B
public static void HandleUnk0A8B(Packet packet)
{
var hasData = !packet.ReadBit("!hasData");
var count = packet.ReadBits("count", 24);
packet.ReadInt32("unk20");
packet.ReadByte("unk40");
if (hasData)
{
packet.ReadInt32Visible("unk16");
}
for (var i = 0; i < count; i++)
{
packet.ReadByteVisible("unkb28", i);
}
packet.ReadByte("unk41");
}
示例5: HandleClearQuestCompletedBits
public static void HandleClearQuestCompletedBits(Packet packet)
{
var count = packet.ReadBits("Count", 22);
for (var i = 0; i < count; i++)
packet.ReadInt32Visible("QuestID", i);
}