public void SetDressItemsActiveByCoverLayer(CocoDressCoverLayer coverLayer, bool active) { List <CocoDressItemModelSet> modelSets = GetAllDressItems(); modelSets.ForEach(modelSet => { if ((modelSet.ItemHolder.CoverLayer & coverLayer) != 0) { modelSet.IsActive = active; } }); }
public List <CocoDressItemModelSet> GetDressItemsByCoverLayer(CocoDressCoverLayer coverLayer) { List <CocoDressItemModelSet> allModelSets = GetAllDressItems(); List <CocoDressItemModelSet> modelSets = new List <CocoDressItemModelSet> (allModelSets.Count); allModelSets.ForEach(modelSet => { if ((modelSet.ItemHolder.CoverLayer & coverLayer) != 0) { modelSets.Add(modelSet); } }); return(modelSets); }