Files
MinFt/Client/Assets/Scripts/TablesEx/FishingEventEx.cs
2026-04-27 12:07:32 +08:00

63 lines
2.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Linq;
// [REMOVED] Activity.Condition module no longer exists
// using Activity.Condition;
namespace cfg
{
public partial class FishingEvent
{
// [REMOVED] IConditionChecker type no longer exists
// private List<IConditionChecker> _conditionCheckers;
// private Dictionary<Type, List<IConditionChecker>> _checkersByDataType;
// /// <summary>
// /// 获取所有条件检查器
// /// </summary>
// public List<IConditionChecker> GetConditionCheckers()
// {
// if (_conditionCheckers != null) return _conditionCheckers;
// _conditionCheckers=new List<IConditionChecker>();
// _conditionCheckers.AddRange(ConditionCheckerFactory.GetAllCommonCheckers());
// _conditionCheckers.AddRange(ConditionList.Select(condition =>
// ConditionCheckerFactory.CreateCheckerByConditionType(condition.Condition))
// .Where(checker => checker != null));
// _conditionCheckers.Sort((x, y)=>x.Priority.CompareTo(y.Priority));
// return _conditionCheckers;
// }
// /// <summary>
// /// 获取关心指定数据类型的检查器(按数据类型预先索引)
// /// </summary>
// public List<IConditionChecker> GetCheckersForDataType(Type dataType)
// {
// EnsureCheckersIndexed();
// return _checkersByDataType.GetValueOrDefault(dataType);
// }
// /// <summary>
// /// 确保检查器已按数据类型索引
// /// </summary>
// private void EnsureCheckersIndexed()
// {
// if (_checkersByDataType != null) return;
//
// _checkersByDataType = new Dictionary<Type, List<IConditionChecker>>();
//
// foreach (var checker in GetConditionCheckers())
// {
// // 某些检查器如时间、ABTest不会关心任何数据类型CareDataChangeWithType 可能为 null
// if (checker.CareDataChangeWithType == null) continue;
//
// foreach (var dataType in checker.CareDataChangeWithType)
// {
// if (!_checkersByDataType.ContainsKey(dataType))
// _checkersByDataType[dataType] = new List<IConditionChecker>();
//
// _checkersByDataType[dataType].Add(checker);
// }
// }
// }
}
}