Files
ft/Client/Assets/Scripts/UI/PartnerGather/IAutoMatchManagerContext.cs
2026-06-29 21:18:33 +08:00

21 lines
664 B
C#

using System.Threading.Tasks;
using EventPartnerGatherRequests;
namespace EventPartnerGather
{
/// <summary>
/// AutoMatchController 依赖的最小管理器能力。
/// </summary>
public interface IAutoMatchManagerContext
{
int EventId { get; }
bool ShouldCloseAutoMatch { get; }
bool IsAutoMatchEnabled { get; }
void SetAutoMatchEnabled(bool enabled);
Task<AutoMatchStatusResponse> FetchAndProcessAutoMatchStatus(bool force = true);
Task<AutoMatchToggleResponse> ControlAutoMatch(bool enable);
void NotifyAutoMatchStopped();
void NotifyAutoMatchFailed(string reason);
}
}