Playvoi/Assets/ShiroginSDK/Runtime/Services/Interfaces/IEventService.cs
2025-10-30 22:48:16 +03:00

17 lines
No EOL
519 B
C#

using System;
namespace ShiroginSDK.Runtime.Services.Interfaces
{
/// <summary>
/// Unified interface for ShiroginSDK's event system.
/// Allows subscription, unsubscription, and queued event invocation.
/// </summary>
public interface IEventService
{
void Initialize();
void Subscribe<T>(Action<T> callback) where T : class;
void Unsubscribe<T>(Action<T> callback) where T : class;
void Invoke<T>(T evt) where T : class;
void ClearAll();
}
}