Trigger/Runtime/ITrigger.cs

22 lines
572 B
C#
Raw Normal View History

2022-11-14 12:15:32 +03:00
using System;
2023-03-20 22:22:42 +03:00
using Syntriax.Modules.State;
2022-11-14 12:15:32 +03:00
namespace Syntriax.Modules.Trigger
{
public interface ITrigger
{
/// <summary>
/// <see cref="IStateEnable"/> to control the state of the <see cref="ITrigger"/> is on or off
/// </summary>
2023-03-20 22:22:42 +03:00
IStateEnable StateEnable { 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
}
}