Trigger/Runtime/ITrigger.cs

22 lines
547 B
C#
Raw Normal View History

2022-11-14 12:15:32 +03:00
using System;
using Syntriax.Modules.ToggleState;
2022-11-14 12:15:32 +03:00
namespace Syntriax.Modules.Trigger
{
public interface ITrigger
{
/// <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>
Action<bool> OnTriggerStateChanged { get; set; }
2022-11-14 14:28:00 +03:00
bool IsTrigerred { get; }
2022-11-14 12:15:32 +03:00
}
}