using System.Runtime.CompilerServices;
namespace Torch.API.Event
{
///
/// Manager class responsible for registration of event handlers.
///
public interface IEventManager
{
///
/// Registers all event handler methods contained in the given instance
///
/// Instance to register
/// true if added, false otherwise
[MethodImpl(MethodImplOptions.NoInlining)]
bool RegisterHandler(IEventHandler handler);
///
/// Unregisters all event handler methods contained in the given instance
///
/// Instance to unregister
/// true if removed, false otherwise
[MethodImpl(MethodImplOptions.NoInlining)]
bool UnregisterHandler(IEventHandler handler);
}
}