Skip to content

Commit

Permalink
Bad documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
louis1706 committed Sep 8, 2023
1 parent 12b430b commit 97e7523
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Exiled.API/Extensions/CommonExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ public static class CommonExtensions
/// <returns>Returns a random value from <see cref="IEnumerable{T}"/>.</returns>
public static T GetRandomValue<T>(this IEnumerable<T> enumerable, System.Func<T, bool> condition) => enumerable is null || enumerable.Count() == 0 ? default : enumerable.Where(condition).GetRandomValue();

/// <summary>
/// Will modify the curve with the amount used.
/// </summary>
/// <param name="curve">The AnimationCurve to mofify.</param>
/// <param name="amount">The multiplier number.</param>
/// <returns>The new modfied curve.</returns>
public static AnimationCurve Multiply(this AnimationCurve curve, float amount)
{
for (var i = 0; i < curve.length; i++)
Expand All @@ -42,6 +48,12 @@ public static AnimationCurve Multiply(this AnimationCurve curve, float amount)
return curve;
}

/// <summary>
/// Will modify the curve with the amount used.
/// </summary>
/// <param name="curve">The AnimationCurve to mofify.</param>
/// <param name="amount">The add number.</param>
/// <returns>The new modfied curve.</returns>
public static AnimationCurve Add(this AnimationCurve curve, float amount)
{
for (var i = 0; i < curve.length; i++)
Expand Down

0 comments on commit 97e7523

Please sign in to comment.