Ejemplo n.º 1
0
        /// <summary>
        /// Method to remove a specific key from KKATData.
        /// </summary>
        /// <param category>Category of key to be retrieved</param>
        internal void DeleteEntry(Category category, string key)
        {
            switch (category)
            {
            case Category.Hairstyle: HairstyleDict.Remove(key); break;

            case Category.Haircolor: HaircolorDict.Remove(key); break;

            case Category.Eyecolor: EyecolorDict.Remove(key); break;

            case Category.Eyeline: EyelineDict.Remove(key); break;

            case Category.Eyebrow: EyebrowDict.Remove(key); break;

            case Category.Face:
                FaceDict.Remove(key);
                FaceBonesDict.Remove(key);
                break;

            case Category.Skin:
                SkinFaceDict.Remove(key);
                SkinBodyDict.Remove(key);
                break;

            case Category.Body:
                BodyDict.Remove(key);
                BodyBonesDict.Remove(key);
                break;

            case Category.Clothes:
                ClothesDict.Remove(key);
                AccessoryDict.Remove(key);
                break;
            }
        }
 public void Remove(Triangle face)
 {
     for (int i = 0; i < 3; i++)
     {
         edgeFaces.Remove(face.edges[i]);
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Method to rename a specific key from KKATData.
        /// </summary>
        /// <param category>Category of key to be retrieved</param>
        internal void RenameEntry(Category category, string key, string newkey)
        {
            newkey += key.Substring(key.IndexOf("->"));
            switch (category)
            {
            case Category.Hairstyle:
                var hairstyle = HairstyleDict[key];
                HairstyleDict.Remove(key);
                HairstyleDict.Add(newkey, hairstyle);
                break;

            case Category.Haircolor:
                var haircolor = HaircolorDict[key];
                HaircolorDict.Remove(key);
                HaircolorDict.Add(newkey, haircolor);
                break;

            case Category.Eyecolor:
                var eyecolor = EyecolorDict[key];
                EyecolorDict.Remove(key);
                EyecolorDict.Add(newkey, eyecolor);
                break;

            case Category.Eyeline:
                var eyeline = EyelineDict[key];
                EyelineDict.Remove(key);
                EyelineDict.Add(newkey, eyeline);
                break;

            case Category.Eyebrow:
                var eyebrow = EyebrowDict[key];
                EyebrowDict.Remove(key);
                EyebrowDict.Add(newkey, eyebrow);
                break;

            case Category.Face:
                var face      = FaceDict[key];
                var facebones = FaceBonesDict[key];
                FaceDict.Remove(key);
                FaceBonesDict.Remove(key);
                FaceDict.Add(newkey, face);
                FaceBonesDict.Add(newkey, facebones);
                break;

            case Category.Skin:
                var skin     = SkinFaceDict[key];
                var skinbody = SkinBodyDict[key];
                SkinFaceDict.Remove(key);
                SkinBodyDict.Remove(key);
                SkinFaceDict.Add(newkey, skin);
                SkinBodyDict.Add(newkey, skinbody);
                break;

            case Category.Body:
                var body      = BodyDict[key];
                var bodybones = BodyBonesDict[key];
                BodyDict.Remove(key);
                BodyBonesDict.Remove(key);
                BodyDict.Add(newkey, body);
                BodyBonesDict.Add(newkey, bodybones);
                break;

            case Category.Clothes:
                var clothes   = ClothesDict[key];
                var accessory = AccessoryDict[key];
                ClothesDict.Remove(key);
                AccessoryDict.Remove(key);
                ClothesDict.Add(newkey, clothes);
                AccessoryDict.Add(newkey, accessory);
                break;
            }
        }