Ejemplo n.º 1
0
 public ColorStore(SavedOutfit outfit)
 {
     if (outfit != null)
     {
         mHairPreset     = outfit.GetPreset(BodyTypes.Hair);
         mBeardPreset    = outfit.GetPreset(BodyTypes.Beard);
         mEyebrowsPreset = outfit.GetPreset(BodyTypes.Eyebrows);
         mBodyHairPreset = outfit.GetPreset(BodyTypes.BodyHairUpperChest);
     }
 }
Ejemplo n.º 2
0
            public bool Apply(SimBuilder builder, CASParts.Key key, bool applyHairColor, IEnumerable <BodyTypes> types, IEnumerable <BodyTypes> notTypes)
            {
                SavedOutfit outfit = Load(key);

                if (outfit == null)
                {
                    return(false);
                }

                outfit.Apply(builder, applyHairColor, types, notTypes);
                return(true);
            }
Ejemplo n.º 3
0
            public bool ApplyColors(SimDescriptionCore sim, CASParts.Key key)
            {
                SavedOutfit outfit = Load(key);

                if (outfit == null)
                {
                    return(false);
                }

                outfit.mStore.Apply(sim);
                return(true);
            }
Ejemplo n.º 4
0
            public SavedOutfit Store(CASParts.Key key, SavedOutfit outfit)
            {
                Dictionary <int, SavedOutfit> indices;

                if (!mOutfits.TryGetValue(key.mCategory, out indices))
                {
                    indices = new Dictionary <int, SavedOutfit>();
                    mOutfits.Add(key.mCategory, indices);
                }

                indices[key.GetIndex()] = outfit;
                return(outfit);
            }
Ejemplo n.º 5
0
            public SavedOutfit Replace(CASParts.Key key, SimBuilder builder, bool applyHairColor)
            {
                if (!applyHairColor)
                {
                    SavedOutfit oldOutfit = Load(key);
                    if (oldOutfit != null)
                    {
                        oldOutfit.mStore.Apply(builder);
                    }
                }

                return(Store(key, new SavedOutfit(builder)));
            }
Ejemplo n.º 6
0
 public ColorStore(SavedOutfit outfit)
 {
     if (outfit != null)
     {
         mHairPreset = outfit.GetPreset(BodyTypes.Hair);
         mBeardPreset = outfit.GetPreset(BodyTypes.Beard);
         mEyebrowsPreset = outfit.GetPreset(BodyTypes.Eyebrows);
         mBodyHairPreset = outfit.GetPreset(BodyTypes.BodyHairUpperChest);
     }
 }
Ejemplo n.º 7
0
 public Key(CASParts.Key key, SavedOutfit outfit)
 {
     mKey = key;
     mOutfit = outfit;
 }
Ejemplo n.º 8
0
            public SavedOutfit Store(CASParts.Key key, SavedOutfit outfit)
            {
                Dictionary<int, SavedOutfit> indices;
                if (!mOutfits.TryGetValue(key.mCategory, out indices))
                {
                    indices = new Dictionary<int, SavedOutfit>();
                    mOutfits.Add(key.mCategory, indices);
                }

                indices[key.GetIndex()] = outfit;
                return outfit;
            }
Ejemplo n.º 9
0
 public Key(CASParts.Key key, SavedOutfit outfit)
 {
     mKey    = key;
     mOutfit = outfit;
 }