| 123456789101112131415161718192021222324252627282930 |
- using System.Collections.Generic;
- using System.Linq;
- using ET;
- namespace cfg.GfgCfg
- {
- public partial class SuitCfg
- {
- private Dictionary<int, List<int>> _suitCfgPartsDic = new Dictionary<int, List<int>>();
- public List<int> Parts
- {
- get
- {
- _suitCfgPartsDic.TryGetValue(Id, out var outList);
- if (outList == null || outList.Count == 0)
- {
- var list = CommonDataManager.Tables.TblItemCfg.DataList
- .Where(a => a.ItemType == ConstItemType.DRESS_UP && a.SuitId == Id).ToList();
- outList = list != null ? list.Select(a => a.Id).ToList() : new List<int>();
- _suitCfgPartsDic[Id] = outList;
- }
- return outList;
- }
- }
- }
- }
|