Skip to content

Commit

Permalink
Updated SpeckleReceiver.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-Morgan committed Sep 26, 2023
1 parent 6aa92d4 commit 8df96ee
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,13 @@ public bool Cancel()
return true;
}

/// <summary>
/// Receive the selected <see cref="Commit"/> object, and converts ToNative as children of <paramref name="parent"/>
/// This function is designed to be run as a coroutine
/// </summary>
/// <example><c>
/// StartCoroutine(mySpeckleReceiver.ReceiveAndConvert_Routine(null);
/// </c></example
/// <param name="parent">Optional parent <see cref="Transform"/> for the created root <see cref="GameObject"/>s</param>
/// <param name="predicate">A filter function to allow for selectively excluding certain objects from being converted</param>
/// <remarks>function does not throw, instead calls <see cref="OnErrorAction"/>, and calls <see cref="OnComplete"/> upon completion</remarks>
/// <seealso cref="ReceiveAsync(System.Threading.CancellationToken)"/>
/// <seealso cref="RecursiveConverter.RecursivelyConvertToNative_Enumerable"/>
/// <inheritdoc cref="ReceiveAndConvert_Async"/>
/// <example>
/// This function is designed to run as a coroutine i.e.
/// <c>StartCoroutine(mySpeckleReceiver.ReceiveAndConvert_Routine());</c>
/// </example>
public IEnumerator ReceiveAndConvert_Routine(
Transform? parent,
Transform? parent = null,
Predicate<TraversalContext>? predicate = null
)
{
Expand Down Expand Up @@ -134,9 +127,16 @@ public IEnumerator ReceiveAndConvert_Routine(
FinishOperation();
}

/// <inheritdoc cref="ReceiveAndConvert_Routine"/>
/// <summary>
/// Receive the selected <see cref="Commit"/> object, and converts ToNative as children of <paramref name="parent"/>
/// </summary>
/// <param name="parent">Optional parent <see cref="Transform"/> for the created root <see cref="GameObject"/>s</param>
/// <param name="predicate">A filter function to allow for selectively excluding certain objects from being converted</param>
/// <remarks>function does not throw, instead calls <see cref="OnErrorAction"/>, and calls <see cref="OnComplete"/> upon completion</remarks>
/// <seealso cref="ReceiveAsync(System.Threading.CancellationToken)"/>
/// <seealso cref="RecursiveConverter.RecursivelyConvertToNative_Enumerable"/>
public async void ReceiveAndConvert_Async(
Transform? parent,
Transform? parent = null,
Predicate<TraversalContext>? predicate = null
)
{
Expand Down

0 comments on commit 8df96ee

Please sign in to comment.