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
2022-07-08 23:52:10 -05:00

26 lines
714 B
C#

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,
IOperation operation)
{
return operation.Run(input);
}
}