using System.Collections.Generic; using Sog; public partial class ActivityDesc { } public partial class ActivityDescMgr { private Dictionary> typeGroups = new(); public List GetActivityDescByType(ActivityType type) { return typeGroups.TryGetValue(type, out var group) ? group : null; } public override void ReadComplete() { foreach (var kv in ItemTable) { if (typeGroups.TryGetValue(kv.Value.type, out var group)) { group.Add(kv.Value); } else { typeGroups[kv.Value.type] = new List() { kv.Value }; } } } } // 限时活动副本