Factory/IFactory.cs

27 lines
627 B
C#
Raw Normal View History

2022-11-21 21:51:23 +03:00
using System;
2022-11-21 13:33:46 +03:00
namespace Syntriax.Modules.Factory
{
public interface IFactory
{
2022-11-21 21:51:23 +03:00
/// <summary>
/// If the <see cref="IFactory"/> is initialized
/// </summary>
bool IsInitialized { get; }
2022-11-21 13:48:58 +03:00
/// <summary>
/// Initializes the <see cref="IFactory"/>
/// </summary>
2022-11-21 21:51:23 +03:00
void Initialize();
2022-11-21 13:48:58 +03:00
/// <summary>
/// Resets the <see cref="IFactory"/>
/// </summary>
2022-11-21 21:51:23 +03:00
void Reset();
Action<IFactory> OnInitialized { get; set; }
Action<IFactory> OnReset { get; set; }
Action<IFactory> OnStateChanged { get; set; }
2022-11-21 13:33:46 +03:00
}
}