本文整理匯總了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);
}