Files
ft/Client/Assets/Scripts/Activity/Condition/IConditionChecker.cs
2026-06-29 21:18:33 +08:00

31 lines
903 B
C#

using System;
using System.Collections.Generic;
using cfg;
namespace Activity.Condition
{
/// <summary>
/// 条件检查器基接口 - 配置驱动
/// </summary>
public interface IConditionChecker
{
/// <summary>
/// 检查是否满足开启条件
/// </summary>
bool CanOpen(FishingEvent fishingEvent);
/// <summary>
/// 优先级(数字越小越先检查)
/// </summary>
int Priority { get; }
List<Type> CareDataChangeWithType { get; }
/// <summary>
/// 条件满足后是否需要继续监听
/// - false: 单向条件,一旦满足永远满足(如等级、钓鱼次数),无需重复检查
/// - true: 条件可能变化或过期(如时间条件),需要持续监听
/// </summary>
bool NeedContinueListenAfterSatisfied { get; }
}
}