17 lines
No EOL
519 B
C#
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();
|
|
}
|
|
} |