/// <summary>Reads a world transform value.</summary> /// <param name="packet">The packet.</param> /// <param name="data">The read value.</param> /// <returns>This packet, for call chaining.</returns> /// <exception cref="PacketException">The packet has not enough available data for the read operation.</exception> public static IReadablePacket Read(this IReadablePacket packet, out WorldTransform data) { data = packet.ReadWorldTransform(); return(packet); }
/// <summary>Writes the specified world transform value.</summary> /// <param name="packet">The packet.</param> /// <param name="data">The value to write.</param> /// <returns>This packet, for call chaining.</returns> public static IWritablePacket Write(this IWritablePacket packet, WorldTransform data) { return(packet.Write(data.Translation).Write(data.Rotation)); }