You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
772 B
36 lines
772 B
1 month ago
|
using System.Collections.Generic;
|
||
|
using Sog;
|
||
|
|
||
|
|
||
|
public partial class ActivityDesc
|
||
|
{
|
||
|
}
|
||
|
|
||
|
|
||
|
public partial class ActivityDescMgr
|
||
|
{
|
||
|
private Dictionary<ActivityType, List<ActivityDesc>> typeGroups = new();
|
||
|
|
||
|
|
||
|
public List<ActivityDesc> 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<ActivityDesc>() { kv.Value };
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 限时活动副本
|