zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Model/Generate/Data/Partial/StarSoulCopyConfigCategory....

27 lines
770 B
C#

using System.Collections.Generic;
namespace Cal.DataTable
{
public partial class StarSoulCopyConfigCategory
{
private Dictionary<(byte, byte, byte), long> dic = new Dictionary<(byte, byte, byte), long>();
public StarSoulCopyConfig GetByTypeAndDifficultyAndIndex(byte type, byte difficulty, byte index)
{
if (this.dic.TryGetValue((type, difficulty, index), out long id))
{
return Get(id);
}
return null;
}
public override void EndInit()
{
base.EndInit();
foreach (var kv in this.dict)
{
dic.Add((kv.Value.Type, kv.Value.Difficulty, kv.Value.BossIndex), kv.Key);
}
}
}
}