本文整理汇总了C#中WowPacketParser.Misc.Packet.ReadString方法的典型用法代码示例。如果您正苦于以下问题:C# Packet.ReadString方法的具体用法?C# Packet.ReadString怎么用?C# Packet.ReadString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WowPacketParser.Misc.Packet
的用法示例。
在下文中一共展示了Packet.ReadString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadMovementUpdateBlock
//.........这里部分代码省略.........
packet.ReadInt32();
}
packet.ReadXORByte(guid1, 4);
packet.ReadSingle("Swim Back Speed", index);
moveInfo.Position.Z = packet.ReadSingle();
packet.ReadXORByte(guid1, 3);
}
if (isSceneObject)
{
// need update
}
if (hasGameObjectPosition)
{
packet.ReadSByte("GO Transport Seat", index);
if (hasGOTransportTime2)
packet.ReadUInt32("GO Transport Time 2", index);
packet.ParseBitStream(goTransportGuid, 4, 3);
if (hasGOTransportTime2)
packet.ReadUInt32("GO Transport Time 3", index);
packet.ParseBitStream(goTransportGuid, 7, 6, 5, 0);
moveInfo.TransportOffset.Z = packet.ReadSingle();
moveInfo.TransportOffset.X = packet.ReadSingle();
packet.ReadUInt32("GO Transport Time", index);
moveInfo.TransportOffset.O = packet.ReadSingle();
packet.ReadXORByte(goTransportGuid, 1);
moveInfo.TransportOffset.Y = packet.ReadSingle();
packet.ReadXORByte(goTransportGuid, 2);
moveInfo.TransportGuid = new Guid(BitConverter.ToUInt64(goTransportGuid, 0));
packet.WriteLine("[{0}] GO Transport GUID {1}", index, moveInfo.TransportGuid);
packet.WriteLine("[{0}] GO Transport Position: {1}", index, moveInfo.TransportOffset);
}
if (hasVehicleData)
{
// need update
}
if (hasAttackingTarget)
{
packet.ParseBitStream(attackingTargetGuid, 1, 3, 5, 4, 7, 6, 2, 0);
packet.WriteGuid("Attacking GUID", attackingTargetGuid, index);
}
if (hasGameObjectRotation)
{
packet.ReadPackedQuaternion("GameObject Rotation", index);
}
if (hasAnimKits)
{
// need update
}
if (hasStationaryPosition)
{
moveInfo.Position.X = packet.ReadSingle();
moveInfo.Position.Z = packet.ReadSingle();
moveInfo.Position.Y = packet.ReadSingle();
moveInfo.Orientation = packet.ReadSingle("Stationary Orientation", index);
packet.WriteLine("[{0}] Stationary Position: {1}", index, moveInfo.Position);
}
if (transport)
{
// need update
}
if (living && moveInfo.HasSplineData && hasFullSpline && splineType == SplineType.FacingTarget)
{
var facingTargetGuid = new byte[8];
facingTargetGuid = packet.StartBitStream(5, 0, 2, 4, 1, 3, 6, 7);
packet.ParseBitStream(facingTargetGuid, 5, 0, 4, 6, 3, 2, 1, 7);
packet.WriteGuid("Facing Target GUID", facingTargetGuid, index);
}
if (byte32A)
packet.ReadString();
if (byte414)
packet.ReadInt32();
if (byte2A4)
packet.ReadInt32();
if (byte428)
{
for (uint l_I = 0; l_I < dword418; l_I++)
packet.ReadInt32();
}
return moveInfo;
}