25 lines
652 B
C#
25 lines
652 B
C#
|
using System;
|
||
|
using Syntriax.Modules.ToggleState;
|
||
|
|
||
|
namespace Syntriax.Modules.Action
|
||
|
{
|
||
|
public interface IAction
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// The <see cref="IToggleState"/> the Action uses to check if it's active or not
|
||
|
/// </summary>
|
||
|
IToggleState ToggleState { get; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Called when the <see cref="IAction"/> is Activated
|
||
|
/// </summary>
|
||
|
/// <value>The <see cref="IAction"/> that Activated</value>
|
||
|
Action<IAction> OnActivated { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Triggers the <see cref="IAction"/>
|
||
|
/// </summary>
|
||
|
void Activate();
|
||
|
}
|
||
|
}
|