rj-action-library/Runtime/Presets/Features/FeatureModuleList.cs

34 lines
531 B
C#

using Godot;
using System.Threading.Tasks;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class FeatureModuleList: FeatureModule
{
[Export]
public FeatureModule[] features = [];
public override async Task ProcessPass( PresetContext context )
{
if ( features == null )
{
return;
}
foreach ( var f in features )
{
if ( f == null )
{
continue;
}
await f.ProcessPass( context );
}
return;
}
}
}