/// <summary>Reads a world transform value.</summary> /// <param name="packet">The packet.</param> /// <returns>The read value.</returns> /// <exception cref="PacketException">The packet has not enough available data for the read operation.</exception> public static WorldTransform ReadWorldTransform(this IReadablePacket packet) { WorldTransform result; #if FARMATH result.Translation = packet.ReadFarPosition(); #else result.Translation = packet.ReadVector2(); #endif result.Rotation = packet.ReadRotation(); return(result); }