This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
mfgames-nitride-cil/src/Nitride/NitrideOperationExtensions.cs

26 lines
798 B
C#
Raw Normal View History

2021-09-07 05:15:45 +00:00
using System.Collections.Generic;
using Gallium;
namespace Nitride
{
/// <summary>
/// Extension methods to run a Nitride operation inline with code.
/// </summary>
public static class NitrideOperationExtensions
{
/// <summary>
/// Runs the given configured operation against the input and returns
/// the results.
/// </summary>
/// <param name="input">The entities to perform the operation against.</param>
/// <param name="operation">The operation to run.</param>
/// <returns>The results of the operation.</returns>
public static IEnumerable<Entity> Run(
this IEnumerable<Entity> input,
INitrideOperation operation)
{
return operation.Run(input);
}
}
}