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); } } } }