-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
883960d
commit e8bc8bd
Showing
6 changed files
with
85 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Uncreated.Warfare.Layouts.Phases; | ||
|
||
namespace Uncreated.Warfare.Services; | ||
|
||
/// <summary> | ||
/// Allows a service to listen for a specific phase to start and/or end. | ||
/// </summary> | ||
/// <typeparam name="TPhaseType">The base type of the phase.</typeparam> | ||
public interface ILayoutPhaseListener<in TPhaseType> where TPhaseType : ILayoutPhase | ||
{ | ||
/// <summary> | ||
/// Runs after <see cref="ILayoutPhase.BeginPhaseAsync"/>. | ||
/// </summary> | ||
UniTask OnPhaseStarted(TPhaseType phase, CancellationToken token = default); | ||
|
||
/// <summary> | ||
/// Runs after <see cref="ILayoutPhase.EndPhaseAsync"/>. | ||
/// </summary> | ||
UniTask OnPhaseEnded(TPhaseType phase, CancellationToken token = default); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters