2021-09-07 16:19:55 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Cal.DataTable
|
|
|
|
|
{
|
2021-09-07 16:20:46 +08:00
|
|
|
|
public partial class JourneyOfDeathCopyConfigCategory
|
2021-09-07 16:19:55 +08:00
|
|
|
|
{
|
2021-09-07 16:20:46 +08:00
|
|
|
|
private Dictionary<(byte, byte), long> dic = new Dictionary<(byte, byte), long>();
|
2021-09-07 16:19:55 +08:00
|
|
|
|
|
2021-09-07 16:20:46 +08:00
|
|
|
|
public JourneyOfDeathCopyConfig GetByTypeAndDifficultyAndIndex(byte difficulty, byte index)
|
2021-09-07 16:19:55 +08:00
|
|
|
|
{
|
2021-09-07 16:20:46 +08:00
|
|
|
|
if (this.dic.TryGetValue((difficulty, index), out long id))
|
2021-09-07 16:19:55 +08:00
|
|
|
|
{
|
|
|
|
|
return Get(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
public override void EndInit()
|
|
|
|
|
{
|
|
|
|
|
base.EndInit();
|
|
|
|
|
foreach (var kv in this.dict)
|
|
|
|
|
{
|
2021-09-07 16:20:46 +08:00
|
|
|
|
dic.Add(( kv.Value.Difficulty, kv.Value.BossIndex), kv.Key);
|
2021-09-07 16:19:55 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|