Syntriax.Engine/Engine.Core/Abstract/Assignable/IAssignableStateEnable.cs

27 lines
1001 B
C#
Raw Normal View History

2023-11-23 22:07:49 +03:00
namespace Syntriax.Engine.Core.Abstract;
/// <summary>
/// Indicates the object is an <see cref="IAssignable"/> with an assignable <see cref="IStateEnable"/> field.
/// </summary>
public interface IAssignableStateEnable : IAssignable
{
/// <summary>
2024-02-01 12:06:31 +03:00
/// Event triggered when the <see cref="IStateEnable"/> value has has been assigned a new value.
2023-11-23 22:07:49 +03:00
/// </summary>
event OnStateEnableAssignedEventHandler? OnStateEnableAssigned;
2023-11-23 22:07:49 +03:00
/// <inheritdoc cref="IStateEnable" />
IStateEnable StateEnable { get; }
/// <summary>
2024-02-01 12:06:31 +03:00
/// Assign a value to the <see cref="IStateEnable"/> field of this object.
2023-11-23 22:07:49 +03:00
/// </summary>
/// <param name="stateEnable">New <see cref="IStateEnable"/> to assign.</param>
/// <returns>
/// <see cref="true"/>, if the value given assigned successfully assigned, <see cref="false"/> if not.
/// </returns>
bool Assign(IStateEnable stateEnable);
2024-07-15 01:13:39 +03:00
delegate void OnStateEnableAssignedEventHandler(IAssignableStateEnable sender);
2023-11-23 22:07:49 +03:00
}