mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-08 06:08:20 -05:00
18 lines
823 B
C#
18 lines
823 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Data.Models;
|
|
|
|
namespace SharedLibraryCore.Interfaces;
|
|
|
|
public interface IInteractionRegistration
|
|
{
|
|
void RegisterScriptInteraction(string interactionName, string source, Delegate interactionRegistration);
|
|
void RegisterInteraction(string interactionName, Func<int?, Reference.Game?, CancellationToken, Task<IInteractionData>> interactionRegistration);
|
|
void UnregisterInteraction(string interactionName);
|
|
Task<IEnumerable<IInteractionData>> GetInteractions(int? clientId = null,
|
|
Reference.Game? game = null, CancellationToken token = default);
|
|
Task<string> ProcessInteraction(string interactionId, int? clientId = null, Reference.Game? game = null, CancellationToken token = default);
|
|
}
|