Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@

namespace Fallout.Common.Execution;

public interface IBuildExtension
{
float Priority { get; }
}

[AttributeUsage(AttributeTargets.Class)]
public abstract class BuildExtensionAttributeBase : Attribute, IBuildExtension
{
Expand Down Expand Up @@ -52,8 +47,3 @@ public interface IOnTargetFailed : IBuildExtension
{
void OnTargetFailed(ExecutableTarget target);
}

public interface IOnBuildFinished : IBuildExtension
{
void OnBuildFinished();
}
18 changes: 18 additions & 0 deletions src/Fallout.Core/Execution/IBuildExtension.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace Fallout.Common.Execution;

/// <summary>
/// Root marker for a build extension — the stable seam the plugin SDK builds lifecycle
/// listeners on. Higher <see cref="Priority"/> runs earlier.
/// </summary>
public interface IBuildExtension
{
float Priority { get; }
}

/// <summary>
/// Build extension invoked once the build has finished (whatever the outcome).
/// </summary>
public interface IOnBuildFinished : IBuildExtension
{
void OnBuildFinished();
}