Exemplo n.º 1
0
        Dictionary <DAZSkinWrapSwitcher, List <string> > GetWrapProgression()
        {
            JSONStorable         geometryStorable = atom.GetStorableByID("geometry");
            DAZCharacterSelector geometry         = geometryStorable as DAZCharacterSelector;
            Dictionary <DAZSkinWrapSwitcher, List <string> > wrapToProgressList = new Dictionary <DAZSkinWrapSwitcher, List <string> >();

            atom.GetStorableIDs().ForEach((s) =>
            {
                JSONStorable store = atom.GetStorableByID(s);
                store.GetComponents <DAZSkinWrap>().ToList().ForEach((wrap) =>
                {
                    DAZSkinWrapSwitcher switcher = store.GetComponent <DAZSkinWrapSwitcher>();
                    if (switcher == null)
                    {
                        return;
                    }

                    if (wrap.enabled == false)
                    {
                        return;
                    }

                    if (s.Contains("Style") == false)
                    {
                        return;
                    }

                    if (wrapToProgressList.ContainsKey(switcher) == false)
                    {
                        wrapToProgressList[switcher] = new List <string>();
                    }

                    wrapToProgressList[switcher].Add(wrap.wrapName);
                });
            });

            return(wrapToProgressList);
        }