using System.Collections.Generic; namespace Cal.DataTable { public partial class JourneyOfDeathCopyConfigCategory { private Dictionary<(byte, byte), long> dic = new Dictionary<(byte, byte), long>(); public JourneyOfDeathCopyConfig GetByTypeAndDifficultyAndIndex(byte difficulty, byte index) { if (this.dic.TryGetValue((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.Difficulty, kv.Value.BossIndex), kv.Key); } } } }