2022-11-14 12:15:32 +03:00
|
|
|
using System;
|
2022-12-17 11:55:01 +03:00
|
|
|
using Syntriax.Modules.ToggleState;
|
2022-11-14 12:15:32 +03:00
|
|
|
|
|
|
|
namespace Syntriax.Modules.Trigger
|
|
|
|
{
|
|
|
|
public interface ITrigger
|
|
|
|
{
|
2022-12-17 11:55:01 +03:00
|
|
|
/// <summary>
|
|
|
|
/// Member <see cref="IToggleState"/> to switch on or off
|
|
|
|
/// </summary>
|
|
|
|
IToggleState ToggleStateMember { get; }
|
|
|
|
|
2022-11-14 14:28:00 +03:00
|
|
|
/// <summary>
|
|
|
|
/// Called everytime the IsTrigerred field is changed
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The new value of IsTrigerred</value>
|
2022-12-17 11:55:01 +03:00
|
|
|
Action<bool> OnTriggerStateChanged { get; set; }
|
2022-12-17 14:39:54 +03:00
|
|
|
|
2022-11-14 14:28:00 +03:00
|
|
|
bool IsTrigerred { get; }
|
2022-11-14 12:15:32 +03:00
|
|
|
}
|
|
|
|
}
|